Hi,
I'm trying to build the Fortran77 compiler from gcc-3.4.6 on my 64-bit CLFS machine. But each time I hit upon this error, no matter how I tweak compile options:
Code:
stage1/xgcc -Bstage1/ -B/opt/gcc-3.4.6/x86_64-unknown-linux-gnu/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o genmodes \
genmodes.o errors.o ../libiberty/libiberty.a
stage1/xgcc -Bstage1/ -B/opt/gcc-3.4.6/x86_64-unknown-linux-gnu/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
stage1/xgcc -Bstage1/ -B/opt/gcc-3.4.6/x86_64-unknown-linux-gnu/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o gencheck \
gencheck.o ../libiberty/libiberty.a
./genmodes -h > tmp-modes.h
/bin/sh: ./genmodes: No such file or directory
make[2]: *** [s-modes] Error 127
make[2]: *** Waiting for unfinished jobs....
/bin/sh ../../gcc/move-if-change tmp-mlib.h multilib.h
multilib.h is unchanged
echo timestamp > s-mlib
make[2]: Leaving directory `/tmp/gcc-3.4.6/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/tmp/gcc-3.4.6/gcc-build/gcc'
make: *** [bootstrap] Error 2
I used these configure options:
Code:
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe" \
../configure \
--prefix=/opt/gcc-$VERSION \
--libexecdir=/opt/gcc-$VERSION/lib \
--mandir=/opt/gcc-$VERSION/share/man \
--infodir=/opt/gcc-$VERSION/share/info \
--enable-shared \
--enable-threads=posix \
--enable-__cxa_atexit \
--enable-clocale=gnu \
--enable-languages=c,f77 \
--disable-multilib
I of course build a separate build directory from where I run the configure and make commands (I searched online and found that not building from within a separate build directory would cause this). But it hasn't helped. What could be wrong? I used
these instructions while building.
EDIT: gcc-3.4.6 compiles fine on every 64-bit machine I ran it on. They ( the OS's on those machines )also have the same CFLAGS, CHOST and CTARGET values as the CLFS system.