Please read http://gcc.gnu.org/wiki/InstallingGCC and http://gcc.gnu.org/wiki/FAQ#gnu_stubs-32.h You have made your life far more difficult than you need to. On Jul 9, 2013 4:54 PM, "Roberto Nunnari" <roberto.nunnari@xxxxxxxx> wrote: > > Roberto Nunnari wrote: >> >> Paul Smith wrote: >>> >>> On Tue, 2013-07-09 at 16:31 +0200, Roberto Nunnari wrote: >>>> >>>> // configure gcc >>>> # mkdir gcc-build && cd gcc-build >>>> # ../gcc-4.8.1/gcc/configure --prefix=/opt/gcc481 --enable-languages=c,fortran --with-gmp=/opt/gmp --with-isl=/opt/isl --with-cloog=/opt/cloog >>>> ... >>>> configure: WARNING: unrecognized options: --with-gmp, --with-isl, --with-cloog >>> >>> >>> Your most immediate problem is that you're running >>> gcc-4.8.1/gcc/configure when you should be running gcc-4.8.1/configure. >>> ^^^ >>> The configure script inside the gcc subdirectory ONLY configures the >>> compiler itself, it doesn't know about all the other extra stuff. >>> That's why it doesn't recognize those extra configure flags. >> >> >> >> Ok.. configure went smooth.. now I have an error during make: >> >> make[5]: Entering directory `/root/new-gcc/build/x86_64-unknown-linux-gnu/32/libgcc' >> # If this is the top-level multilib, build all the other >> # multilibs. >> DEFINES='' HEADERS='../../../../gcc-4.8.1/libgcc/config/i386/value-unwind.h' \ >> ../../../../gcc-4.8.1/libgcc/mkheader.sh > tmp-libgcc_tm.h >> /bin/sh ../../../../gcc-4.8.1/libgcc/../move-if-change tmp-libgcc_tm.h libgcc_tm.h >> echo timestamp > libgcc_tm.stamp >> /root/new-gcc/build/./gcc/xgcc -B/root/new-gcc/build/./gcc/ -B/opt/gcc481/x86_64-unknown-linux-gnu/bin/ -B/opt/gcc481/x86_64-unknown-linux-gnu/lib/ -isystem /opt/gcc481/x86_64-unknown-linux-gnu/include -isystem /opt/gcc481/x86_64-unknown-linux-gnu/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fpic -mlong-double-80 -I. -I. -I../../.././gcc -I../../../../gcc-4.8.1/libgcc -I../../../../gcc-4.8.1/libgcc/. -I../../../../gcc-4.8.1/libgcc/../gcc -I../../../../gcc-4.8.1/libgcc/../include -I../../../../gcc-4.8.1/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../../gcc-4.8.1/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS >> In file included from /root/new-gcc/build/gcc/include-fixed/features.h:361:0, >> from /usr/include/stdio.h:28, >> from ../../../../gcc-4.8.1/libgcc/../gcc/tsystem.h:87, >> from ../../../../gcc-4.8.1/libgcc/libgcc2.c:27: >> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory >> # include <gnu/stubs-32.h> >> ^ >> compilation terminated. >> make[5]: *** [_muldi3.o] Error 1 >> make[5]: Leaving directory `/root/new-gcc/build/x86_64-unknown-linux-gnu/32/libgcc' >> make[4]: *** [multi-do] Error 1 >> make[4]: Leaving directory `/root/new-gcc/build/x86_64-unknown-linux-gnu/libgcc' >> make[3]: *** [all-multi] Error 2 >> make[3]: Leaving directory `/root/new-gcc/build/x86_64-unknown-linux-gnu/libgcc' >> make[2]: *** [all-stage1-target-libgcc] Error 2 >> make[2]: Leaving directory `/root/new-gcc/build' >> make[1]: *** [stage1-bubble] Error 2 >> make[1]: Leaving directory `/root/new-gcc/build' >> make: *** [all] Error 2 >> >> >> What could now be the problem? >> Thank you and best regards, >> Robi > > > The strange thing is that this is a x86_64 box.. > > # uname -rms > Linux 2.6.18-274.el5 x86_64 > > Any idea/hint?