Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13601 - GCC borkedness
Summary: GCC borkedness
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-09 16:25 UTC by Troy Moniz
Modified: 2003-02-18 10:30 UTC (History)
3 users (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 Troy Moniz 2003-01-09 16:25:10 UTC
This is a dual xeon machine. (550, 512 megs of ram.. scsi)
This box was emerge'd and world upgraded about a week prior.  I did another 
world upgrade and gcc died on the following.  seemant request it be reported 
asap.


echo "int xxy_us_dummy;" >tmp-dum.c
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-
gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -S tmp-dum.c
cp/pt.o(.text+0xbc20): In function `tsubst':
: undefined reference to `TYPE_BEING_DAFINED'
collect2: ld returned 1 exit status
make[2]: *** [cc1plus] Error 1
make[2]: *** Waiting for unfinished jobs....
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c
make[2]: *** Waiting for unfinished jobs....
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \
  echo "int prepends_underscore = 1;" >>tmp-under.c; \
else \
  echo "int prepends_underscore = 0;" >>tmp-under.c; \
fi
make[2]: *** Waiting for unfinished jobs....
/bin/sh /var/tmp/portage/gcc-3.2.1-r6/work/gcc-3.2.1/gcc/move-if-change tmp-
under.c underscore.c
make[2]: *** Waiting for unfinished jobs....
rm -f tmp-dum.c tmp-dum.s
make[2]: *** Waiting for unfinished jobs....
echo timestamp > s-under
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.1-r6/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.1-r6/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.2.1-r6 failed.
!!! Function src_compile, Line 284, Exitcode 2
!!! (no error message)
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2003-01-09 16:56:27 UTC
will do a grep on the gcc sources for TYPE_BEING_DAFINED in the morning, it is a
obvious typo! I guess, unless someone is being funny
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2003-01-10 02:04:47 UTC
I'm sorry but I cannot find where TYPE_BEING_DAFINED is anywhere in the gcc
sources, I can find TYPE_BEING_DEFINED many times.

could you do ebuild gcc-3.2.1-r6.ebuild unpack and goto the work dir and grep
for the said string in the file gcc/cp/pt.c

If must be a flipped bit error then (data corruption either in gcc (doubt it) or
via your hardware ).

Stefan
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-12 13:44:21 UTC
Check your kernel ... we had issues like this before, and it needed a patch
kernel side ... also dual Xeon ....
Comment 4 Stefan Jones (RETIRED) gentoo-dev 2003-02-18 10:30:47 UTC
I think this is a freak, plus gcc-3.2.2 is out now.

TYPE_BEING_DAFINED appears nowhere in the sources,
so your system is at fault!