Open lumag opened 9 months ago
try building llvm recipe with LLVM_TOOL_LTO_BUILD=OFF
@kraj I will check this later, but please also see the additional context part.
So the fixup should be enabling PREFERRED_PROVIDER / PROVIDES if bblayeres.conf include meta-clang?
try building llvm recipe with
LLVM_TOOL_LTO_BUILD=OFF
It causes more file conflicts with LLVM_TOOL_LTO_BUILD=OFF
:
Error: Transaction test error:
file /usr/lib/libLLVM-17.so conflicts between attempted installs of llvm-libllvm-17.0.6-r0.core2_64 and clang-libllvm-17.0.6-r0.core2_64
file /usr/bin/bugpoint conflicts between attempted installs of llvm-17.0.6-r0.core2_64 and clang-17.0.6-r0.core2_64
file /usr/bin/dsymutil conflicts between attempted installs of llvm-17.0.6-r0.core2_64 and clang-17.0.6-r0.core2_64
...snip...
file /usr/bin/opt conflicts between attempted installs of llvm-17.0.6-r0.core2_64 and clang-17.0.6-r0.core2_64
file /usr/bin/sanstats conflicts between attempted installs of llvm-17.0.6-r0.core2_64 and clang-17.0.6-r0.core2_64
file /usr/bin/verify-uselistorder conflicts between attempted installs of llvm-17.0.6-r0.core2_64 and clang-17.0.6-r0.core2_64
I still think remove liblto17
from llvm is the clean and direct fix just I sent the patch to oe-core.
Describe the bug I have meta-clang layer enabled, but the default toolchain is still pointed to the standard gcc from OE-Core. I tried building both
llvm
andclang
pacakges at the same time. However this fails with the following error:To Reproduce Steps to reproduce the behavior:
bitbake llvm llvm-native clang clang-native
Expected behavior It is possible to build both recipes at the same time
Additional context I stumbled upon the LLVM and Clang recipes conflict when I was trying to build the OpenCL support in mesa. In addition to the mentioned conflict, it also provides the following conflict (because it pulls in both llvm (natively) and clang (via libclc dependency)).
Enabling the PREFERRED_PROVIDER / PROVIDES from README.md seems to fix this issue. Generally I think that these settings should be made a default in meta-clang.