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 :)
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.
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.
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`
(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?
(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.
Created attachment 126182 [details] libc un stripped
Created attachment 126184 [details] libc stripped
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
Yeah, that's the confirmed fix. Try hard to get it out this weekend :)
*** This bug has been marked as a duplicate of bug 183725 ***