Hi Team,
I am encountering a build issue in our Yocto/Meta-Clang setup while building for verdin-imx95 with tdx-xwayland 7.3.0.
Environment details:
BB_VERSION = 2.8.0
BUILD_SYS = x86_64-linux
NATIVELSBSTRING = universal
TARGET_SYS = aarch64-tdx-linux
MACHINE = verdin-imx95
DISTRO = tdx-xwayland
DISTRO_VERSION = 7.3.0+build.0
TUNE_FEATURES = aarch64 crypto cortexa55
Issue:
During the build, the following error occurs while preparing the recipe sysroot for mesa-26.0.1:
ERROR: mesa-26.0.1-r0 do_prepare_recipe_sysroot:
The file /usr/include/llvm-c/lto.h is installed by both llvm-native and clang-native, aborting
The logs indicate a header conflict between llvm-native provided by OE-Core and clang-native provided by meta-clang. Both provide the same version (18.1.6) of LLVM. I have tried removing conflicting headers in a clang-native.bbappend, but the problem persists.
Impact:
-
The build fails at
do_prepare_recipe_sysrootformesaand potentially other recipes depending onllvm-native. -
Removing OE-Core’s
llvm-nativeis risky since other recipes rely on it.
Request:
Could you advise on the recommended approach to resolve this conflict? Specifically:
-
Should we patch
clang-nativeto avoid installingllvm-cheaders in the native sysroot? -
Or is there a supported way to reconcile
llvm-nativebetween OE-Core and meta-clang for version 18.1.6?
I have attached the relevant log snippet for reference.
Thanks,
Hariharan