Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 35881

Summary: gcc 3.3.2 r4 tconfig.h:7: internal compiler error: Illegal instruction
Product: Gentoo Linux Reporter: Hans-Christian Armingeon <mog.johnny>
Component: [OLD] Core systemAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED CANTFIX    
Severity: normal CC: pappy
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Here's the complete emerge -uD world 2>&1 |tee worldbuild build logfile bzip2 compressed
preprocessed source, that triggered the bug

Description Hans-Christian Armingeon 2003-12-15 10:29:09 UTC
Gcc emerge failed.

./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-l
inux-gnu/sys-include -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -i
system ./include  -I. -I. -I/var/tmp/portage/gcc-3.3.2-r4/work/gcc-3.3.2/gcc -I/var/tmp/portage/gcc-3.3.2
-r4/work/gcc-3.3.2/gcc/. -I/var/tmp/portage/gcc-3.3.2-r4/work/gcc-3.3.2/gcc/config -I/var/tmp/portage/gcc
-3.3.2-r4/work/gcc-3.3.2/gcc/../include  -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptio
ns -fno-zero-initialized-in-bss -fno-omit-frame-pointer \
   -c /var/tmp/portage/gcc-3.3.2-r4/work/gcc-3.3.2/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from /var/tmp/portage/gcc-3.3.2-r4/work/gcc-3.3.2/gcc/crtstuff.c:61:
tconfig.h:7: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
Preprocessed source stored into /var/tmp/portage/gcc-3.3.2-r4/temp/ccyLh4k2.out file, please attach this
to your bugreport
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.2-r4/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.2-r4/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.3.2-r4 failed.
!!! Function src_compile, Line 402, Exitcode 2
!!! (no error message)

Well, I've two other systems, where the build went fine.

Reproducible: Always
Steps to Reproduce:
1. emerge -uD world
2.
3.
Actual Results:  
 

Expected Results:  
 

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.23) 
================================================================= 
System uname: 2.4.23 i686 AMD Athlon(tm) Processor 
Gentoo Base System version 1.4.3.12 
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache distcc sandbox" 
GENTOO_MIRRORS="http://jathgentoo http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk2 imlib 
jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam 
pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd 
truetype x86 xml2 xmms xv zlib"
Comment 1 Hans-Christian Armingeon 2003-12-15 10:33:25 UTC
Created attachment 22248 [details]
Here's the complete emerge -uD world 2>&1 |tee worldbuild build logfile bzip2 compressed
Comment 2 Hans-Christian Armingeon 2003-12-15 10:35:50 UTC
Created attachment 22249 [details]
preprocessed source, that triggered the bug
Comment 3 Alexander Gabert (RETIRED) gentoo-dev 2004-03-04 05:21:21 UTC
do you use CCACHE and possibly could try without?

did you try with lowering your compiler optimization?

are more recent versions of gcc working for you?
you could try -r7 KEYWORDS="~x86 ~mips ~sparc ~amd64 -hppa ~alpha ~ia64 ~ppc64"
or -r5 with KEYWORDS="x86 ~mips ~sparc ~amd64 -hppa ~alpha ~ia64 ppc64"

thanks,

Alex
Comment 4 Hans-Christian Armingeon 2004-03-04 06:42:31 UTC
This system is no longer at work. I'll set this bug to cantfix.

Johnny