| Message ID | 20250520-clang-toolchain-v2-27-db97c2eb3756@gmail.com |
|---|---|
| State | New |
| Headers | show |
| Series | clang: Add clang C/C++ toolchain | expand |
On 21 May 2025, at 07:20, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote: > > clang does not support -mgeneral-regs-only option for arm > +# arm-poky-linux-musleabi-clang: error: unsupported option '-mgeneral-regs-only' for target 'arm-poky-linux-musleabi' > +TOOLCHAIN:libc-musl:arm = "gcc" Why is this specific to musl, does the choice of libc really control whether this option exists in clang? Ross
On Thu, May 22, 2025 at 3:13 AM Ross Burton <Ross.Burton@arm.com> wrote: > > On 21 May 2025, at 07:20, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote: > > > > clang does not support -mgeneral-regs-only option for arm > > > +# arm-poky-linux-musleabi-clang: error: unsupported option '-mgeneral-regs-only' for target 'arm-poky-linux-musleabi' > > +TOOLCHAIN:libc-musl:arm = "gcc" > > Why is this specific to musl, does the choice of libc really control whether this option exists in clang? > good question. I will rebuild once more for arm/glibc combo, The option does not exist for arm in clang so glibc version should fail as well. I wanted to keep the scope of these settings as narrow as possible thats why make is libc-musl:arm > Ross >
On 5/22/25 3:12 AM, Ross Burton wrote: > On 21 May 2025, at 07:20, Khem Raj via lists.openembedded.org <raj.khem=gmail.com@lists.openembedded.org> wrote: >> >> clang does not support -mgeneral-regs-only option for arm > >> +# arm-poky-linux-musleabi-clang: error: unsupported option '-mgeneral-regs-only' for target 'arm-poky-linux-musleabi' >> +TOOLCHAIN:libc-musl:arm = "gcc" > > Why is this specific to musl, does the choice of libc really control whether this option exists in clang? > This is not musl specific, build with arm/glibc failed with exact same error. I have removed the libc override for v3. Thanks for feedback > Ross >
diff --git a/meta/recipes-core/systemd/systemd-boot_257.5.bb b/meta/recipes-core/systemd/systemd-boot_257.5.bb index 151e4a953735b524ed14a5ef5459dd037efdcdaf..f293a2f229374a48e17c574faf23620549ae35ac 100644 --- a/meta/recipes-core/systemd/systemd-boot_257.5.bb +++ b/meta/recipes-core/systemd/systemd-boot_257.5.bb @@ -54,6 +54,9 @@ TUNE_CCARGS:remove = "-mfpmath=sse" CFLAGS:append:libc-musl = " -D__DEFINED_wchar_t" +# arm-poky-linux-musleabi-clang: error: unsupported option '-mgeneral-regs-only' for target 'arm-poky-linux-musleabi' +TOOLCHAIN:libc-musl:arm = "gcc" + COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*|riscv.*)-linux" COMPATIBLE_HOST:x86-x32 = "null"
clang does not support -mgeneral-regs-only option for arm Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta/recipes-core/systemd/systemd-boot_257.5.bb | 3 +++ 1 file changed, 3 insertions(+)