[Bug 241003] make buildworld ignores make.conf LD parameter
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Dec 3 16:18:35 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241003
Warner Losh <imp at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |imp at FreeBSD.org
--- Comment #7 from Warner Losh <imp at FreeBSD.org> ---
I think there's some confusion here.
LD=x is used only by our build system when it needs to directly invoke the
linker. This is actually fairly rare in the sources as normally the compiler
invokes a linker on our behalf. It's a fairly specialized setting and a bit
weird to try to set, which suggests to me that this issue may be an attempt to
fix another issue that didn't work.
However, I think the problem isn't what LD=xxx does or doesn't do. I think the
real problem is with external toolchain support. The compiler invoked in
clang++80, but /usr/local/bin/clang++80, which is being used inside of
buildworld, but it's not finding ld for some reason. Most likely because it's
not in the path of the build environment. clang doesn't get it's notion of what
ld to use from there, and it isn't finding it for some reason.
So, we need to get to the bottom of that reason. And we can't do that with the
tiny snippet of the logs posted to this bug.
So a bigger picture question: Why are you using /usr/local/bin/clang++80 to
buildworld? Let's start there. Maybe there's a CXX= or CC= that in make.conf,
and that's causing issues.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list