From owner-freebsd-toolchain@freebsd.org Sat Aug 11 16:20:13 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE5021071E52 for ; Sat, 11 Aug 2018 16:20:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5A51A8597B; Sat, 11 Aug 2018 16:20:13 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D4CD4398EA; Sat, 11 Aug 2018 18:20:05 +0200 (CEST) From: Dimitry Andric Message-Id: <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_C50BDB04-8FDC-4C23-92E2-C07BA0780DEC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Broken arm support in clang now? Date: Sat, 11 Aug 2018 18:20:01 +0200 In-Reply-To: Cc: "freebsd-toolchain@FreeBSD.org" , Ed Maste To: Warner Losh References: X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2018 16:20:13 -0000 --Apple-Mail=_C50BDB04-8FDC-4C23-92E2-C07BA0780DEC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 11 Aug 2018, at 16:55, Warner Losh wrote: >=20 > It looks like armv5 clang bogusly uses lld: >=20 > =46rom a 'make buildkernel' of the RT1310 kernel config: >=20 > cc -target arm-gnueabi-freebsd12.0 > --sysroot=3D/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=3Darmv5te > -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__=3D__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=3Dnone -std=3Diso9899: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 >=20 > 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? -Dimitry --Apple-Mail=_C50BDB04-8FDC-4C23-92E2-C07BA0780DEC 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW28MsQAKCRCwXqMKLiCW o/iyAJ0TwEFfF/bzMn2LjIsUA9TKRssQDwCfXRhGkLZWFTDUUEJjBg40R+yYhkY= =GJfM -----END PGP SIGNATURE----- --Apple-Mail=_C50BDB04-8FDC-4C23-92E2-C07BA0780DEC--