Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186695 - portage-2.1.3_rc9 builds freebsd-lib incorrectly
Summary: portage-2.1.3_rc9 builds freebsd-lib incorrectly
Status: RESOLVED DUPLICATE of bug 183725
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All FreeBSD
: High blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-26 15:21 UTC by Roy Marples (RETIRED)
Modified: 2007-07-29 04:34 UTC (History)
2 users (show)

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


Attachments
libc un stripped (libc.works,14.62 KB, text/plain)
2007-07-27 21:35 UTC, Roy Marples (RETIRED)
Details
libc stripped (libc.fails,13.12 KB, text/plain)
2007-07-27 21:36 UTC, Roy Marples (RETIRED)
Details
30_all_binutils-2.17-strip-less.patch (30_all_binutils-2.17-strip-less.patch,859 bytes, text/plain)
2007-07-28 05:03 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Marples (RETIRED) gentoo-dev 2007-07-26 15:21:46 UTC
With portage-2.1.3_rc9
emerge cmake OK
emerge sys-freebsd/freebsd-lib OK
emerge cmake FAIL

at this point, we cannot build any C++ program but existing ones work fine.
We can roll back to portage-2.1.2.9 at this point and re emerge libc to get things working again, but if we don't and we ....

emerge sys-freebsd/freebsd-lib OK

at this point we now have major breakage and only statically built programs work as nothing can find a reference to __start or __fini anymore.

So somehow it's not building our libc correctly and as such >=portage-2.1.3_rc is masked on Gentoo/FreeBSD. More details as I investigate, but any pointers from portage team about what could have changed to affect this would be appreciated :)
Comment 1 Zac Medico gentoo-dev 2007-07-26 17:29:56 UTC
I imagine that this is related to some of the changes that we've made in /usr/lib/portage/bin/prepstrip.  You can try reverting to an older version of that file to see if that solves the problem.
Comment 2 Zac Medico gentoo-dev 2007-07-26 19:40:55 UTC
Based on my limited knowledge I think this might be a bug in the way that strip operates so the version of binutils that you're using might be relevant.
Comment 3 SpanKY gentoo-dev 2007-07-26 20:02:17 UTC
what version of binutils are you using ?  emerge freebsd-lib with FEATURES=nostrip and then run `readelf -a` on the crt*.o objects that i imagine that package installs.  then run `strip --strip-unneeded` on the crt*.o objects and compare the output with `readelf -a`
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-07-27 20:20:00 UTC
(In reply to comment #3)
> what version of binutils are you using ?

2.17

interestingly, changing to 2.17.50.0.17 seems to make things work, ie
emerge -1 sys-devel/binutils-2.17.50.0.17
emerge -1 portage-2.1.3_rc9
emerge -1 libc
emerge -1 cmake
all works now.

>  emerge freebsd-lib with
> FEATURES=nostrip and then run `readelf -a` on the crt*.o objects that i imagine
> that package installs.  then run `strip --strip-unneeded` on the crt*.o objects
> and compare the output with `readelf -a`

You still want that or should I just keyword the newer binutils?
Comment 5 Roy Marples (RETIRED) gentoo-dev 2007-07-27 21:05:08 UTC
(In reply to comment #4)
> interestingly, changing to 2.17.50.0.17 seems to make things work, ie
> emerge -1 sys-devel/binutils-2.17.50.0.17
> emerge -1 portage-2.1.3_rc9
> emerge -1 libc
> emerge -1 cmake
> all works now.

lies, I had nostrip i my make.conf. requested output will be attached.
Comment 6 Roy Marples (RETIRED) gentoo-dev 2007-07-27 21:35:37 UTC
Created attachment 126182 [details]
libc un stripped
Comment 7 Roy Marples (RETIRED) gentoo-dev 2007-07-27 21:36:08 UTC
Created attachment 126184 [details]
libc stripped
Comment 8 SpanKY gentoo-dev 2007-07-28 05:03:48 UTC
Created attachment 126202 [details]
30_all_binutils-2.17-strip-less.patch

yep, i think you've hit Bug 183725 which we've gotten fixed upstream ...

if you can verify this patch fixes things, i'll try extra hard to get binutils-2.17-r1 out this weekend :p
Comment 9 Roy Marples (RETIRED) gentoo-dev 2007-07-28 09:27:18 UTC
Yeah, that's the confirmed fix.

Try hard to get it out this weekend :)
Comment 10 SpanKY gentoo-dev 2007-07-29 04:34:12 UTC

*** This bug has been marked as a duplicate of bug 183725 ***