When trying to emerge binutils the emerge fails on libs/trad-core. Note that I simply had the ditcc feature flag set and the hosts eet, but it was not being distribted to any other computers as no onter computers were on. I removed the ditcc feature flag a few minutes ago which is why it is not in the output of emerge info. Reproducible: Always Steps to Reproduce: 1.emerge gcc Actual Results: Begins to emwege said version of binutils and fails with this error: distcc gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -DTRAD_CORE -I. -I. -I./../include -I./../intl -I../intl -W -Wall -Wstrict- prototypes -Wmissing-prototypes -march=k6 -O3 -pipe -c trad-core.c -fPIC -DPIC -o .libs/trad-core.o trad-core.c: In function `trad_unix_core_file_p': trad-core.c:122: `NBPG' undeclared (first use in this function) trad-core.c:122: (Each undeclared identifier is reported only once trad-core.c:122: for each function it appears in.) trad-core.c:122: `UPAGES' undeclared (first use in this function) trad-core.c:191: `HOST_TEXT_START_ADDR' undeclared (first use in this function) trad-core.c:197: `HOST_STACK_END_ADDR' undeclared (first use in this function) make[3]: *** [trad-core.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18/work/binutils-2.13.90.0.18/bfd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18/work/binutils-2.13.90.0.18/bfd' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18/work/binutils-2.13.90.0.18/bfd' make: *** [all-bfd] Error 2 !!! ERROR: sys-devel/binutils-2.13.90.0.18 failed. !!! Function src_compile, Line 86, Exitcode 2 !!! (no error message) Expected Results: Should have emerged biutils and went on to gcc Output of emerge info: Portage 2.0.47-r8 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20 i586 AMD-K6(tm) 3D processor GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonstate.edu http://distro.ibiblio.org/gentoo " CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/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" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde libg++ mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 zlib gdbm readline arts svga tcltk java guile X sdl gpm tcpd pam ssl python imlib oggvorbis gnome gtk qt motif opengl aalib -berkdb bonobo esd evo gtk2 junit -libwww maildir -mikmod mysql odbc pda perl samba -slang tetex -xmms -xv" COMPILER="gcc3" CHOST="i586-pc-linux-gnu" CFLAGS="-march=k6 -O3 -pipe" CXXFLAGS="-march=k6 -O3 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j3" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
quick solve: use i586 instead of k6 azarah: could this be cause of k6 ?
This does not fix it. It still fails with almost the same error. The only difference is that it now isn't using distcc and it isn't using k6. Error below: gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -DTRAD_CORE -I. -I. -I./../include -I./../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -march=i586 -O3 -pipe -c trad-core.c -fPIC -DPIC -o .libs/trad-core.o trad-core.c: In function `trad_unix_core_file_p': trad-core.c:122: `NBPG' undeclared (first use in this function) trad-core.c:122: (Each undeclared identifier is reported only once trad-core.c:122: for each function it appears in.) trad-core.c:122: `UPAGES' undeclared (first use in this function) trad-core.c:191: `HOST_TEXT_START_ADDR' undeclared (first use in this function) trad-core.c:197: `HOST_STACK_END_ADDR' undeclared (first use in this function) make[3]: *** [trad-core.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -DTRAD_CORE -I. -I. -I./../include -I./../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -march=i586 -O3 -pipe -c elf64.c -o elf64.o >/dev/null 2>&1 make[3]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18/work/binutils-2.13.90.0.18/bfd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18/work/binutils-2.13.90.0.18/bfd' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18/work/binutils-2.13.90.0.18/bfd' make: *** [all-bfd] Error 2 !!! ERROR: sys-devel/binutils-2.13.90.0.18 failed. !!! Function src_compile, Line 86, Exitcode 2 !!! (no error message)
I've also tried this with noting on the CFLAGS(went into /var/tmp/portage/binutils-2.13.90.0.18-r1/binutils-2.13.90.0.18/bfd and did ./configure and make so the clfags that are there are defualts). Also, I have tried with r1 obviously enough. The output i get is virtually identical: gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -DTRAD_CORE -I. -I. -I./../include -I./../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c trad-core.c -o trad-core.o trad-core.c: In function `trad_unix_core_file_p': trad-core.c:122: `NBPG' undeclared (first use in this function) trad-core.c:122: (Each undeclared identifier is reported only once trad-core.c:122: for each function it appears in.) trad-core.c:122: `UPAGES' undeclared (first use in this function) trad-core.c:191: `HOST_TEXT_START_ADDR' undeclared (first use in this function) trad-core.c:197: `HOST_STACK_END_ADDR' undeclared (first use in this function) make[2]: *** [trad-core.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18-r1/work/binutils-2.13.90.0.18/bfd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18-r1/work/binutils-2.13.90.0.18/bfd' make: *** [all-recursive-am] Error 2
Please try binutils-2.13.90.0.20.
Please close this bug. The same build worked on another computer with same CFLAGS, and I have noticed a lot of builds failing on this comuter.
Please don't close Abhishek Amit's bug quite yet. I'm getting a similar bug on my system, during stage 1. Here are the error messages: gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -DTRAD_CORE -I. -I. -I./../include -I./../intl iI../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -mcpu=athlon-xp -O3 -pipe -c trad-core.c -o trad-core.o >/dev/null 2>&1 elflink.h: In function `elf_link_output_relocs': elflink.h:8162: internal error: Segmentation fault Please submit a full bug report, with proprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[3]: *** [elf64.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18/work/binutils-2.13.90.0.18/bfd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18/work/binutils-2.13.90.0.18/bfd' make[1]: *** [all-recursive-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/binutils-2.13.90.0.18/work/binutils-2.13.90.0.18/bfd' make: *** [all-bfd] Error 2 !!! ERROR: sys-devel/binutils-2.13.90.0.18 failed. !!! Function src_compile, Line 86, Exitcode 2 !!! (no error message) --- End of error messages --- I will try binutils-2.13.90.0.20 as Martin Schlemmer suggested and report the results.
Please take a look at bug #20600, and look if it clarifies things. In that case I'll mark it duplicate
Been a few months now.
Looks like I forgot to close it last time.