Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40700 - gcc downgrade gcc-3.3.2-r6 -> gcc-3.3.2.-r5 fails
Summary: gcc downgrade gcc-3.3.2-r6 -> gcc-3.3.2.-r5 fails
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-07 03:46 UTC by Daniel Seyffer
Modified: 2004-05-03 11:35 UTC (History)
2 users (show)

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


Attachments
emerge -u gcc output (gcc_update,193.68 KB, text/plain)
2004-02-07 09:39 UTC, Daniel Seyffer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Seyffer 2004-02-07 03:46:51 UTC
Hello,

I did a gcc upgrade to gcc-3.3.2-r6 yesterday and now that portage tries to downgrade to gcc-3.3.2-r5 compilation fails.

--------- output -------------
[...]
 Applying io_quotes_def            to xvid.h
Applying io_quotes_use            to xvid.h
Applying io_quotes_def            to libnautilus/nautilus-scroll-positionable.h
Applying io_quotes_def            to libgsf-1/gsf/gsf-output-stdio.h
Applying io_quotes_def            to libgsf-1/gsf/gsf-output-iochannel.h
Applying io_quotes_def            to libgsf-1/gsf/gsf-input-stdio.h
Applying ctrl_quotes_def          to readline/chardefs.h
Applying sysv68_string            to string.h
Applying limits_ifndefs           to limits.h
Applying io_quotes_def            to cdda_interface.h
Fixing directory /usr/include/GL into /var/tmp/portage/gcc-3.3.2-r5/work/build/gcc/include/root/usr/X11R6/include/GL
Fixing directory /usr/include/DPS into /var/tmp/portage/gcc-3.3.2-r5/work/build/gcc/include/root/usr/X11R6/include/DPS
Fixing directory /usr/include/X11 into /var/tmp/portage/gcc-3.3.2-r5/work/build/gcc/include/root/usr/X11R6/include/X11
Applying io_quotes_def            to X11/Xmu/Atoms.h
Fixing directory /usr/include/mozilla into /var/tmp/portage/gcc-3.3.2-r5/work/build/gcc/include/root/usr/lib/mozilla/include
Applying ctrl_quotes_def          to mozilla/js/jsstr.h
Applying machine_ansi_h_va_list   to mozilla/dbm/ncompat.h
Fixed:  mozilla/dbm/ncompat.h
Applying io_quotes_def            to mozilla/nspr/md/_win16.h
Applying io_quotes_def            to mozilla/nspr/md/_macos.h
Cleaning up unneeded directories:
fixincludes is done
echo timestamp > stmp-fixinc
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.2-r5/work/build/gcc'
make[1]: *** [stage1_build] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.2-r5/work/build/gcc'
make: *** [bootstrap-lean] Fehler 2

!!! ERROR: sys-devel/gcc-3.3.2-r5 failed.
!!! Function src_compile, Line 432, Exitcode 2
!!! (no error message)
---------------------------------------------------------------------------

I already tried "emerge gcc" a few times and always get this error message (I already did clean up /var/tmp/portage). Finally while I do use distcc the distcc hosts have not been set, so currently distcc is not in use...

Thanks.


Reproducible: Always
Steps to Reproduce:
1. emerge -u gcc (upgrade to 3.3.2-r6)
2. emerge sync
3. emerge -u gcc (downgrade to 3.3.2-r5)




Portage 2.0.50_pre22 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0,
2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.4.3.12
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
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.2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/
http://ftp.easynet.nl/mirror/gentoo/ ftp://gentoo.ccccom.com
ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow S3TC X aalib acpi acpi4linux alsa apache2 apm arts artswrappersuid
avi berkdb bonobo cdr crypt cups dga directfb dvd encode esd ethereal evo fbcon
fbdev foomaticdb freetype gb gdbm gif gnome gphoto2 gpm gtk gtk2 gtk2i gtkhtml
hbci imagemagick imap imlib java javascript jikes joystick jpeg kde lcms ldap
libg++ libwww linguas_de mad maildir mikmod mmx motif mozilla moznocompose
moznoirc mpeg ncurses nls nptl oav oggvorbis opengl pam pcmcia pdflib perl pic
png pnp ppds python qt quicktime readline samba sdl slang spell sse ssl svga
tcpd tiff transcode truetype trusted type1 usb videos x86 xml xml2 xmms xv zlib"
Comment 1 Daniel Seyffer 2004-02-07 05:48:59 UTC
I don't seem to run into this problem on my second Gentoo box (a Pentium II), which is currently also downgrading from 3.3.2-r6 to r5 and so far compiles fine. Hmmm. :-/
Comment 2 SpanKY gentoo-dev 2004-02-07 09:25:58 UTC
that output doesnt have the error in it ...
scroll further up to find it

