Summary: | after emerging gcc-3.3.6: internal compiler error: Segmentation fault (not a hardware problem) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jan van Oorschot <janvanoorschot> |
Component: | [OLD] GCC Porting | Assignee: | Please assign to toolchain <gcc-porting> |
Status: | RESOLVED WONTFIX | ||
Severity: | critical | CC: | evert.gentoo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | compiler pre-proc output |
Description
Jan van Oorschot
2005-09-06 03:31:54 UTC
Created attachment 67723 [details]
compiler pre-proc output
ps. i found this out since i was doing a 'emerge -Duv world'. The actual segfault that woke me up was when the 'emerge world' tried to 'emerge openssh'. I have retried the 'emerge -Duv world' command several times, and always get the 'segmentation fault' error on the same spot (it's building net-misc/openssh-3.9_p1-r3): bindresvport.c: In function `bindresvport_sa': bindresvport.c:110: internal compiler error: Segmentation fault ok .. i'am getting desperate. 'emerge gcc' also failes, and non of the standard env-update/ fix_libtool_files.sh/ldconfig etc seems to help. Please advise how to get this system up and running again (maybe reinstall gcc from a life-cd?). Thanks, Jan If I read your story, I think I'm lucky not being able to emerge gcc-3.3.6... stage2/xgcc -Bstage2/ -B/usr/i686-pc-linux-gnu/bin/ -O2 -march=athlon-xp -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o gengtype \ gengtype.o gengtype-lex.o gengtype-yacc.o ../libiberty/libiberty.a stage2/xgcc -Bstage2/ -B/usr/i686-pc-linux-gnu/bin/ -c -O2 -march=athlon-xp -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/. -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/config -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/../include /compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/read-rtl.c -o read-rtl.o stage2/xgcc -Bstage2/ -B/usr/i686-pc-linux-gnu/bin/ -c -O2 -march=athlon-xp -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/. -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/config -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/../include /compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/gensupport.c -o gensupport.o stage2/xgcc -Bstage2/ -B/usr/i686-pc-linux-gnu/bin/ -c -O2 -march=athlon-xp -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/. -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/config -I/compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/../include \ /compile/portage/gcc-3.3.6/work/gcc-3.3.6/gcc/genconditions.c -o genconditions.o rm -f print-rtl1.c make[1]: *** [stage3_build] Segmentation fault make[1]: Leaving directory `/compile/portage/gcc-3.3.6/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.3.6 failed. !!! Function gcc_do_make, Line 1214, Exitcode 2 !!! emake failed with bootstrap-lean !!! If you need support, post the topmost build error, NOT this status message. Well, after a few days, the following observation: 1) i can find no related posts in the gentoo forums 2) my other gentoo boxes have emerged the same compiler and work flawless 3) the mentioned server keeps running like a charm except it cant emerge/compile anymore 4) there are no reactions to this bug report 5) i can find no (explicit) instructions on the net how to replace the compiler (except a very general link in http://forums.gentoo.org/viewtopic-t-371781-highlight-binary+gcc.html) So i can only conclude this problem is caused by a very specific problem in the configuration of my server. I am in the process of building a new server from the ground up (new hardware, new gentoo install) and will phase the mentioned server out. And yes, this new server is running the 3.3.6 compiler like a charm. This situation has damaged my trust in gentoo somewhat. 'emerge -Duv world' is required even on a production server (security), and being left without a compiler is ... well not good. I will leave this bug open, please email me for further details. The broken server will be in the air for at least an other week. the mentioned server has been decommissioned. Reproduction of the bug or further investigation will not be possible. I'll change the status to 'WONTFIX'. For me the problem went away after: - emerge --depclean - revdep-rebuild - emerge unmerge of all the package(-version)s on the system which don't exist in portage anymore - revdep-rebuild - emerge --oneshot for all other installed packages - revdep-rebuild Well, quite an operation, but the result, a healthy up2date system :D Oh and a week after that, I also had to do a fix_libtool_files.sh 3.3.2 for a compilation which failed... |