[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 18:41:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283155

--- Comment #13 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #12)

I should have listed that TargetSpecificExecutables traces back
to being filled in via:

void Driver::generatePrefixedToolNames(
    StringRef Tool, const ToolChain &TC,
    SmallVectorImpl<std::string> &Names) const {
  // FIXME: Needs a better variable than TargetTriple
  Names.emplace_back((TargetTriple + "-" + Tool).str());
  Names.emplace_back(Tool);
}

So my final question traces back to if the FreeBSD
system toolchain context has any need for the:

  Names.emplace_back((TargetTriple + "-" + Tool).str())

(The ports are a different matter, not being limited to the
FreeBSD system toolchain's intended range of usage.)

Even the FIXME note might be suggesting that TargetTriple
content was not completely obvious as the best of choices
for forming the special name.

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