From owner-freebsd-current@freebsd.org Wed Jun 27 21:38:00 2018 Return-Path: Delivered-To: freebsd-current@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 9FA5D1012FC0 for ; Wed, 27 Jun 2018 21:38:00 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1844D74C99 for ; Wed, 27 Jun 2018 21:38:00 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id C5D601012FB9; Wed, 27 Jun 2018 21:37:59 +0000 (UTC) Delivered-To: current@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 A36CA1012FB2; Wed, 27 Jun 2018 21:37:59 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3F56274C8E; Wed, 27 Jun 2018 21:37:59 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (unknown [127.0.1.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 108193F56; Wed, 27 Jun 2018 21:37:59 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id DB41B9BE5; Wed, 27 Jun 2018 21:37:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id mO187FixkeBS; Wed, 27 Jun 2018 21:37:54 +0000 (UTC) Subject: Re: Build updates [ ci.freebsd.org FreeBSD-head-{aarch64, armv7, armv6}-build failures as of, for example -r335711 and -r335713 ] DKIM-Filter: OpenDKIM Filter v2.10.3 mail.xzibition.com 83AC29BE0 From: Bryan Drewery To: Dimitry Andric Cc: Mark Millard , "current@freebsd.org" , FreeBSD Toolchain References: <168e5fec-2d38-78e1-6aa4-c51e860ffd55@FreeBSD.org> <7116FF4C-DFA0-41CC-9906-F8B0B5A951EF@yahoo.com> <555a1ac0-a7e8-3ca1-019e-41cf829cbff0@FreeBSD.org> <2a7b1ecb-b647-d09b-4bd7-5c2df62b0846@FreeBSD.org> Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Autocrypt: addr=bdrewery@FreeBSD.org; prefer-encrypt=mutual; keydata= xsBNBFJphmsBCADiFgmS4bIzwZijrS31SjEMzg+n5zNellgM+HkShwehpqCiyhXdWrvH6dTZ a6u50pbUIX7doTR7W7PQHCjCTqtpwvcj0eulZva+iHFp+XrbgSFHn+VVXgkYP2MFySyZRFab D2qqzJBEJofhpv4HvY6uQI5K99pMqKr1Z/lHqsijYYu4RH2OfwB5PinId7xeldzWEonVoCr+ rfxzO/UrgA6v/3layGZcKNHFjmc3NqoN1DXtdaEHqtjIozzbndVkH6lkFvIpIrI6i5ox8pwp VxsxLCr/4Musd5CWgHiet5kSw2SzNeA8FbxdLYCpXNVu+uBACEbCUP+CSNy3NVfEUxsBABEB AAHNJEJyeWFuIERyZXdlcnkgPGJkcmV3ZXJ5QEZyZWVCU0Qub3JnPsLAgAQTAQoAKgIbAwUL CQgHAwUVCgkICwUWAwIBAAIeAQIXgAIZAQUCWujOIgU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QL4OnXMNE/ZTX0lnOj1/pH93TlzSHZMP TaiiA/MBD3vGsXBmBg== Organization: FreeBSD Message-ID: Date: Wed, 27 Jun 2018 14:37:52 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <2a7b1ecb-b647-d09b-4bd7-5c2df62b0846@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EDBzPO8NpXYdNleVxzVf2DakFa9XFrM4l" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2018 21:38:01 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --EDBzPO8NpXYdNleVxzVf2DakFa9XFrM4l Content-Type: multipart/mixed; boundary="SDb6VyYRUtHFw3PUu6H4O1RdKgtsmzsQd"; protected-headers="v1" From: Bryan Drewery To: Dimitry Andric Cc: Mark Millard , "current@freebsd.org" , FreeBSD Toolchain Message-ID: Subject: Re: Build updates [ ci.freebsd.org FreeBSD-head-{aarch64,armv7,armv6}-build failures as of, for example -r335711 and -r335713 ] References: <168e5fec-2d38-78e1-6aa4-c51e860ffd55@FreeBSD.org> <7116FF4C-DFA0-41CC-9906-F8B0B5A951EF@yahoo.com> <555a1ac0-a7e8-3ca1-019e-41cf829cbff0@FreeBSD.org> <2a7b1ecb-b647-d09b-4bd7-5c2df62b0846@FreeBSD.org> In-Reply-To: <2a7b1ecb-b647-d09b-4bd7-5c2df62b0846@FreeBSD.org> --SDb6VyYRUtHFw3PUu6H4O1RdKgtsmzsQd Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 6/27/2018 11:58 AM, Bryan Drewery wrote: > On 6/27/2018 11:44 AM, Bryan Drewery wrote: >> On 6/27/2018 10:53 AM, Mark Millard wrote: >>> >>>> On 2018-Jun-27, at 10:01 AM, Bryan Drewery = wrote: >>>> >>>> As of r335704: >>>> >>>> - make tinderbox/universe will now build the bootstrap clang *once*.= >>>> Each target clang is still build of course. This support does not w= ork >>>> with gcc. >>>> - make buildworld (kernel-toolchain and toolchain) will build the >>>> bootstrap clang (if needed per SYSTEM_COMPILER logic) with only the >>>> TARGET.TARGET_ARCH backend support. The installed clang has all stil= l so >>>> SYSTEM_COMPILER logic works for cross-compling. >>>> >>>> This uses the feature dim@ added in r335558 to selectively disable L= LVM >>>> targets. I've added a new option named WITH[OUT]_LLVM_TARGET_ALL whi= ch I >>>> suggest using rather than the per-arch options. It is default on (WI= TH). >>>> Set WITHOUT to only build the needed native arch on your system for = both >>>> bootstrap and compiled clang. Setting WITHOUT disables SYSTEM_COMPIL= ER >>>> support for cross-builds. >>>> >>>> Please CC me directly for any weird tinderbox/universe or clang fail= ures >>>> for the next few weeks. >> >> Thanks! >> >>> >>> https://ci.freebsd.org/job/FreeBSD-head-aarch64-build/8324/consoleTex= t >>> >>> --- all_subdir_cloudabi32 --- >>> clang (LLVM option parsing): Unknown command line argument '-arm-add-= build-attributes'. Try: 'clang (LLVM option parsing) -help' >>> clang (LLVM option parsing): Did you mean '-force-attribute'? >>> *** [cloudabi32_vdso.o] Error code 1 >>> >> >> This was an aarch64 build. It looks like -arm-add-build-attributes is >> from Target/ARM/AsmParser/ARMAsmParser.cpp which is only built for >> LLVM_TARGET_ARM but not LLVM_TARGET_AARCH64. >> >> Looking in contrib/llvm/tools/clang/lib/Driver/ToolChains/Clang.cpp I >> see the option is only added for: >> >> case llvm::Triple::arm: >> case llvm::Triple::armeb: >> case llvm::Triple::thumb: >> case llvm::Triple::thumbeb: >> >> But not llvm::Triple::aarch64. So where is it coming from? >> >=20 > cc -target aarch64-unknown-freebsd12.0 > --sysroot=3D/usr/obj/usr/src/arm64.aarch64/tmp > -B/usr/obj/usr/src/arm64.aarch64/tmp/usr/bin -x assembler-with-cpp -m32= > -shared -nostdinc -nostdlib > -Wl,-T/usr/src/sys/compat/cloudabi/cloudabi_vdso.lds > /usr/src/sys/contrib/cloudabi/cloudabi_vdso_armv6_on_64bit.S -o > cloudabi32_vdso.o >=20 > It must be the -m32 here making it build with llvm::Triple::arm. > So we may need to include more of LLVM_TARGET_ARM in LLVM_TARGET_AARCH6= 4. > I'm testing locally to see how much is needed. >=20 r335747 should fix aarch64 but it's not necessarily the best fix. It may be possible to reduce how much of MK_LLVM_TARGET_ARM is needed for -m32 support for arm64. I didn't look into that too much. --=20 Regards, Bryan Drewery --SDb6VyYRUtHFw3PUu6H4O1RdKgtsmzsQd-- --EDBzPO8NpXYdNleVxzVf2DakFa9XFrM4l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJbNAOwAAoJEDXXcbtuRpfPUQAH/RF2rqWR4d/8NZcgj0gYdmva wJnl+3HK6Ty+EiJEpd8x/YlQTSCLGpoZC2AvyOzRWyYPoj9GvlZaxPRcWYXYknbP OEXRoMyg5wMtzvrTFL4KGpGwImMzsoFOB93aaUvXnd0G/i3Uad7X/yxhB+9/pSCP BVGc+/8afd9UfYzCaZipM++KGNb9PTk2jbhLw3ytBnmOA0os2BEpi22SqW4oaJhY PtohyRhK++WMknoeeSZil4o7v0ELaswS7NZhLoJZDFuEahZ5aZd+226KFbnxg+xh hBCecXNC5sG7wQ6ppdyi3jnHbnVYOWnC6Sd3FOJEgLdG1ae93R19MiGsRWMVpl4= =z1NL -----END PGP SIGNATURE----- --EDBzPO8NpXYdNleVxzVf2DakFa9XFrM4l--