I'm sorry. I have reproduced error in the GCC toolchain. I will upload Patch v2.
On Thu, Jan 15, 2026 at 12:58 AM, Antonin Godard wrote: > > Hi, > > On Tue Jan 13, 2026 at 11:54 PM CET, mark.yang via lists.openembedded.org > wrote: > >> From: "mark.yang" <[email protected]> >> >> Currently, LLVMgold.so is not built because the binutils headers >> are missing during the build process. >> >> This allows LLVM to find the necessary headers and build the LLVMgold.so, >> which is required for Link Time Optimization (LTO) support properly. >> >> Signed-off-by: mark.yang <[email protected]> >> --- >> meta/recipes-devtools/clang/llvm_git.bb | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/meta/recipes-devtools/clang/llvm_git.bb >> b/meta/recipes-devtools/clang/llvm_git.bb >> index 96ea383731..bed9988c1a 100644 >> --- a/meta/recipes-devtools/clang/llvm_git.bb >> +++ b/meta/recipes-devtools/clang/llvm_git.bb >> @@ -11,7 +11,7 @@ require common-source.inc >> >> LIC_FILES_CHKSUM = >> "file://LICENSE.TXT;md5=8a15a0759ef07f2682d2ba4b893c9afe" >> >> -DEPENDS = "llvm-tblgen-native libffi libxml2 zlib zstd" >> +DEPENDS = "llvm-tblgen-native libffi libxml2 zlib zstd binutils" >> >> inherit cmake pkgconfig lib_package multilib_header >> >> @@ -50,6 +50,7 @@ EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=MinSizeRel \ >> -DLLVM_TOOL_YAML2OBJ_BUILD=OFF \ >> -DLLVM_NATIVE_TOOL_DIR=${STAGING_BINDIR_NATIVE} \ >> -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm-tblgen \ >> + -DLLVM_BINUTILS_INCDIR=${STAGING_INCDIR} \ >> -DCROSS_TOOLCHAIN_FLAGS_NATIVE='-DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain-native.cmake' >> \ >> " > > I think this triggered the following error on our test infrastructure: > > NOTE: Running task 9262 of 9824 > (virtual:native:/srv/pokybuild/yocto-worker/qemux86-64-ltp/build/layers/openembedded-core/meta/recipes-devtools/clang/libclc_git.bb:do_create_spdx) > > ERROR: llvm-21.1.8-r1 do_package: QA Issue: llvm: Files/directories were > installed but not shipped in any package: > /usr/lib/LLVMgold.so > > Can you have a look? > > https://autobuilder.yoctoproject.org/valkyrie/#/builders/63/builds/2846 > https://autobuilder.yoctoproject.org/valkyrie/api/v2/logs/4942824/raw_inline > > > Antonin > > -- > Antonin Godard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#229386): https://lists.openembedded.org/g/openembedded-core/message/229386 Mute This Topic: https://lists.openembedded.org/mt/117252728/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
