Message ID | 20250518-clang-toolchain-v1-19-5be46f8c4af5@gmail.com |
---|---|
State | New |
Headers | show |
Series | clang: Add clang C/C++ toolchain | expand |
diff --git a/meta/recipes-core/systemd/systemd-boot_257.5.bb b/meta/recipes-core/systemd/systemd-boot_257.5.bb index 6a50ac05aa9915982dca4649f7bda610cfbfa14b..151e4a953735b524ed14a5ef5459dd037efdcdaf 100644 --- a/meta/recipes-core/systemd/systemd-boot_257.5.bb +++ b/meta/recipes-core/systemd/systemd-boot_257.5.bb @@ -47,6 +47,11 @@ FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}" RDEPENDS:${PN} += "virtual-systemd-bootconf" +# efi portions use -mgeneral-regs-only option which conflicts with SSE +# especially clang throws errors about it +# error: the 'sse' unit is not supported with this instruction set +TUNE_CCARGS:remove = "-mfpmath=sse" + CFLAGS:append:libc-musl = " -D__DEFINED_wchar_t" COMPATIBLE_HOST = "(aarch64.*|arm.*|x86_64.*|i.86.*|riscv.*)-linux"
EFI sources in systemd uses -mgeneral-regs-only which conflicts with -mfpmath=sse specified by OE via tune arguments. It needs to be removed, clang errors about it and fails the build Fixes error: the 'sse' unit is not supported with this instruction set Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta/recipes-core/systemd/systemd-boot_257.5.bb | 5 +++++ 1 file changed, 5 insertions(+)