Date: Wed, 27 Jun 2018 14:37:52 -0700 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Dimitry Andric <dim@freebsd.org> Cc: Mark Millard <marklmi@yahoo.com>, "current@freebsd.org" <current@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: Re: Build updates [ ci.freebsd.org FreeBSD-head-{aarch64, armv7, armv6}-build failures as of, for example -r335711 and -r335713 ] Message-ID: <c0c91acf-fcd1-c9c6-eb3c-f678bcc3d0a1@FreeBSD.org> In-Reply-To: <2a7b1ecb-b647-d09b-4bd7-5c2df62b0846@FreeBSD.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --EDBzPO8NpXYdNleVxzVf2DakFa9XFrM4l Content-Type: multipart/mixed; boundary="SDb6VyYRUtHFw3PUu6H4O1RdKgtsmzsQd"; protected-headers="v1" From: Bryan Drewery <bdrewery@FreeBSD.org> To: Dimitry Andric <dim@freebsd.org> Cc: Mark Millard <marklmi@yahoo.com>, "current@freebsd.org" <current@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Message-ID: <c0c91acf-fcd1-c9c6-eb3c-f678bcc3d0a1@FreeBSD.org> 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 <bdrewery at FreeBSD.org>= 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c0c91acf-fcd1-c9c6-eb3c-f678bcc3d0a1>