Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16216 - ld problems with a lot of packages : ld: failed to set dynamic section sizes:
Summary: ld problems with a lot of packages : ld: failed to set dynamic section sizes:
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-23 04:54 UTC by Guillaume APOSTOLY
Modified: 2003-02-26 02:52 UTC (History)
0 users

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 Guillaume APOSTOLY 2003-02-23 04:54:29 UTC
I've got the same problem with a lot of packages (fam-oss, alsa, mozilla, etc.)
and I saw a lot of people on the internet having such problems, on different
plateforms and differente distributions.

I took the liberty to put this as major (and hesitated with critical) because it
blocks me (and i guess other users) for updating a lot of packages.

I'm ready to test anything, thanks by advance for your help.

Reproducible: Always
Steps to Reproduce:
So here's the problem : 
emerge -p arts gives me : [ebuild  N   ] kde-base/arts-1.1.0
(i've taken arts as an example because there was no arts package on my system,
i'm using esd, so the problem is not due to an existing version of the package)

Actual Results:  
Then I'm getting this error : 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld:
failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libmcop.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/arts-1.1.0/work/arts-1.1/mcop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/arts-1.1.0/work/arts-1.1'
make: *** [all] Error 2
 
!!! ERROR: kde-base/arts-1.1.0 failed.
!!! Function kde_src_compile, Line 118, Exitcode 2
!!! died running emake, kde_src_compile:make



Expected Results:  
emerge successfull !!

Here's one of the discussions i've found about this sort of problems :
http://www.mail-archive.com/alsa-user@lists.sourceforge.net/msg04841.html

Here's my emerge info for your information : 
bash-2.05b# emerge info
Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.1, glibc-2.2.5-r4,2.3.1-r2)
=================================================================
System uname: 2.4.20-pre10-mjc2 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/
ftp://ftp.rez-gif.supelec.fr/pub/Linux/distrib/gentoo/ "
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /opt/jakarta/tomcat/conf /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=""
USE="3dnow arts kde libg++ mikmod spell gtkhtml bonobo svga ggi guile palm dga
dri gpm berkdb mmx mmx2 sse sse2 gdbm tcpd libwww nls mitshm lame perl imlib png
aalib alsa apm avi cdr crypt cups directfb dvd encode esd gif gnome gtk imap
java jikes jpeg ldap motif mozilla mpeg ncurses oci8 odbc oggvorbis opengl pam pda
pdflib postgres python qt qtmt quicktime readline samba scanner sdl slang snmp
sock5 ssl static svvga tcltk tiff truetype wmf X xml xml2 xmms xv zlib x86 oss"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

Here's also :
bash-2.05b# libtool --version
ltmain.sh (GNU libtool) 1.4.1 (1.922.2.34 2001/09/03 01:22:13)
Comment 1 SpanKY gentoo-dev 2003-02-23 05:54:25 UTC
what version of binutils ?
Comment 2 Guillaume APOSTOLY 2003-02-23 06:01:38 UTC
 sys-devel/binutils-2.13.90.0.16-r1
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-23 18:12:27 UTC
Try to update to binutils-2.13.90.0.18.
Comment 4 Guillaume APOSTOLY 2003-02-23 18:30:39 UTC
ouch ! i'm getting this error when trying to emerge the binutils-2.13.90.0.18: 

checking for gcc... (cached) gcc
checking whether the C compiler (gcc -march=pentium4 -O3 -pipe  -all-static) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-binutils] Error 1
 
!!! ERROR: sys-devel/binutils-2.13.90.0.18 failed.
!!! Function src_compile, Line 84, Exitcode 2
!!! (no error message)
Comment 5 Guillaume APOSTOLY 2003-02-23 18:30:59 UTC
if needed, here's my gcc version : 
 gcc --version
gcc (GCC) 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-23 20:12:32 UTC
Make sure you do not have 'static' in your use, or '-all-static' in your
CFLAGS and try again.
Comment 7 Guillaume APOSTOLY 2003-02-24 03:10:23 UTC
removing "static" from my USE make the emerge binutils-2.13.90.0.18 successfull but i still get the same error when trying to emerge arts.
Comment 8 Guillaume APOSTOLY 2003-02-24 03:18:39 UTC
Note that removing all GCC optimization doesn't change anything. For memory, here's my emerge info : 
Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.1, glibc-2.2.5-r4,2.3.1-r2)
=================================================================
System uname: 2.4.20-pre10-mjc2 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.rez-gif.supelec.fr/pub/Linux/distrib/gentoo/ "
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /opt/jakarta/tomcat/conf /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=""
USE="3dnow arts kde libg++ mikmod spell gtkhtml bonobo svga ggi guile palm dga dri gpm berkdb mmx mmx2 sse sse2 gdbm tcpd libwww nls mitshm lame perl imlib png
aalib alsa apm avi cdr crypt cups directfb dvd encode esd gif gnome gtk imap java jikes jpeg ldap motif mozilla mpeg ncurses oci8 odbc oggvorbis opengl pam pda
pdflib postgres python qt qtmt quicktime readline samba scanner sdl slang snmp sock5 ssl svvga tcltk tiff truetype wmf X xml xml2 xmms xv zlib x86 oss"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 9 Guillaume APOSTOLY 2003-02-24 08:56:15 UTC
In the same spirit than "update your binutils" i've tried this : 
- i've switched to accept 
Comment 10 Guillaume APOSTOLY 2003-02-24 08:56:15 UTC
In the same spirit than "update your binutils" i've tried this : 
- i've switched to accept ¬x86 for development packages
- i've done emerge -u gcc
- i've switched back to stable x86
- emerged arts (the same) and ... it WORKS ! :)

I'm testing if other "broken" packages work now and let you know.

For your information here's the result of emerge -pu gcc : installed versions : the one i forced with temporary ¬x86 flag, and on the right side, what emerge would like to downgrade now. 

Calculating dependencies ...done!
[ebuild    UD] sys-devel/gettext-0.11.5 [0.11.5-r1]
[ebuild    UD] sys-devel/binutils-2.13.90.0.16-r1 [2.13.90.0.18]
[ebuild    UD] sys-libs/glibc-2.3.1-r2 [2.3.1-r3]
[ebuild    UD] sys-apps/texinfo-4.3-r1 [4.5]
[ebuild    UD] sys-devel/gcc-3.2.1-r6 [3.2.2]

Let me know if you want me to try other things.
Regards,

Guillaume.
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-24 09:42:00 UTC
Ok, great.  I also have a Pentium4, and find it is better to not use
'-march=pentium4', but rather '-march=pentium3', as it does not miscompile
as the pentium4 target.

I have marked gcc-3.2.2 and binutils-2.13.90.0.18 stable, and will do so
glibc-2.3.1-r3 ... have a look at other things, and let me know if you are
happy that it was only broken version of gcc.
Comment 12 Guillaume APOSTOLY 2003-02-24 13:42:35 UTC
Yes, everything's working fine now. I (i mean my poor computer) compiled kdelibs, mozilla and kopete this afternoon without a problem. So yes i'm happy with this beeing a broken gcc stuff.
Thanks for your help.

Regards,

Guillaume.
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-26 02:52:11 UTC
Great, thanks for your help and glad its working now!