[Bug 237688] lang/gcc8 fails to build: /usr/local/bin/ld: /wrkdirs/usr/ports/lang/gcc8/work/.build/./gcc/liblto_plugin.so: error loading plugin: Service unavailable

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed May 8 17:21:30 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237688

--- Comment #8 from Dimitry Andric <dim at FreeBSD.org> ---
(In reply to Gerald Pfeifer from comment #5)
> So, it was a non-default setting after all. ;-)
> 
> That said, is there a better way of reasonably handling this within our
> ports framework?  Something like
> 
>    .if $(binutils built statically)
>    IGNORE= GCC requires dynamically linked binutils
>    .endif

Something like that, or somehow disable LTO plugins when building gcc, or at
least warning about it.


> Or perhaps drop the STATIC option from devel/binutils?  Is this an 
> important one for users?

I think this option mirrors what we have in the base system, where for
apparently historical reasons, most toolchain components (cc, ld, etc) are
built statically. Most likely, the idea was to be able to get yourself out of
certain situations where the system is messed up, and then being able to
rebuild it.

It was added in ports r434650 by bdrewery, maybe he remembers what it was meant
for?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list