public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "mark.yang" <mark.yang@lge.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] llvm: enable LLVMgold.so build by adding binutils dependency
Date: Wed, 14 Jan 2026 20:22:50 -0800	[thread overview]
Message-ID: <659490.1768450970085586138@lists.openembedded.org> (raw)
In-Reply-To: <DFOFPON5W0JH.3442V3YUTEX2L@bootlin.com>

[-- Attachment #1: Type: text/plain, Size: 2417 bytes --]

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" <mark.yang@lge.com>
>> 
>> 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 <mark.yang@lge.com>
>> ---
>> 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

[-- Attachment #2: Type: text/html, Size: 2842 bytes --]

      reply	other threads:[~2026-01-15  4:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-13 22:54 [PATCH] llvm: enable LLVMgold.so build by adding binutils dependency mark.yang
2026-01-13 23:17 ` mark.yang
2026-01-14  0:21 ` [OE-core] " Khem Raj
2026-01-14 15:58 ` Antonin Godard
2026-01-15  4:22   ` mark.yang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=659490.1768450970085586138@lists.openembedded.org \
    --to=mark.yang@lge.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox