From: Quentin Schulz <quentin.schulz@cherry.de>
To: ross.burton@arm.com, openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] u-boot: always use GCC to build
Date: Thu, 6 Aug 2026 10:20:40 +0200 [thread overview]
Message-ID: <37264213-bd7e-4e4d-b584-3468cd946865@cherry.de> (raw)
In-Reply-To: <20260804114134.4028175-1-ross.burton@arm.com>
Hi Ross,
On 8/4/26 1:41 PM, Ross Burton via lists.openembedded.org wrote:
> Previously, u-boot was almost always built with GCC because the
> kernel-arch inherit set TOOLCHAIN to KERNEL_TOOLCHAIN, which defaulted
> to 'gcc'.
>
> However, since kernel-arch inherit was removed, u-boot in theory now
> respects the default toolchain. In practise, the recipe hard-codes CC
> to be gcc, and there are known caveats building u-boot with clang[2].
>
> In the long term we should be able to make this recipe respect TOOLCHAIN,
> as the upstream u-boot CI does build and test with clang, but for now
> fix the build by restoring the explicit use of gcc.
>
You don't say what is the issue we encounter when building this recipe
with clang so this can be summed up to "fix issue" which isn't
particularly helpful :) Could you consider providing a bit more info
about build breakage in the commit log? I've built semi-recently (a few
months ago) Rockchip (ARM and ARM64) devices with clang and couldn't
build any of the ARM (thus 32b) SoCs at that time. I am traveling right
now so cannot give you a link to the U-Boot ML archive but look for
"Couple of clang warnings for Rockchip boards" from April 22nd, 2026.
Cheers,
Quentin
next prev parent reply other threads:[~2026-08-06 12:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 11:41 [PATCH] u-boot: always use GCC to build Ross Burton
2026-08-05 1:08 ` [OE-core] " Khem Raj
2026-08-05 9:44 ` Ross Burton
2026-08-06 8:20 ` Quentin Schulz [this message]
2026-08-06 13:07 ` Ross Burton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=37264213-bd7e-4e4d-b584-3468cd946865@cherry.de \
--to=quentin.schulz@cherry.de \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox