[PATCH 0/9] Update clang support for ARM

Tom Rini trini at konsulko.com
Thu Apr 6 15:13:50 CEST 2023


On Thu, Apr 06, 2023 at 08:34:22AM +0200, Heinrich Schuchardt wrote:
> On 4/6/23 01:48, Tom Rini wrote:
> > Hey all,
> > 
> > I decided to take a look again at what's needed to build and boot ARM
> > platforms when building with clang. The good news is that this generally
> > works now. Some size-constrained platforms don't build right now but I
> > was able to test a reasonable part of my lab. This series also depends
> > on:
> > https://patchwork.ozlabs.org/project/uboot/patch/20200604203515.12971-1-trini@konsulko.com/
> > to fix the warning there.
> > 
> > At this point LTO + clang requires a bit more work, and to use llvm-ld.
> > As the platform I was trying was still too large to link even with this,
> > I've set that investigation aside for now.
> > 
> > I've boot tested clang-16 on Pi 3 (32bit, 64bit, arm64) and
> > libretech-cc, and I'll be testing pine64_plus soon along with maybe
> > mx6cuboxi and seeing what the failures are on am65x_evm / j721e_evm
> > (these platforms require a bit more scripting on my part to make build
> > and test clean).
> > 
> 
> I tried to build qemu_arm64_defconfig with origin/WIP/update-clang-for-arm.
> 
> CROSS_COMPILE=aarch64-linux-gnu-  HOSTCC=clang CC="clang  make-target
> aarch64-linux-gnu" -j$(nproc)
> 
> I see a bunch of warnings and a build failure due to

I see a few more warnings, OK, including an EFI one that suggests to me
that you and Ilias will want to find some time to look at this deeper
and address all of the cases of this issue.

I'm looking at the hello_world failure to see if that's something easy
to fix or if perhaps another case of depends on CC_IS_GCC.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230406/0b4658e1/attachment.sig>


More information about the U-Boot mailing list