Date: Sat, 11 Aug 2018 18:05:51 -0600 From: Warner Losh <imp@bsdimp.com> To: Mark Millard <mark.millard@nexustechnology.com> Cc: Dimitry Andric <dim@freebsd.org>, "freebsd-toolchain@FreeBSD.org" <freebsd-toolchain@freebsd.org> Subject: Re: Broken arm support in clang now? Message-ID: <CANCZdfq4NmT6_W9MwSMC8r4fQfxW8fWyh1pOX5snnVLNEvew9A@mail.gmail.com> In-Reply-To: <8B467E75-A6D3-41A5-8EA1-4DDFE0E14CC5@nexustechnology.com> References: <CANCZdfpmDN-nAkViuEx-tKpPhOdRYX=xNu6s8E2o6F4xC2WPnA@mail.gmail.com> <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> <CANCZdfpF9ND_k2xvZrsDebsZ07p2RU0Lebp5GDtmxnjdXc=N-A@mail.gmail.com> <A5B46840-B508-4F40-9EFD-50D0439EBAC7@FreeBSD.org> <8B467E75-A6D3-41A5-8EA1-4DDFE0E14CC5@nexustechnology.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 11, 2018 at 1:01 PM, Mark Millard < mark.millard@nexustechnology.com> wrote: > On 2018-Aug-11, at 11:09 AM, Dimitry Andric <dim at FreeBSD.org> wrote: > > > > On 11 Aug 2018, at 19:31, Warner Losh <imp at bsdimp.com> wrote: > >> > >> 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: > >>> > >>> From 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. > > ... > > Did the build get either of the below notices? Both? > > make[1]: "/usr/src/Makefile.inc1" line 341: SYSTEM_COMPILER: Determined > that CC=cc matches the source tree. Not bootstrapping a cross-compiler. > This one I have. > make[1]: "/usr/src/Makefile.inc1" line 346: SYSTEM_LINKER: Determined that > LD=ld matches the source tree. Not bootstrapping a cross-linker. > This one I don't. Warner > ? > > (The example text was taken from an amd64 -> aarch64 cross build.) > > >> Host is amd64. Target is arm. No src.conf. Did a full buildworld > TARGET=arm 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... > > > > === > > Mark Millard > Nexus Technology, Inc. > 78 Northeastern Blvd., Unit #2 > Nashua NH 03062 > > 877-595-8116 x821 > > mark.millard@nexustechnology.com > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq4NmT6_W9MwSMC8r4fQfxW8fWyh1pOX5snnVLNEvew9A>