[Bug 240717] Building kernel fails when using linker from llvm ports
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Sep 23 19:59:08 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240717
Dimitry Andric <dim at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dim at FreeBSD.org
--- Comment #1 from Dimitry Andric <dim at FreeBSD.org> ---
It looks like you are attempting to defeat the linker detection mechanism in
/usr/share/mk/bsd.linker.mk, and succeeding. :)
If you say "building a kernel using llvm70 and llvm80", can you describe
exactly how you are doing this? As far as I know, it is not possible to build
anything with two different compilers at the same time.
Note that symlinking /usr/bin/ld to something random might or might not work,
your mileage may vary (a lot).
I think that in your case, overriding LINKER_TYPE might be the best approach.
E.g. if you symlink /usr/bin/ld to a ports version of lld, it is safest to put
LINKER_TYPE=lld in your environment or make.conf.
All that said, it would be much easier if you just used any of the
devel/xtoolchain-llvm[6-9]0 ports.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list