On GCC builds
pete@ltoi.iap.physik.tu-darmstadt.de
pete@ltoi.iap.physik.tu-darmstadt.de
Wed Jul 17 12:53:00 GMT 2002
About GCC builds on the Distributions SuSE-4.2, 6.1, 6.2 & 7.3:
[g]libc 2.95.x 3.0.x 3.1.x host Kernel SuSE
5.2.18 ok FAIL FAIL(?) i586-pc-linux-gnu 2.0.5 & 39 4.2
2.0.7 ok FAIL FAIL i586-pc-linux-gnu 2.2.19 6.1
2.1.1 ok ok FAIL^* i586-pc-linux-gnu 2.2.20 6.2
2.1.1 ok ok ok i686-pc-linux-gnu 2.2.20 6.2
2.2.4 ok ok ok i686-pc-linux-gnu 2.4.10-4GB 7.3
Kernel's may be newer than the one from the distro.
-> Flaws in support for older glibc & host's in current GCC?
^*: needs newer binutils. See below.
Configure with {for example}:
--with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
where:
> /usr/local/bin/ld -v
GNU ld version 2.11.2 (with BFD 2.11.2)
whereas the GCC configure script defaults to:
> /usr/bin/ld -v
GNU ld version 2.9.1 (with BFD 2.9.1.0.25)
i.e. the version from the SuSE-6.2 distro,
which will not work on i586.
-------
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Reading specs from /opt/gcc295.2-haifa/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
Reading specs from /opt/gcc304/lib/gcc-lib/i586-pc-linux-gnu/3.0.4/specs
Configured with: ../gcc-3.0.4/configure --prefix=/opt/gcc304 --exec-prefix=/opt/gcc304 --enable-languages=c,f77,c++
Thread model: single
gcc version 3.0.4
Reading specs from /opt/gcc304/lib/gcc-lib/i686-pc-linux-gnu/3.0.4/specs
Configured with: ../gcc-3.0.4/configure --prefix=/opt/gcc304 --exec-prefix=/opt/gcc304 --enable-languages=c,f77,c++
Thread model: single
gcc version 3.0.4
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/3.1/specs
Configured with: ../gcc-3.1/configure --program-suffix=-3.1 --enable-languages=c,f77,c++ --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: single
gcc version 3.1
Reading specs from /opt/gcc310/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: ../gcc-3.1/configure --prefix=/opt/gcc310 --exec-prefix=/opt/gcc310 --enable-languages=c,f77,c++
Thread model: single
gcc version 3.1
-------
FAIL to build gcc-3.1 on i586 glibc-2.1.1 SuSE-6.2 host:
make CC="stage1/xgcc -Bstage1/ -B/usr/local/i586-pc-linux-gnu/bin/" \
STAGE_PREFIX=stage1/ \
CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WAR
N="-Wtraditional -pedantic -Wno-long-long" libdir=/usr/local/lib LANGUAGES="c gc
ov c++ f77" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
make[2]: Entering directory `/var/tmp/imex/gcc/build/gcc'
stage1/xgcc -Bstage1/ -B/usr/local/i586-pc-linux-gnu/bin/ -c -DIN_GCC -g -O2
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I../../gc
c-3.1/gcc -I../../gcc-3.1/gcc/. -I../../gcc-3.1/gcc/config -I../../gcc-3.1/gcc/.
./include ../../gcc-3.1/gcc/gengenrtl.c -o gengenrtl.o
stage1/xgcc -Bstage1/ -B/usr/local/i586-pc-linux-gnu/bin/ -DIN_GCC -g -O2 -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pe
dantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
/usr/bin/ld: gengenrtl: Not enough room for program headers (allocated 6, need 7
)
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/var/tmp/imex/gcc/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/imex/gcc/build/gcc'
make: *** [bootstrap-lean] Error 2
Command exited with non-zero status 2
gcc-3.1 on i586 needs newer binutils than for i686 ... (?)
Note: FAIL's on glibc-2.0.7/i586 & older are due to other reasons.
More information about the Gcc
mailing list