Bug 24237 - gcc-3.4.4 fails to bootstrap: xgcc: Internal error: Segmentation fault (program cc1)
Summary: gcc-3.4.4 fails to bootstrap: xgcc: Internal error: Segmentation fault (progr...
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 3.4.4
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build, ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-10-06 13:12 UTC by Christian Page
Modified: 2006-03-06 07:49 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Page 2005-10-06 13:12:15 UTC
Trying to build gcc-3.4.4 on :
Linux 2.6.11-1.1369_FC4smp #1 SMP x86_64 x86_64 x86_64 GNU/Linux

Used:
./configure --prefix=/usr/local --program-suffix=-3.4.4
make CC='gcc32' -j 1 bootstrap
Also tried with -j 2 with same results.

Always reproducible.

Fails to bootstrap:
make GCC_FOR_TARGET=" ./xgcc -B./ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -L/usr/local/src/gcc-3.4.4/gcc/../ld" \
  AR_FOR_TARGET="` if [ -f /usr/local/src/gcc-3.4.4/gcc/../binutils/ar ] ; then echo /usr/local/src/gcc-3.4.4/gcc/../binutils/ar ; else if [ "x86_64-unknown-linux-gnu" = "x86_64-unknown-linux-gnu" ] ; then echo ar; else t='s,-3.4.4,;'; echo ar | sed -e  ; fi; fi`" \
  AR_CREATE_FOR_TARGET="` if [ -f /usr/local/src/gcc-3.4.4/gcc/../binutils/ar ] ; then echo /usr/local/src/gcc-3.4.4/gcc/../binutils/ar ; else if [ "x86_64-unknown-linux-gnu" = "x86_64-unknown-linux-gnu" ] ; then echo ar; else t='s,-3.4.4,;'; echo ar | sed -e  ; fi; fi`  rc" \
  AR_EXTRACT_FOR_TARGET="` if [ -f /usr/local/src/gcc-3.4.4/gcc/../binutils/ar ] ; then echo /usr/local/src/gcc-3.4.4/gcc/../binutils/ar ; else if [ "x86_64-unknown-linux-gnu" = "x86_64-unknown-linux-gnu" ] ; then echo ar; else t='s,-3.4.4,;'; echo ar | sed -e  ; fi; fi`  x" \
  AR_FLAGS_FOR_TARGET="" \
  CC="gcc32" CFLAGS="-g  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  " \
  BUILD_PREFIX="" \
  BUILD_PREFIX_1="ignore-" \
  LANGUAGES="c " \
  LIBGCC2_CFLAGS="-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -m32 "  \
  MULTILIB_CFLAGS=" -m32" T=32/ 32/crtbeginT.o
make[4]: Entering directory `/usr/local/src/gcc-3.4.4/gcc'
./xgcc -B./ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -L/usr/local/src/gcc-3.4.4/gcc/../ld -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I32 -I. -I./32 -I./../include  -m32 -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fPIC \
   -c ./crtstuff.c -DCRT_END -DCRTSTUFFS_O \
  -o 32/crtendS.o
xgcc: Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [32/crtendS.o] Error 1
make[4]: Leaving directory `/usr/local/src/gcc-3.4.4/gcc'
make[3]: *** [32/crtendS.o] Error 2
make[3]: *** Waiting for unfinished jobs....
make[4]: Entering directory `/usr/local/src/gcc-3.4.4/gcc'
./xgcc -B./ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -L/usr/local/src/gcc-3.4.4/gcc/../ld -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I32 -I. -I./32 -I./../include  -m32 -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
   -c ./crtstuff.c -DCRT_BEGIN -DCRTSTUFFT_O \
  -o 32/crtbeginT.o
make[4]: Leaving directory `/usr/local/src/gcc-3.4.4/gcc'
make[3]: Leaving directory `/usr/local/src/gcc-3.4.4/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/usr/local/src/gcc-3.4.4/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/usr/local/src/gcc-3.4.4/gcc'
make: *** [bootstrap] Error 2
Comment 1 Andrew Pinski 2005-10-06 15:08:30 UTC
I was able to bootstrap just fine on x86_64-unknown-linux-gnu with 3.4.4.
Comment 2 Andrew Pinski 2006-03-06 02:29:08 UTC
This works for me and many other people.
Comment 3 Christian Page 2006-03-06 07:49:59 UTC
It was because of bad kernel version. Works fine now...