public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* ld problem compiling gcc
@ 2003-03-19 14:43 Simon Bachmann
  2003-03-19 16:05 ` LLeweLLyn Reese
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Bachmann @ 2003-03-19 14:43 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ld problem compiling gcc
  2003-03-19 14:43 ld problem compiling gcc Simon Bachmann
@ 2003-03-19 16:05 ` LLeweLLyn Reese
  0 siblings, 0 replies; 2+ messages in thread
From: LLeweLLyn Reese @ 2003-03-19 16:05 UTC (permalink / raw)
  To: Simon Bachmann; +Cc: gcc-help

Fvzba Onpuznaa <fvzbaonpuznaa@oyhrjva.pu> jevgrf:

> Uv! 
> 
> V'z gelvat gb pbzcvyr tpp 3.2.2 ba zl flfgrz naq V'ir tbg fbzr ceboyrzf
> (znlor vg vfag n ovt guvat, ohg zl pbanvffnaprf va cebtenzzvat ner irel
> yvggyr!)
> 
> 
> Fbzr vasbf nobhg zl flfgrz: 
> v586-cp-yvahk-tah
> FhFr 6.3
> xreary Fhfr 2.2.13
> tpp 2.7.3.2
> yq  2.9.1 (jvgu OSQ 2.9.1.0.25)

Try building a newer binutils, and building gcc with the newer
    binutils.

ftp://ftp.gnu.org:pub/gnu/binutils/binutils-2.13.2.1.tar.bz2

for example.

> 
> V'ir gevrq obgu v586-cp-yvahk-tah naq v586-cp-yvahk-tahnbhg.
> Guvf vf gur pbasvther pbzznaq yvar V hfrq:
> 
> /ebbg/vafgnyy/tpp-3.2.2/pbasvther  --cebtenz-cersvk=a --jvgu-tah-nf
> --jvgu-tah-yq --qvfnoyr-guernqf --ranoyr-ynathntrf=p v586-cp-yvahk-tah 
> (v586-cp-yvahk-tahnbhg)
> 
> naq guvf ner gur ynfg yvarf bs gur znxr bhgchg:
> 
> znxr[2]: Ragrevat qverpgbel `/ebbg/vafgnyy/tpp-p/tpp'
> fgntr1/ktpp -Ofgntr1/ -O/hfe/ybpny/v586-cp-yvahk-tah/ova/ -p -QVA_TPP   
> -t -B2 -J -Jnyy -Jjevgr-fgevatf -Jfgevpg-cebgbglcrf -Jzvffvat-cebgbglcrf
> -Jgenqvgvbany -crqnagvp -Jab-ybat-ybat  -QUNIR_PBASVT_U
> -QTRARENGBE_SVYR    -V. -V. -V/ebbg/vafgnyy/tpp-3.2.2/tpp
> -V/ebbg/vafgnyy/tpp-3.2.2/tpp/. -V/ebbg/vafgnyy/tpp-3.2.2/tpp/pbasvt
> -V/ebbg/vafgnyy/tpp-3.2.2/tpp/../vapyhqr
> /ebbg/vafgnyy/tpp-3.2.2/tpp/tratraegy.p -b tratraegy.b
> fgntr1/ktpp -Ofgntr1/ -O/hfe/ybpny/v586-cp-yvahk-tah/ova/ -QVA_TPP    -t
> -B2 -J -Jnyy -Jjevgr-fgevatf -Jfgevpg-cebgbglcrf -Jzvffvat-cebgbglcrf
> -Jgenqvgvbany -crqnagvp -Jab-ybat-ybat  -QUNIR_PBASVT_U
> -QTRARENGBE_SVYR  -b tratraegy \
>  tratraegy.b ../yvovoregl/yvovoregl.n
> /hfe/ova/yq: tratraegy: Abg rabhtu ebbz sbe cebtenz urnqref (nyybpngrq
> 6, arrq 7)
> /hfe/ova/yq: svany yvax snvyrq: Onq inyhr
> pbyyrpg2: yq erghearq 1 rkvg fgnghf
> znxr[2]: *** [tratraegy] Reebe 1
> znxr[2]: Yrnivat qverpgbel `/ebbg/vafgnyy/tpp-p/tpp'
> znxr[1]: *** [fgntr2_ohvyq] Reebe 2
> znxr[1]: Yrnivat qverpgbel `/ebbg/vafgnyy/tpp-p/tpp'
> znxr: *** [obbgfgenc] Reebe 2
> 
> erfcrpgviryl, sbe gur "nbhg gel":
> 
> fgntr1/ktpp -Ofgntr1/ -O/hfe/ybpny/v586-cp-yvahk-tahnbhg/ova/
> -QVA_TPP    -t -B2 -J -Jnyy -Jjevgr-fgevatf -Jfgevpg-cebgbglcrf
> -Jzvffvat-cebgbglcrf -Jgenqvgvbany -crqnagvp -Jab-ybat-ybat 
> -QUNIR_PBASVT_U -QTRARENGBE_SVYR  -b tratraegy \
>  tratraegy.b ../yvovoregl/yvovoregl.n
> tratraegy.b: Va shapgvba `traurnqre':
> /ebbg/vafgnyy/tpp-3.2.2/tpp/tratraetl.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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-19 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-19 14:43 ld problem compiling gcc Simon Bachmann
2003-03-19 16:05 ` LLeweLLyn Reese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).