Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-3.4.5-r1 failed internal compiler error: Illegal instru
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1353
Location: Mississippi USA

PostPosted: Thu Mar 30, 2006 10:57 pm    Post subject: gcc-3.4.5-r1 failed internal compiler error: Illegal instru Reply with quote

Well, I was doing my upgrade on one of my servers and I got a error. I searched around and found some errors that are close but mine seemed to fail later in the compile, higher line number in the compile. I went back up a little just to make sure I got it all. Here it is:

Code:
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/var/tmp/portage/gcc-3.4.5-r1/work/build/gcc/../ld -fno-stack-protector -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I/var/tmp/portage/gcc-3.4.5-r1/work/gcc-3.4.5/gcc -I/var/tmp/portage/gcc-3.4.5-r1/work/gcc-3.4.5/gcc/. -I/var/tmp/portage/gcc-3.4.5-r1/work/gcc-3.4.5/gcc/../include   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
   -c /var/tmp/portage/gcc-3.4.5-r1/work/gcc-3.4.5/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from /var/tmp/portage/gcc-3.4.5-r1/work/gcc-3.4.5/gcc/tsystem.h:44,
                 from /var/tmp/portage/gcc-3.4.5-r1/work/gcc-3.4.5/gcc/crtstuff.c:62:
./include/stddef.h:213: 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.4.5-r1/temp/cc3GxBfR.out file, please attach this to your bugreport.
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.5-r1/work/build/gcc'
make[1]: *** [stageprofile_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.5-r1/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.5-r1 failed.
!!! Function gcc_do_make, Line 1361, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.

swifty / #


I did the gcc-3.4 upgrade a while back and it went fine. I did a revedep-rebuild, emerge -e system then a emerge -e world afterwards so it should all be compiled with the installed version. Here is emerge --info:

Code:
swifty / # emerge --info
Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.13-gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.4-r1, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acl apm arts avi berkdb bitmap-fonts bzip2 crypt cups dri eds emboss encode expat foomaticdb fortran gdbm gif gnome gpm gstreamer gtk2 hal imlib ipv6 jpeg kde lcms libg++ libwww mad mikmod mng motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

swifty / # 


I also tried a revdep-rebuild, I hit the tab key on that LOL, anyway, it said everything was fine. Nothing was broke at all, like this:

Code:
swifty / # revdep-rebuild -p
Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries broken by a package update
will be emerged.

Collecting system binaries and libraries... done.
  (/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
 done.
  (/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... Nothing to rebuild

Evaluating package order... done.
  (/root/.revdep-rebuild.5_order)

Dynamic linking on your system is consistent... All done.
swifty / #


Any ideas? It says it is a bug but I want to make sure before I file one. What you gurus think??

Thanks

:D :D :D :D
_________________
My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54508
Location: 56N 3W

PostPosted: Thu Mar 30, 2006 11:14 pm    Post subject: Reply with quote

dalek,

My first thought wasyou have made gcc for the wrong CPU, but your CFLAGS and USE flages look correct and conservative.
If you rerun the build, does it fail in eactly the same place with the same error ?
If not, its a memory ot thermal problem.

Clean the CPU heatsink with a stiff brush (never a hoover) and run memtest86 from the liveCD.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1353
Location: Mississippi USA

PostPosted: Fri Mar 31, 2006 12:15 am    Post subject: Reply with quote

Well, I wouldn't think it is temps. I run folding on this rig 24/7 and have for a while. Right now it is cooler than ever because I used it to rescue my girlfriends windoze XP stuff after windoze did it's normal thing, died from a bug or something, and the case is off at the moment and it is laying on it's side. Also has a ceiling fan blowing air on it too. Lucky thing. 8O

This is my temps, first is CPU and second is inside the case:

Code:
swifty / # cat temp1
39900
swifty / # cat temp2
27725
swifty / #


I have compiled several other packages just fine. No errors at all. Just this one is giving me a boo boo. I have tried to compile this a few times but it always errors out. I'm pretty sure it was in the same place too.

Since this is a headless server, no monitor, keyboard or mouse, running memtest may be a problem. Since it uses all the memory most all the time anyway, it looks like it would error on something else too. I looked in the error logs and the only thing in there was the cron jobs and the stupid hald and ivman not working. . . . again. I don't use a CD anyway. :lol: Here is the results of free:

Code:
swifty / # free
             total       used       free     shared    buffers     cached
Mem:        319784     309680      10104          0      56524     212540
-/+ buffers/cache:      40616     279168
Swap:       294296         64     294232
swifty / #   


It's been like that for a while. It may use a little more or less swap from time to time but that's what it usually looks like.

Any other ideas before I have to pull out a monitor and keyboard? :cry:

Thanks

:D :D :D :D
_________________
My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1353
Location: Mississippi USA

PostPosted: Fri Mar 31, 2006 9:33 pm    Post subject: Reply with quote

Well, I thought maybe something was broken in another package that it was looking for soooooo I did a emerge -ev system just to try it and see. It failed with the exact same error.

Should I file a bug or is it just me? Oh, no other errors during all the compiling. I don't think it is hardware. It's still running folding too.

Thanks

:D :D :D :D
_________________
My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1353
Location: Mississippi USA

PostPosted: Sat Apr 01, 2006 12:23 am    Post subject: Reply with quote

Well posted bug and was kindly informed that that server does not have a Athlon XP in it. I had changed the make.conf file on the server thinking I was changing the one on my main rig, which has a Athlon XP in it.

< Dale slaps forehead > < also hangs head in shame > :oops: :lol:

Thanks

:D :D :D :D
_________________
My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum