The sys-devel/binutils-2.21 ebuild does not patch out the build system when building on Gentoo/FreeBSD, which means that it will attempt to link to the non-existant libdl.so. Reproducible: Always Steps to Reproduce: 1. emerge -1v =sys-devel/binutils-2.21 Actual Results: http://paste.pocoo.org/show/309397/ Expected Results: It should have worked. A workaround for this is to mask sys-devel/binutils-2.21. The ebuild for sys-devel/binutils-2.20.1-r1 works on Gentoo/FreeBSD.
First of all, attach instead of using a pastebin. Now, while I don't have FreeBSD and it may not be related to this particular problem, I've noticed an interesting line: find: -printf: unknown option Even if irrelevant here, it still may need to be addressed.
Created attachment 257988 [details] build.log (In reply to comment #1) > First of all, attach instead of using a pastebin. > Now, while I don't have FreeBSD and it may not be related to this particular > problem, I've noticed an interesting line: > find: -printf: unknown option > Even if irrelevant here, it still may need to be addressed. > I have made several unsuccessful attempts at installing Gentoo/FreeBSD in a virtual machine over the past few days. This time I managed to get to the point of rebuilding the tool chain and I encountered this issue. The problem is that the BSD libraries put the libdl.so functions into libc.so and the GNU libraries expect those functions to be in libdl.so, so they try to link libdl.so and this linker error occurs. Anyway, I have attached the build log from the pastebin.
I can confirm this issue. Hints are that --enable-plugins is the culprit. I tried 2.21.51.0.6.
@FreeBSD team: I think this bug is a dup of bug #347931
*** This bug has been marked as a duplicate of bug 347931 ***