Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 17034 - sys-devel/binutils-2.13.90.0.18 emerge fails on libs/trad-core.o
Summary: sys-devel/binutils-2.13.90.0.18 emerge fails on libs/trad-core.o
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-07 12:28 UTC by Abhishek Amit (RETIRED)
Modified: 2003-09-27 21:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abhishek Amit (RETIRED) gentoo-dev 2003-03-07 12:28:28 UTC
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"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-03-07 13:13:15 UTC
quick solve: use i586 instead of k6

azarah: could this be cause of k6 ?
Comment 2 Abhishek Amit (RETIRED) gentoo-dev 2003-03-07 14:43:47 UTC
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)
Comment 3 Abhishek Amit (RETIRED) gentoo-dev 2003-03-15 04:39:32 UTC
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
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-24 13:46:19 UTC
Please try binutils-2.13.90.0.20.
Comment 5 Abhishek Amit (RETIRED) gentoo-dev 2003-03-24 18:56:45 UTC
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.  
Comment 6 Howard B. Golden 2003-03-24 23:33:09 UTC
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.
Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2003-05-07 16:56:13 UTC
Please take a look at bug #20600, and look if it clarifies things. In that case I'll mark it duplicate
Comment 8 Abhishek Amit (RETIRED) gentoo-dev 2003-09-12 23:30:41 UTC
Been a few months now.
Comment 9 Abhishek Amit (RETIRED) gentoo-dev 2003-09-27 21:07:26 UTC
Looks like I forgot to close it last time.