Doing an emerge -u world, following an emerge sync, the following error occured: * Configuring GCC... Created "Makefile" in /var/tmp/portage/gcc-3.2.3-r2/work/build using "mh-frag" and "mt-frag" collect2: ld terminated with signal 11 [Segmentation fault] *** The command 'gcc -o conftest -march=athlon-tbird -pipe conftest.c' failed. *** You must set the environment variable CC to a working compiler. !!! ERROR: sys-devel/gcc-3.2.3-r2 failed. !!! Function src_compile, Line 341, Exitcode 1 !!! (no error message) Here is my emerge info: bash-2.05b# emerge info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r5) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="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="x86 foomaticdb libg++ mad mikmod nls pdflib quicktime truetype xml2 xv zlib gtkhtml gdbm berkdb slang readline tetex svga java guile sdl tcpd pam libwww perl python imlib oggvorbis gtk qt motif 3dnow -acpi alsa apache2 -apm arts avi bonobo cdr crypt cups emacs encode esd ethereal evo fbcon gif gnome gphoto2 gpm imap jpeg kde mmx mpeg mysql ncurses opengl oss -pcmcia png samba scanner spell ssl usb wmf X xmms" I can't update my system because of this bug. Reproducible: Always Steps to Reproduce: 1. emerge -u world Actual Results: * Configuring GCC... Created "Makefile" in /var/tmp/portage/gcc-3.2.3-r2/work/build using "mh-frag" and "mt-frag" collect2: ld terminated with signal 11 [Segmentation fault] *** The command 'gcc -o conftest -march=athlon-tbird -pipe conftest.c' failed. *** You must set the environment variable CC to a working compiler. !!! ERROR: sys-devel/gcc-3.2.3-r2 failed. !!! Function src_compile, Line 341, Exitcode 1 !!! (no error message) Expected Results: continued to emerge -u world? bash-2.05b# emerge info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r5) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="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="x86 foomaticdb libg++ mad mikmod nls pdflib quicktime truetype xml2 xv zlib gtkhtml gdbm berkdb slang readline tetex svga java guile sdl tcpd pam libwww perl python imlib oggvorbis gtk qt motif 3dnow -acpi alsa apache2 -apm arts avi bonobo cdr crypt cups emacs encode esd ethereal evo fbcon gif gnome gphoto2 gpm imap jpeg kde mmx mpeg mysql ncurses opengl oss -pcmcia png samba scanner spell ssl usb wmf X xmms"
same problem here: # uname -srm Linux 2.6.0-test5 i686 !!! No gcc found. You probably need to 'source /etc/profile' to update !!! the environment of this terminal and possibly other terminals also. Portage 2.0.49-r3 (default-x86-1.4, [unavailable], glibc-2.3.2-r1, 2.6.0-test5) ================================================================= System uname: 2.6.0-test5 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://routi.marinus http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib quicktime spell xml2 xmms xv zlib gdbm berkdb slang readline tetex svga tcltk java guile sdl gpm tcpd pam libwww perl python esd imlib oggvorbis gtk motif opengl mozilla X kde qt qtmt arts alsa acpi4linux ssl truetype png ipv6 -gnome dvd avi aalib cdr gphoto2 xinerama crypt"
*** Bug 30783 has been marked as a duplicate of this bug. ***
after extracting a precompiled build of gcc and reemerging gcc the problem was fixed for me.
I don't understand "extracting a precompiled build"... How do I go about doing this? Also, how do I reemerge gcc afterwards when I need to compile it?
i don't know whether my problem is related, but i'm using gcc-3.2.3-r1 and it fails to compile almost any ebuild (reproducible, tested with kernel 2.4.22 and 2.6.0-test7). it also fails to compile gcc-3.2.3-r2, so i'm stuck now! what can i do? any work-around/quickfix? help greatly appreciated.
the reason for my problem: kernel 2.6.0-test7 was broken (see thread http://www.ussg.iu.edu/hypermail/linux/kernel/0310.1/1748.html) currently i'm emerging gcc with 2.4.22 again and so far it works (must have been bad luck when i tested it with 2.4.22 and it didn't work) sorry for bothering.
Not sure if this is the same bug. Mine's a segfault in gcc (apparently). my athlon-xp system consistly resists emerging gcc-3.2.3-r2. or r1, for that matter. I can compile many ebuilds cleanly, but neither gcc nor binutils. Figuring it might be an issue with the kernel headers gcc was compiled with vs. the ones in operation in my kernel (vs. the linux softlink...), I fell back to an old gentoo-sources-2.4.20-r6. That allowed me to compile the new gcc, provided I removed the java USE flag. binutils compiled in this new senario. Now, since /usr/src/linux pointed to the gentoo-sources-2.4.20-r8 sources when I did that, I figured I could boot back into r8, and try (with some reasonable hope) to recompile both. gcc compiled, again only without the java USE flag. Since then it has also refused to compile itself or binutils, present or past versions, new or old kernel. That said, I'd like my box back. The tail -n <enough> of 'emerge sync; emerge -Dv gcc': ranlib libbackend.a gcc -DIN_GCC -O -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o cc1 \ c-parse.o c-lang.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o c-objc-common.o libcpp.a main.o libbackend.a ../libiberty/libiberty.a gcc -c -DIN_GCC -O -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc -I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/. -I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/config -I/var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/../include /var/tmp/portage/gcc-3.2.3-r2/work/gcc-3.2.3/gcc/tradcpp.c -o tradcpp.o cc1: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [tradcpp.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r2/work/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r2/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.2.3-r2 failed. !!! Function src_compile, Line 371, Exitcode 2 !!! (no error message) irmo root # I have no clue how to get the preprocessed source to give it to you, let alone whether or not I Should, so ask (and instruct) if it would be useful... emerge info: irmo root # emerge info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 AMD Athlon(tm) XP 2100+ Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="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="esd motif -oss aalib apm -arts avi -berkdb crypt cups cdr curl dga directfb doc dvd emacs encode evo fbcon flash foomaticdb freetds freewnn gd gdbm gif gnome gphoto2 -gpm gps gtk gtkhtml guile imap imlib ipv6 java jikes joystick jpeg junit kde kerberos lcms leim -libg++ libgda libwww lirc mad maildir matrox mikmod mmx mozilla mpeg nas ncurses nls nocd oav odbc opengl oggvorbis pam pda pdflib perl png python qt quicktime readline samba sasl scanner sdl slang slp spell socks5 sse ssl svga tcltk tcpd tetex tiff truetype usb videos wmf wxwindows X Xaw3d xinerama xml2 xmms xv zeo zlib x86" notice the C(XX)FLAGS="-O3 -mcpu=athlon -pipe". This is a relaxation from my anecdote above: during that adventure it was "-O3 -march=athlon-xp -funroll-loops -pipe". After I realized I was Really Screwed, I started fiddling/relaxing a few things (like this). Also, somone mentioned that they grabbed a stock gcc to emerge the new one back in? I, too, would love to know a little more about that.
*** Bug 32884 has been marked as a duplicate of this bug. ***
I have a glibc problem now. I don't know if the two are related. The forum for this problem is here: http://forums.gentoo.org/viewtopic.php?t=108870&sid=e6e701b9d75f42d888bc3877267e2ee9 The bugzilla for this problem is here: http://bugs.gentoo.org/show_bug.cgi?id=34236
I'm also having this problem with 3.2.3-r1. Running kernel 2.4.23 from ftp.kernel.org. emerge -u system attempts to update to 3.2.3-r3 only to bomb. I tried manually updating to gcc-3.3.2-r4 but that seg faults to.
I am having the same problem I cannot emerge world due to a compile error on binutils. I have worked with this for weeks now, consistently doing an emerge sync just to confirm that I have the latest ebuilds and what not in case a fix has been made. As far as I can tell, this is happening to many users...I haven't found a fix for it, and I am currently still unable to update my system. Here is my error: checking for working makeinfo... found checking for executable suffix... (cached) checking whether to enable maintainer-specific portions of Makefiles... no checking whether we can use the new demangler in C++... dyn-string.c: In function `dyn_string_delete': dyn-string.c:123: warning: implicit declaration of function `free' dyn-string.c: In function `dyn_string_release': dyn-string.c:140: warning: function `free' was previously declared within a block dyn-string.c: In function `dyn_string_copy': dyn-string.c:206: warning: implicit declaration of function `abort' dyn-string.c:212: warning: implicit declaration of function `strcpy' dyn-string.c: In function `dyn_string_copy_cstr': dyn-string.c:227: warning: implicit declaration of function `strlen' dyn-string.c: In function `dyn_string_insert': dyn-string.c:285: warning: implicit declaration of function `strncpy' dyn-string.c: In function `dyn_string_eq': dyn-string.c:441: warning: implicit declaration of function `strcmp' gcc -c -DHAVE_CONFIG_H -O3 -march=pentium4 -funroll-loops -I. -I./../include -W -Wall -Wtraditional -pedantic dyn-string.c -o dyn-string.o dyn-string.c: In function `dyn_string_delete': dyn-string.c:123: warning: implicit declaration of function `free' dyn-string.c: In function `dyn_string_release': dyn-string.c:140: warning: function `free' was previously declared within a block dyn-string.c: In function `dyn_string_copy': dyn-string.c:206: warning: implicit declaration of function `abort' dyn-string.c:212: warning: implicit declaration of function `strcpy' dyn-string.c: In function `dyn_string_copy_cstr': dyn-string.c:227: warning: implicit declaration of function `strlen' dyn-string.c: In function `dyn_string_insert': dyn-string.c:285: warning: implicit declaration of function `strncpy' dyn-string.c: In function `dyn_string_eq': dyn-string.c:441: warning: implicit declaration of function `strcmp' if [ x"-fpic" != x ]; then \ gcc -c -DHAVE_CONFIG_H -O3 -march=pentium4 -funroll-loops -I. -I./../include -W -Wall -Wtraditional -pedantic -fpic fdmatch.c -o pic/fdmatch.o; \ else true; fi gcc -c -DHAVE_CONFIG_H -O3 -march=pentium4 -funroll-loops -I. -I./../include -W -Wall -Wtraditional -pedantic fdmatch.c -o fdmatch.o if [ x"-fpic" != x ]; then \ gcc -c -DHAVE_CONFIG_H -O3 -march=pentium4 -funroll-loops -I. -I./../include -W -Wall -Wtraditional -pedantic -fpic fibheap.c -o pic/fibheap.o; \ else true; fi fibheap.c: In function `fibheap_union': fibheap.c:166: warning: implicit declaration of function `free' fibheap.c:171: warning: function `free' was previously declared within a block fibheap.c:187: warning: function `free' was previously declared within a block fibheap.c: In function `fibheap_extract_min': fibheap.c:206: warning: function `free' was previously declared within a block fibheap.c: In function `fibheap_delete_node': fibheap.c:285: `LONG_MIN' undeclared (first use in this function) fibheap.c:285: (Each undeclared identifier is reported only once fibheap.c:285: for each function it appears in.) fibheap.c: In function `fibheap_delete': fibheap.c:297: warning: function `free' was previously declared within a block fibheap.c: In function `fibheap_consolidate': fibheap.c:395: warning: implicit declaration of function `memset' distcc[30992] ERROR: compile on tuxserv1 failed make[1]: *** [fibheap.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/binutils-2.14.90.0.7-r4/work/binutils-2.14.90.0.7/libiberty' make: *** [all-libiberty] Error 2 make: *** Waiting for unfinished jobs.... yes updating cache .././config.cache creating ./config.status creating Makefile creating lib/Makefile !!! ERROR: sys-devel/binutils-2.14.90.0.7-r4 failed. !!! Function src_compile, Line 130, Exitcode 2 !!! (no error message) Here is output of emerge info: emerge info Portage 2.0.50-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-gentoo-r2) ================================================================= System uname: 2.4.22-gentoo-r2 i686 Intel(R) Celeron(R) CPU 1.70GHz Gentoo Base System version 1.4.3.13 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.58 Automake: sys-devel/automake-1.7.5-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distcc sandbox userpriv" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://www.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.noved.org/ http://mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod motif mozilla 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" HELP!!!
Please disable distcc and try again.
does someone still have these problems? my gcc is running perfectly for more than 1/2 year...
assuming fixed, please create a new report if the problem persists.