Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Sep 2019 19:59:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 240717] Building kernel fails when using linker from llvm ports
Message-ID:  <bug-240717-29464-MH9IGW3Ztu@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-240717-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-240717-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240717

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim@FreeBSD.org

--- Comment #1 from Dimitry Andric <dim@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 bu=
ild
anything with two different compilers at the same time.

Note that symlinking /usr/bin/ld to something random might or might not wor=
k,
your mileage may vary (a lot).

I think that in your case, overriding LINKER_TYPE might be the best approac=
h.=20
E.g. if you symlink /usr/bin/ld to a ports version of lld, it is safest to =
put
LINKER_TYPE=3Dlld 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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240717-29464-MH9IGW3Ztu>