also, why would you downgrade ? :P
Comment 3 Daniel Seyffer 2004-02-07 09:30:50 UTC
Why? Don't ask me, ask portage!

emerge -up gcc
These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     UD] sys-devel/gcc-3.3.2-r5 [3.3.2-r6]

ChangeLog says:
  07 Feb 2004; Martin Schlemmer <azarah@gentoo.org> gcc-3.3.2-r6.ebuild:
  Mask again, as it have some issues, bug #40603.


Will attached updated output at once.
Comment 4 Daniel Seyffer 2004-02-07 09:39:30 UTC
Created attachment 25135 [details]
emerge -u gcc output

Ups, now that's quite interesting:
"/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libgcc.a: could not read symbols:
Malformed archive"
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-07 10:53:08 UTC
Check disk space - if possible, switch PORTAGE_TMPDIR to another partition.
Comment 6 Daniel Seyffer 2004-02-07 10:58:53 UTC
disk space is 3,5 GB of free space left. Any other pointers? Thanks.
Comment 7 Colin Tinker 2004-02-07 15:16:32 UTC
I get this as well with the same CFLAGS I have tried other cflags but it always fails at the same point.
Comment 8 Colin Tinker 2004-02-07 16:17:26 UTC
I have found a work around for this problem, I have locally masked r5 of gcc3.3.2 and r4 has compiled fine.  I got a lot of errors compiling kde 3.2 with r5 mainly segfaults and downgraded to r4 then and all compiled fine.  I notice on downgrading to r5 from r6 it does not scan at the begining of the compile for programs using the stack smashing code but going back to r4 does, may be a clue?  I am leaving r5 masked for now until this has been resolved.
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-08 00:52:12 UTC
Hmm, weird thing though, is that it tries to link with the libgcc.a in the
live /.  So this might be another issue rather of -r6?  It only shows up here
as there might be some changes to the build process might have changed.

Colin, does -r5 merge from -r4 now?

Comment 10 Daniel Seyffer 2004-02-08 02:38:07 UTC
Well, if I try downgrading to -r4 I get exaclty the same error message as when trying to emerge -r5. 
Suppose my currently installed -r6 is quite broken, probably time to search for a binary gcc package... :-/
Comment 11 Daniel Seyffer 2004-02-08 05:00:07 UTC
I have worked around this problem by emerging a binary gcc package (gcc-3.3.2-r2 from http://dev.gentoo.org/~avenj/bins/) and then emerging gcc-3.3.2-r5.
Comment 12 walt 2004-02-08 07:16:41 UTC
My portage started yesterday trying to upgrade from 3.2.3-r3 to 3.3.2-r5 and
fails with yet a different problem:

 No binaries with suspicious libgcc __guard@GCC dependencies detected

>>> Source unpacked.
 * Configuring GCC...
Created "Makefile" in /var/tmp/portage/gcc-3.3.2-r5/work/build using "mt-frag"
cc1: invalid option `-O2-pipe'
*** The command 'gcc -o conftest  -mcpu=athlon -O2-pipe   conftest.c' failed.

You can see that the -O2-pipe flags need a space in between them.  This smells
like a sed-script error to me.  Anyone else seen this?  I have it on two athlon
machines.

Should I open a new bug report for this?
Comment 13 Alexander Gabert (RETIRED) gentoo-dev 2004-03-11 06:48:05 UTC
this sounds like a broken flag-o-matic.eclass to me where filter-flags does some incidential concatenating of formerly separated CFLAGS
Comment 14 Daniel Seyffer 2004-05-03 11:35:58 UTC
You can close this old bug report - at least as far as I am concerned. (See #11) ;-)