Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28875 - gcc-3.3.1-r2 breaks packages
Summary: gcc-3.3.1-r2 breaks packages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 28899 28901 28942 (view as bug list)
Depends on:
Blocks: 28890
  Show dependency tree
 
Reported: 2003-09-16 05:45 UTC by Alexander Jenisch
Modified: 2003-10-02 00:16 UTC (History)
12 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 Alexander Jenisch 2003-09-16 05:45:19 UTC
i (and some other ppl on the forum) have come to the conclusion, that some 
packages built with gcc-r2 will be broken and segfault right away. some examples 
are xmms, nethack, wine. it seems that not all user configurations are affected 
(see this thread: http://forums.gentoo.org/viewtopic.php?t=84803).
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2003-09-16 11:04:25 UTC
Confirmed, just emerged the new openssh packages and my SSH client segfaulted.
I'm downgrading GCC to 3.2.3-r1 again.

Portage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.6.0-test5-mm1)
=================================================================
System uname: 2.6.0-test5-mm1 i686 AMD Athlon(TM) MP 1800+
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-mp -pipe -fomit-frame-pointer"
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="-O2 -march=athlon-mp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 avi crypt cups encode foomaticdb jpeg kde libg++ libwww mad mmx mpeg ncurses pdflib png quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline ggi tcltk java X sdl tcpd pam ssl perl python esd imlib oggvorbis gnome gtk motif opengl mozilla 3dnow acpi curl dvd ethereal faad gtk2 imap ipv6 jikes lcms ldap md5sum mdb mng moznoirc moznomail pic S3TC slp snmp sse tiff usb v4l wmf xfs xinerama xvid -oss -apm -arts -gif -gpm -mikmod -nls -qt -svga"
Comment 2 Joshua Kinard gentoo-dev 2003-09-16 11:08:49 UTC
You can add kernel menuconfig to the list of programs that segfault.  gcc-3.3.1-r1 disappeared, I think someone needs to fetch this from the CVS Attic, wipe -r2, and drop -r1 back in before too many people horribly break their systems.
Comment 3 Paul Slinski 2003-09-16 11:10:12 UTC
Confirmed: XMMS (1.2.8-r1 and 1.2.8-r2) is segfaulting here with 3.3.1-r2
Comment 4 Brian Friday 2003-09-16 11:18:47 UTC
I can confirm that two system with gcc 3.3.1-r1 built perfectly fine with openssh-3.7p1 but two other system with gcc 3.3.1-r2 are totally fubar now and neither openssh 3.7p1 or older versions of openssh build at all. 

You all probably know it already but this bug appears to be just related to 3.3.1-r2 only.
Comment 5 Narada Sage 2003-09-16 11:47:17 UTC
Isn't this more like blocker given that ~x86 defaults to a broken version that produces broken packages?
Comment 6 jasong 2003-09-16 12:01:00 UTC
You can add the compiler itself as a package that won't compile itself again!  
This was a BAAD idea to replace a reasonably working 3.3.1-r1 and kill our 
systems.  I can't even compile the compiler itself, and I can't boot normally 
since checkfs fails because e2fsprogs got compiled.....  And now -r1 is missing 
from the tree.  What we need is a working binary package of -r1 put to a 
publically accessable place ASAP! 
 
Comment 7 Jon Portnoy (RETIRED) gentoo-dev 2003-09-16 12:02:30 UTC
I've masked -r2.

There's a bin pkg of -r1 at http://dev.gentoo.org/~avenj/bins/
Comment 8 Paper 2003-09-16 12:11:08 UTC
I already tried that binary tarball, but it is broken. Seems like the file hasn't been completely uploaded. I wrote an email to avenj to tell him about that but still haven't got answer.
Comment 9 Paper 2003-09-16 12:12:34 UTC
oops ... it was you ... sorry, didn't look at your email in the bugzilla post :(
Comment 10 Jon Portnoy (RETIRED) gentoo-dev 2003-09-16 12:17:12 UTC
Actually, I did reply to that email...

in any case, it turns out you're right. I'm putting up a new one as we speak.
Comment 11 Paul Slinski 2003-09-16 12:27:13 UTC
Here are 2 more

Here are 2 more
http://forkbomb.dhs.org/gcc-3.3.1-r1.tbz2
http://forkbomb.dhs.org/gcc-3.2.3-r2.tbz2
CFLAGS="-march=pentium3 -O3 -pipe"
Comment 12 SpanKY gentoo-dev 2003-09-16 12:34:11 UTC
*** Bug 28901 has been marked as a duplicate of this bug. ***
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-16 12:43:44 UTC
Easy fix:

 # mv $(gcc-config -L)/libgcc_s.a $(gcc-config -L)/libgcc.a


