[Bug 283155] Link fails with -flto: error loading plugin: Cannot open "/usr/bin/../lib/LLVMgold.so" (port multimedia/kew)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 Dec 2024 14:00:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283155

--- Comment #8 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Dimitry Andric from comment #7)

Probably how to reproduce the LLVMgold.so use attempt for
direct make style builds: have devel/binutils@amd64
installed at the time so that the:

/usr/local/bin/*-unknown-freebsd*-ld

exists when the cc based link command is executed.

Turns out that I've reported the issue to the lists in the past. An
example is:

https://lists.freebsd.org/archives/freebsd-toolchain/2022-September/000898.html

It even shows the example (aarch64 context, not amd64):

/usr/local/bin/aarch64-unknown-freebsd14.0-ld: /usr/bin/../lib/LLVMgold.so:
error loading plugin: Cannot open "/usr/bin/../lib/LLVMgold.so"

Sorry it took so long to remember.

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