Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558382 - =sys-devel/binutils-2.25.1 fails to build working glibc on alpha
Summary: =sys-devel/binutils-2.25.1 fails to build working glibc on alpha
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/bugzilla/show_...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-22 06:18 UTC by Matt Turner
Modified: 2015-08-27 17:38 UTC (History)
1 user (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 Matt Turner gentoo-dev 2015-08-22 06:18:10 UTC
glibc fails the preinst checks (specifically /usr/bin/cal segfaults on exit) when it is built with binutils-2.25.1.

I confirmed that this behavior occurs with glibc 2.19-r1, 2.20-r2, and 2.21-r1, and that binutils-2.24-r3 is successful in building a working glibc.

The segfault happens in __call_tls_dtors. The $URL contains a link to the equivalent Debian bug report.

We should hard mask affected binutils versions on alpha.
Comment 1 SpanKY gentoo-dev 2015-08-25 00:16:31 UTC
have you tried 2.25 ?  i'm pretty sure my chroot built & runs glibc-2.20 fine w/gcc-5.1.0 and binutils-2.25 ...
Comment 2 SpanKY gentoo-dev 2015-08-25 04:58:53 UTC
yeah, i've verified that 2.25.1 causes a bad build, but 2.25 works fine.  should make bisecting faster.
Comment 3 SpanKY gentoo-dev 2015-08-25 19:01:10 UTC
i've reduced the glibc build down to two steps -- creation of libc_pic.os and the final libc.so link.  switching between 2.25 & 2.25.1 shows the issue.
Comment 4 SpanKY gentoo-dev 2015-08-25 20:29:13 UTC
looks like it's due to this commit:
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=53df40a43c968f4d97754226d62775d1fe665459

newer git also allows backends to disable the sorting:
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=28dbcedc7b1282b93c3f25c4e42ae71b44e8e2a8

if we disable the sort for alpha, it fixes things.  will have to take upstream to figure out whether we want to disable it for alpha all the time, or if an adjustment in glibc would help out.
Comment 5 SpanKY gentoo-dev 2015-08-25 21:02:44 UTC
moved upstream here:
https://sourceware.org/bugzilla/show_bug.cgi?id=18867

we can let the binutils/glibc guys debate the right route to go.
Comment 6 Matt Turner gentoo-dev 2015-08-25 21:16:41 UTC
Thanks a lot vapier. I wasn't intending for you do to the legwork, but I very much appreciate it!