Date: Sat, 11 Aug 2018 11:31:17 -0600 From: Warner Losh <imp@bsdimp.com> To: Dimitry Andric <dim@freebsd.org> Cc: "freebsd-toolchain@FreeBSD.org" <freebsd-toolchain@freebsd.org>, Ed Maste <emaste@freebsd.org> Subject: Re: Broken arm support in clang now? Message-ID: <CANCZdfpF9ND_k2xvZrsDebsZ07p2RU0Lebp5GDtmxnjdXc=N-A@mail.gmail.com> In-Reply-To: <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> References: <CANCZdfpmDN-nAkViuEx-tKpPhOdRYX=xNu6s8E2o6F4xC2WPnA@mail.gmail.com> <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 > > --sysroot=/usr/home/imp/obj/usr/home/imp/git/head/arm.arm/tmp > > -B/usr/home/imp/obj/usr/home/imp/git/head/arm.arm/tmp/usr/bin -c -O -pipe > > -g -nostdinc -I. -I/usr/home/imp/git/head/sys > > -I/usr/home/imp/git/head/sys/contrib/ck/include > > -I/usr/home/imp/git/head/sys/contrib/libfdt > > -I/usr/home/imp/git/head/sys/gnu/dts/include -D_KERNEL > > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -march=armv5te > > -funwind-tables -ffreestanding -fwrapv -gdwarf-2 -Wall -Wredundant-decls > > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > > -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ > > -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas > > -Wno-error-tautological-compare -Wno-error-empty-body > > -Wno-error-parentheses-equality -Wno-error-unused-function > > -Wno-error-pointer-sign -Wno-error-shift-negative-value > > -Wno-address-of-packed-member -mfpu=none -std=iso9899:1999 -Werror > vers.c > > linking kernel.full > > 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. > > text data bss dec hex filename > > 3448944 176776 655360 4281080 0x4152f8 kernel.full > > > > Any clues on how I can track this down? > > What does /usr/bin/ld -v output? As far as I can see, MK_LLD_BOOTSTRAP > and MK_LLD_IS_LD are only enabled by default for aarch64 and amd64. So > do you have any of those settings in your src.conf or environment? > Host is amd64. Target is arm. No src.conf. Did a full buildworld TARGET=arm a few days ago. /usr/bin/ld is lld. Warner >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpF9ND_k2xvZrsDebsZ07p2RU0Lebp5GDtmxnjdXc=N-A>