ld problem compiling gcc
Simon Bachmann
simonbachmann@bluewin.ch
Wed Mar 19 14:43:00 GMT 2003
Hi!
I'm trying to compile gcc 3.2.2 on my system and I've got some problems
(maybe it isnt a big thing, but my conaissances in programming are very
little!)
Some infos about my system:
i586-pc-linux-gnu
SuSe 6.3
kernel Suse 2.2.13
gcc 2.7.3.2
ld 2.9.1 (with BFD 2.9.1.0.25)
I've tried both i586-pc-linux-gnu and i586-pc-linux-gnuaout.
This is the configure command line I used:
/root/install/gcc-3.2.2/configure --program-prefix=n --with-gnu-as
--with-gnu-ld --disable-threads --enable-languages=c i586-pc-linux-gnu
(i586-pc-linux-gnuaout)
and this are the last lines of the make output:
make[2]: Entering directory `/root/install/gcc-c/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/root/install/gcc-3.2.2/gcc
-I/root/install/gcc-3.2.2/gcc/. -I/root/install/gcc-3.2.2/gcc/config
-I/root/install/gcc-3.2.2/gcc/../include
/root/install/gcc-3.2.2/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 -pedantic -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 `/root/install/gcc-c/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/root/install/gcc-c/gcc'
make: *** [bootstrap] Error 2
respectively, for the "aout try":
stage1/xgcc -Bstage1/ -B/usr/local/i586-pc-linux-gnuaout/bin/
-DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE -o gengenrtl \
gengenrtl.o ../libiberty/libiberty.a
gengenrtl.o: In function `genheader':
/root/install/gcc-3.2.2/gcc/gengenrtl.c(.text+0x1d82): undefined
reference to `__IO_putc'
/usr/bin/ld: gengenrtl: can not represent section `.stab' in a.out
object file format
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/root/install/gcc-caout/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/root/install/gcc-caout/gcc'
make: *** [bootstrap] Error 2
Thanks for helping....
Simon
More information about the Gcc-help
mailing list