Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11088 - binutils > 2.13.90.0.10 [ld segmentation fault] alsa-lib-0.9.0_rc6 do not link ...
Summary: binutils > 2.13.90.0.10 [ld segmentation fault] alsa-lib-0.9.0_rc6 do not lin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
: 11361 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-22 09:11 UTC by Guillaume APOSTOLY
Modified: 2003-02-04 19:42 UTC (History)
17 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 Guillaume APOSTOLY 2002-11-22 09:11:27 UTC
Hi,

I've got the below linkage error with alsa-lib-0.9.0_rc6 (rc5 also, and I guess 
all 0.9.0_rcx).
I'm on a Gentoo 1.4, with GCC 3.2, kernel 2.4.20_pre10mjc.
My gcc options are : 
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"

I'm ready to test stuffs if needed.
Regards,

Guillaume.

i686-pc-linux-gnu-gcc -shared  conf.lo confmisc.lo input.lo output.lo async.lo 
error.lo dlmisc.lo -Wl,--whole-archive control/.libs/libcontrol.al 
mixer/.libs/libmixer.al pcm/.libs/libpcm.al rawmidi/.libs/librawmidi.al 
timer/.libs/libtimer.al hwdep/.libs/libhwdep.al seq/.libs/libseq.al 
instr/.libs/libinstr.al compat/.libs/libcompat.al -Wl,--no-whole-archive  
control/.libs/libcontrol.al mixer/.libs/libmixer.al pcm/.libs/libpcm.al 
rawmidi/.libs/librawmidi.al timer/.libs/libtimer.al hwdep/.libs/libhwdep.al 
seq/.libs/libseq.al instr/.libs/libinstr.al compat/.libs/libcompat.al -lm -ldl -
lpthread           -Wl,--version-script=Versions -Wl,-soname -
Wl,libasound.so.2 -o .libs/libasound.so.2.0.0
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
make[2]: *** [libasound.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/alsa-lib-0.9.0_rc5/work/alsa-lib-
0.9.0rc5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/alsa-lib-0.9.0_rc5/work/alsa-lib-
0.9.0rc5/src'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/alsa-lib-0.9.0_rc5 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! make failed
Comment 1 Phil Richards 2002-11-22 10:18:31 UTC
Me too.

Ok, a bit more information.

Using ~x86 on 1.4_rc1; all installed packages are completely up-to-date - 
gcc 3.2.1, binutils 2.13.90.0.14.  No masked packages are installed.
Kernel=2.4.19-gentoo-r10.
CFLAGS="-march=athlon -O3 -pipe"
Currently have alsa-lib-0.9.0_rc5 installed.

Exactly the same failure condition.

Combined with original report, this suggests problem with either gcc 3.2.1
or the new binutils.  I'd put my money on the latter...

phil
Comment 2 Joshua Norman 2002-11-22 18:16:49 UTC
Me too... happens on an athlon 1.4 with 512 mb ram, if that's important.
Comment 3 Daniel Nielsen 2002-11-23 14:49:59 UTC
It happened to me today as well... also using the new binutils / gcc

/Daniel
Comment 4 Simon Cooper 2002-11-23 16:20:25 UTC
ditto, failure with binutils xx.xx.xx.10 and gcc 3.2.1, gentoo-sources r10,
athlon 1.333, 512mb ram blah blah blah
Comment 5 Lesley van Zijl 2002-11-24 09:21:19 UTC
If you don't have any sound anymore becuase you tried to unmerge every alsa
package to see if you get the same error, and you miss your sound just like i did :)

use the rc3, that one still works
(think about the snd_ in /etc/modules.d/alsa)
Comment 6 Arcady Genkin (RETIRED) gentoo-dev 2002-11-25 01:28:10 UTC
Punting back to bug-wranglers; this looks like a bug related to binutils and/or
gcc-3.
Comment 7 slak 2002-11-25 07:30:52 UTC
same here; a patch would be reaallly nice; need rc5 or rc6 for my via8235 snd 
card
Comment 8 slak 2002-11-25 10:55:41 UTC
just to inform u... it's a binutils bug; just compiled binutils-2.13.90.0.10.ebuild and alsa-lib compiled without any glitches :D
Comment 9 Guillaume APOSTOLY 2002-11-26 05:35:19 UTC
<a href=http://bugs.gentoo.org/show_bug.cgi?id=11088#c8>Comment 8</a> is right.
I've done the same thing and it fixes my problem.

So do we have to change the bug to "fixed" ? I don't know if there's already a
bug declared for the binutils problem ?
Comment 10 Sean Walker 2002-11-26 11:18:20 UTC
No, don't change the status to fixed for a workaround. Binutils needs to be
masked appropriately by a maintainer until a fixed version is released. If there
is a binutils bug already declared then this bug should be marked as a
duplicate. I haven't found one myself.
Comment 11 Markus Krainer 2002-11-28 15:41:10 UTC
I installed the latest binutils (2.13.90.0.16) and the linking
problem disappeared. 

HTH,
  Markus
Comment 12 Nick Hadaway 2002-11-29 02:10:26 UTC
updating binutils to .16 also fixed things for me as well.
In the release file for binutils there is a note about an ld related fix.

Azarah, as you seem to be the binutils maintainer, this new version should be
added to portage.  It looks like a simple version bump is all that is needed.
Comment 13 Arcady Genkin (RETIRED) gentoo-dev 2002-11-29 12:39:10 UTC
*** Bug 11361 has been marked as a duplicate of this bug. ***
Comment 14 Nick Hadaway 2002-11-29 14:22:31 UTC
I have added the new version to portage.
Comment 15 Phil Richards 2002-11-29 18:32:18 UTC
The new ebuild works for me - looks like .16 has fixed the problem.

Phil Richards
Comment 16 Dave Nellans 2002-11-29 19:17:44 UTC
agreed, .16 binutils fixes the problem... lets close this one.