Date: Sat, 11 Aug 2018 20:09:35 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Warner Losh <imp@bsdimp.com> Cc: "freebsd-toolchain@FreeBSD.org" <freebsd-toolchain@freebsd.org>, Ed Maste <emaste@freebsd.org> Subject: Re: Broken arm support in clang now? Message-ID: <A5B46840-B508-4F40-9EFD-50D0439EBAC7@FreeBSD.org> In-Reply-To: <CANCZdfpF9ND_k2xvZrsDebsZ07p2RU0Lebp5GDtmxnjdXc=N-A@mail.gmail.com> References: <CANCZdfpmDN-nAkViuEx-tKpPhOdRYX=xNu6s8E2o6F4xC2WPnA@mail.gmail.com> <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> <CANCZdfpF9ND_k2xvZrsDebsZ07p2RU0Lebp5GDtmxnjdXc=N-A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_1656EDE9-A3AF-40A9-9ED3-F32B410C8EE0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 11 Aug 2018, at 19:31, Warner Losh <imp@bsdimp.com> wrote: >=20 > On Sat, Aug 11, 2018, 10:20 AM Dimitry Andric <dim@freebsd.org> wrote: > On 11 Aug 2018, at 16:55, Warner Losh <imp@bsdimp.com> wrote: > > > > It looks like armv5 clang bogusly uses lld: > > > > =46rom a 'make buildkernel' of the RT1310 kernel config: > > > > cc -target arm-gnueabi-freebsd12.0 ... > > ld: warning: lld uses extended branch encoding, no object with = architecture > > supporting feature detected. > > ld: warning: lld may use movt/movw, no object with architecture = supporting > > feature detected. ... > Host is amd64. Target is arm. No src.conf. Did a full buildworld = TARGET=3Darm a few days ago. /usr/bin/ld is lld. Okay, so in the above "cc" command, can you somehow figure out which cc executable it is using? And please add a -v to the "linking kernel.full" command line, so it shows exactly which linker it runs? I have the idea that it is preferring your /usr/bin/ld over ${WORLDTMP}/usr/bin/ld... -Dimitry --Apple-Mail=_1656EDE9-A3AF-40A9-9ED3-F32B410C8EE0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW28mXwAKCRCwXqMKLiCW ozSSAJ9/27UH43a4KKYBDCCE+u31E5zRoACgvexE20zB0bLdaOWmAUOspP26/DQ= =jT4K -----END PGP SIGNATURE----- --Apple-Mail=_1656EDE9-A3AF-40A9-9ED3-F32B410C8EE0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A5B46840-B508-4F40-9EFD-50D0439EBAC7>