and remerge whatever you merged with -r2.
Comment 14 Paper 2003-09-16 12:55:10 UTC
Martin's trick did it! But I think it's important to run ldconfig and to reboot after moving the library, to be sure that it's correctly reloaded, in case it's already cached. Am I wrong?
In fact this morning I tried moving out of the way libgcc.a (the script) after that apps segfaulted and without rebooting, and it didn't work. But I've been to lazy to reboot...
Comment 15 Paul Slinski 2003-09-16 13:30:01 UTC
I think this is important enough to make an announcement to the list(s) and the forums in an attempt to curb the problems that could potentially occur. No?
Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-16 14:21:36 UTC
No need for ldconfig, as its a static library.  Then, we did already mailed
to -dev and Ulrich (plate) did post to the forums.  Thanks.
Comment 17 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-16 14:30:37 UTC
*** Bug 28899 has been marked as a duplicate of this bug. ***
Comment 18 Andrew Bevitt 2003-09-16 18:18:45 UTC
+       if [ -f "${D}${LIBPATH}/libgcc.a" ]
+       then
+               mv -f ${D}${LIBPATH}/libgcc.a ${D}${LIBPATH}/libgcc_s.a
+               cat > ${D}${LIBPATH}/libgcc.a <<EOF
+/* GNU ld script
+       Use the shared library, but some functions are only in
+       the libc.a static library, so try that secondarily.  */
+GROUP ( libgcc_s.a /usr/lib/libc.a )
+EOF
+       fi
+

This comes from the -r2 ebuild. 
It is not in the -r1 ebuild, and seen as though that is what Martins little fix reverses, I would think is the cause of the problems. Reversing it though may cause more hassles
Comment 19 Martin Holzer (RETIRED) gentoo-dev 2003-09-17 08:15:30 UTC
*** Bug 28942 has been marked as a duplicate of this bug. ***
Comment 20 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-17 13:42:59 UTC
No, reversing it with the command given, or taking that out of the build
and remerging will have no after effects.  Just remerge whatever you merged
with it.
Comment 21 Tom Wesley 2003-09-17 13:48:57 UTC
Is it worth saying, that although I have downgraded to -r1, I had no problems 
with anything built with -r2.  In case it helps someone debug, my info is: 
ortage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 
2.4.20-gentoo-r6) 
================================================================= 
System uname: 2.4.20-gentoo-r6 i686 AMD Athlon(tm) MP 2400+ 
ccache version 2.2 [enabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-mcpu=athlon-mp -O2 -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="-mcpu=athlon-mp -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox autoaddcvs ccache fixpackages" 
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org 
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="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 oss apm avi cups encode foomaticdb gif jpeg libg++ mad mikmod mmx 
mpeg ncurses nls pdflib png quicktime spell xml2 xmms xv zlib gtkhtml alsa 
gdbm berkdb slang readline arts tetex bonobo svga tcltk java guile ruby mysql 
sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis qt motif opengl 
mozilla ldap cdr X kde gtk gtk2 ptl gnome dvd pda crypt truetype" 
 
running on a dual Athlon MP system. 
 
Let me know if you need specifics, 
Tom 
Comment 22 Nicolai Lissner 2003-09-17 23:33:27 UTC
btw, -r2 is the (failed) try to solve some problems that appear with -r1 but 
does this by going *BACK* - to branch-update of 20030815 -- while -r1 is 
already brach-update of 20030904 - so IMHO what we need is a better solution 
for the problems that appear with -r1 not really a running version based on 
this r2-ebuild.  
Comment 23 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-24 18:58:15 UTC
I do not see what this have to do with anything - if you work with cvs, you
either:

1) backout if a broken patch was commited

2) wait for the fix to be commited

3) fix it yourself

I did 1), as I do not know enouth about the parser code to fix it, and do not
have the time (and as this is not stable builds ...).  You are open to do 3),
but that is anyhow fixed with -r3, so please just use that.

Anyhow, -r3 is out which fixes this.
Comment 24 Nicolai Lissner 2003-09-25 07:01:38 UTC
Sorry, I didnt mean to insult you - I agree, it was worth trying - unfortunately
it didn't work...

thanks for r3.