1/1

|
Problem compiling toolchains
by lvcargnini on Aug 3, 2012 |
lvcargnini
Posts: 8 Joined: Jun 2, 2006 Last seen: Mar 12, 2021 |
||
|
Hi I had the following error message:
../libdecnumber ../../unisrc/gcc/c-lex.c -o c-lex.o In file included from ../../unisrc/gcc/c-lex.c:27gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. -I. -I../../unisrc/gcc -I../../unisrc/gcc/. -I../../unisrc/gcc/../include -I../../unisrc/gcc/../libcpp/include -I../../unisrc/gcc/../libdecnumber -I../../unisrc/gcc/../libdecnumber/dpd -I../libdecnumber ../../unisrc/gcc/c-pragma.c -o c-pragma.o : ../../unisrc/gcc/real.h:28:17: error: mpc.h: No such file or directory In file included from ../../unisrc/gcc/c-lex.c:27: ../../unisrc/gcc/real.h:29: error: expected declaration specifiers or �...� before �mpc_ptr� ../../unisrc/gcc/real.h:29: error: expected declaration specifiers or �...� before �mpc_srcptr� ../../unisrc/gcc/real.h:29: error: expected declaration specifiers or �...� before �mpc_srcptr� ../../unisrc/gcc/real.h:29: error: expected declaration specifiers or �...� before �mpc_rnd_t� ../../unisrc/gcc/real.h:29: warning: function declaration isn�t a prototype In file included from ../../unisrc/gcc/rtl.h:28, from ../../unisrc/gcc/attribs.c:30: ../../unisrc/gcc/real.h:28:17: error: mpc.h: No such file or directory In file included from ../../unisrc/gcc/rtl.h:28, from ../../unisrc/gcc/attribs.c:30: ../../unisrc/gcc/real.h:29: error: expected declaration specifiers or �...� before �mpc_ptr� ../../unisrc/gcc/real.h:29: error: expected declaration specifiers or �...� before �mpc_srcptr� ../../unisrc/gcc/real.h:29: error: expected declaration specifiers or �...� before �mpc_srcptr� ../../unisrc/gcc/real.h:29: error: expected declaration specifiers or �...� before �mpc_rnd_t� ../../unisrc/gcc/real.h:29: warning: function declaration isn�t a prototype ..... ..... Someone knows why this ? I performed: ./bld-all.sh --force --prefix /opt/openrisc --or1ksim-dir /opt/or1ksim --uclibc-dir uClibc --linux-dir linux after cloning both uClibc and linux. Regards, Vitorio. |
|||
|
RE: Problem compiling toolchains
by lvcargnini on Aug 3, 2012 |
lvcargnini
Posts: 8 Joined: Jun 2, 2006 Last seen: Mar 12, 2021 |
||
|
I forgot to say I'm runnig a RHEL 6.3
Yes I installed all the prerequisites as far as I know: sudo yum install flex mpfr mpfr gmp gmp-devel mpfr-devel ncurses ncurses-devel patchutils patch bison-devel bison gcc make automake sudo yum install libmpcdec libmpcdec-devel Regards, Vitorio. |
|||
|
RE: Problem compiling toolchains
by jeremybennett on Aug 4, 2012 |
jeremybennett
Posts: 815 Joined: May 29, 2008 Last seen: Jun 13, 2019 |
||
|
Hi Vitorrio, This is baffling. Can you check if you have /usr/include/mpc.h on your machine (it is where yum would install it). If you do, it looks like some sort of include path problem. If not, it looks like one of our yum install's (probably mpfr-devel) has not done it's job. I did find this old discussion, but I'm not sure it sheds much more light: I also found the following comment in the general GCC pre-requisites (http://gcc.gnu.org/install/prerequisites.html): "MPC Library version 0.8.1 (or later) Necessary to build GCC. It can be downloaded from http://www.multiprecision.org/. If an MPC source distribution is found in a subdirectory of your GCC sources named mpc, it will be built together with GCC. Alternatively, if MPC is already installed but it is not in your default library search path, the --with-mpc configure option should be used. See also --with-mpc-lib and --with-mpc-include." I'm about to leave on vacation, but I hope this gives you enough pointers to solve the problem. If not, you could try asking on IRC channels #opencores or #openrisc on freenode.net. HTH, Jeremy |
|||
|
RE: Problem compiling toolchains
by lvcargnini on Aug 8, 2012 |
lvcargnini
Posts: 8 Joined: Jun 2, 2006 Last seen: Mar 12, 2021 |
||
|
Ok, I'll try to fix the RHEL sets for that.
Regards, Vitorio. |
|||
|
RE: Problem compiling toolchains
by lvcargnini on Aug 9, 2012 |
lvcargnini
Posts: 8 Joined: Jun 2, 2006 Last seen: Mar 12, 2021 |
||
|
I fixed the MPC, download-compiled-instralled the version 0.8.2, but now I have the follwoing error:
hecking for or32-elf-strip... /home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./binutils/strip checking whether ln -s works... yes checking for or32-elf-gcc... /home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./gcc/xgcc -B/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./gcc/ -nostdinc -B/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/newlib/ -isystem /home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/newlib/targ-include -isystem /home/cargnini/LIRMM/opencores/openrisc/gnu-src/unisrc/newlib/libc/include -B/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/libgloss/or32 -L/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/libgloss/libnosys -L/home/cargnini/LIRMM/opencores/openrisc/gnu-src/unisrc/libgloss/or32 -B/opt/openrisc/or32-elf/bin/ -B/opt/openrisc/or32-elf/lib/ -isystem /opt/openrisc/or32-elf/include -isystem /opt/openrisc/or32-elf/sys-include -L/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./ld checking for suffix of object files... configure: error: in `/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make: *** [configure-target-libgcc] Error 1 make (all-target-libgcc all-target-libstdc++-v3 all-target-newlib all-target-libgloss) failed. cargnini@vitorio:~/LIRMM/opencores/openrisc/gnu-src$ in the config.log I have the following: $ /home/cargnini/LIRMM/opencores/openrisc/gnu-src/unisrc/libgcc/configure --cache-file=./config.cache --with-newlib --enable-multilib --with-cross-host=x86_64-unknown-linux-gnu --with-pkgversion=OpenRISC 32-bit toolchain for or32-elf (built 20120809) --disable-shared --with-bugurl=http://bugzilla.opencores.org/ --with-or1ksim=/opt/or1ksim --disable-werror --enable-fast-install=N/A --disable-libssp --prefix=/opt/openrisc --with-newlib --enable-languages=c,c++ --program-transform-name=s&^&or32-elf-& --disable-option-checking --with-target-subdir=or32-elf --build=x86_64-unknown-linux-gnu --host=or32-elf --target=or32-elf --srcdir=../../../unisrc/libgcc .... configure:3020: /home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./gcc/xgcc -B/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./gcc/ -nostdinc -B/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/newlib/ -isystem /home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/newlib/targ-include -isystem /home/cargnini/LIRMM/opencores/openrisc/gnu-src/unisrc/newlib/libc/include -B/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/libgloss/or32 -L/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/libgloss/libnosys -L/home/cargnini/LIRMM/opencores/openrisc/gnu-src/unisrc/libgloss/or32 -B/opt/openrisc/or32-elf/bin/ -B/opt/openrisc/or32-elf/lib/ -isystem /opt/openrisc/or32-elf/include -isystem /opt/openrisc/or32-elf/sys-include -L/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./ld -o conftest -g -O2 conftest.c >&5 /home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory configure:3023: $? = 1 configure:3211: checking for suffix of object files configure:3233: /home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./gcc/xgcc -B/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./gcc/ -nostdinc -B/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/newlib/ -isystem /home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/newlib/targ-include -isystem /home/cargnini/LIRMM/opencores/openrisc/gnu-src/unisrc/newlib/libc/include -B/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/libgloss/or32 -L/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/libgloss/libnosys -L/home/cargnini/LIRMM/opencores/openrisc/gnu-src/unisrc/libgloss/or32 -B/opt/openrisc/or32-elf/bin/ -B/opt/openrisc/or32-elf/lib/ -isystem /opt/openrisc/or32-elf/include -isystem /opt/openrisc/or32-elf/sys-include -L/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./ld -c -g -O2 conftest.c >&5 /home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory configure:3237: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3251: error: in `/home/cargnini/LIRMM/opencores/openrisc/gnu-src/bd-elf/or32-elf/libgcc': configure:3254: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. But the libmpc.so.2 is installed into my /usr/local/lib There is a easy way to solve this minor issue or someone how to build a RPM package ? Regards, Vitorio. |
|||
|
RE: Problem compiling toolchains
by jeremybennett on Aug 13, 2012 |
jeremybennett
Posts: 815 Joined: May 29, 2008 Last seen: Jun 13, 2019 |
||
|
Hi Vitorio What is the configure line you are now using? You may find it useful to specify --with-mpc-lib and --with-mpc-include. Jeremy |
|||
1/1

