gcc-3.1 on SuSE 6.2 doesn't build stage2

Harald Koenig koenig@science-computing.de
Wed May 22 06:21:00 GMT 2002


On May 22, Harald Koenig wrote:

> I'm trying to build gcc-3.1 on SuSE 6.2 (among other and more recent platforms;)
> which breaks at start of stage2:

oops, somehow the make log got garbled during cut'n'paste, and other
important information is missing too.  so let's try again..



:: What we need
:: 
:: Please include in your bug report all of the following items, the first three of which can be obtained from the output of gcc -v: 
:: 
::       the exact version of GCC; 

for stage0: gcc version 2.95.3 20010315 (release)
trying to build: gcc-3.1 (tar.gz from ftp site)

::       the system type; 

milkyway ldscripts > uname -a
Linux milkyway 2.2.10 #4 Tue Jul 20 17:01:36 MEST 1999 i586 unknown

milkyway ldscripts > cat /etc/SuSE-release 
SuSE Linux 6.2 (i386)
VERSION = 6.2

milkyway ldscripts > /lib/libc.so.6 | head -1
GNU C Library stable release version 2.1.1, by Roland McGrath et al.

milkyway ARENA > ld -v       
GNU ld version 2.9.1 (with BFD 2.9.1.0.25)


::       the options given when GCC was configured/built; 

/soft/gcc/gcc-3.1/gcc-3.1/configure --prefix=/usr/local/gcc-3.1 --enable-shared --enable-languages=c,c++,f77

::       the complete command line that triggers the bug; 
::       the compiler output (error messages, warnings, etc.); and 

-------------------------------------------------------------------------------
echo timestamp > stage1_copy
echo stage2_build > stage_last
(cd stage1 && rm -f `echo main.o libbackend.a ... gen*`)
echo timestamp > clean_s1
gmake CC="stage1/xgcc -Bstage1/ -B/usr/local/gcc-3.1/i586-pc-linux-gnu/bin/" \
	 STAGE_PREFIX=stage1/ \
	 CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)" STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/usr/local/gcc-3.1/lib LANGUAGES="c gcov c++ f77" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
gmake[2]: Entering directory `/net/milkyway/fs2/scr/milkyway/koenig/gcc-3.1/ARENA/gcc'
stage1/xgcc -Bstage1/ -B/usr/local/gcc-3.1/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/soft/gcc/gcc-3.1/gcc-3.1/gcc -I/soft/gcc/gcc-3.1/gcc-3.1/gcc/. -I/soft/gcc/gcc-3.1/gcc-3.1/gcc/config -I/soft/gcc/gcc-3.1/gcc-3.1/gcc/../include /soft/gcc/gcc-3.1/gcc-3.1/gcc/gengenrtl.c -o gengenrtl.o
stage1/xgcc -Bstage1/ -B/usr/local/gcc-3.1/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


milkyway ldscripts > ld -v
GNU ld version 2.9.1 (with BFD 2.9.1.0.25)
-------------------------------------------------------------------------------


Harald Koenig
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig                                          \/\/\/\/\/\/\/\/\/
science+computing ag                                    //  /     \\  \
koenig@science-computing.de                            ^^^^^       ^^^^^



More information about the Gcc-bugs mailing list