* [PATCH v3] llvm: enable LLVMgold.so build by adding binutils dependency
@ 2026-02-23 6:49 mark.yang
2026-02-23 6:51 ` mark.yang
2026-02-23 8:14 ` [OE-core] " Antonin Godard
0 siblings, 2 replies; 5+ messages in thread
From: mark.yang @ 2026-02-23 6:49 UTC (permalink / raw)
To: openembedded-core; +Cc: mark.yang, Antonin Godard
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>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
v3: Ping
meta/recipes-devtools/clang/llvm_git.bb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/clang/llvm_git.bb b/meta/recipes-devtools/clang/llvm_git.bb
index 96ea383731..108e884a6f 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' \
"
@@ -126,6 +127,10 @@ llvm_sysroot_preprocess() {
install -m 0755 ${S}/llvm/tools/llvm-config/llvm-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/
}
+PACKAGES =+ "llvm-linker-tools"
+
+FILES:llvm-linker-tools = "${libdir}/LLVMgold* ${libdir}/libLTO.so.*"
+
FILES:${PN}-dev += "${libdir}/llvm-config"
BBCLASSEXTEND = "native nativesdk"
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3] llvm: enable LLVMgold.so build by adding binutils dependency
2026-02-23 6:49 [PATCH v3] llvm: enable LLVMgold.so build by adding binutils dependency mark.yang
@ 2026-02-23 6:51 ` mark.yang
2026-02-23 7:18 ` mark.yang
2026-02-23 8:14 ` [OE-core] " Antonin Godard
1 sibling, 1 reply; 5+ messages in thread
From: mark.yang @ 2026-02-23 6:51 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
This patch is a Ping.
Details regarding this patch can be found in v1 and v2.
v1: https://lists.openembedded.org/g/openembedded-core/topic/patch_llvm_enable/117252728
v2: https://lists.openembedded.org/g/openembedded-core/topic/patch_v2_llvm_enable/117274480
It was included in master-next but has since been omitted.
Therefore, I am sending a gentle ping.
[-- Attachment #2: Type: text/html, Size: 722 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] llvm: enable LLVMgold.so build by adding binutils dependency
2026-02-23 6:51 ` mark.yang
@ 2026-02-23 7:18 ` mark.yang
0 siblings, 0 replies; 5+ messages in thread
From: mark.yang @ 2026-02-23 7:18 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 55 bytes --]
Oh, I apologize.
The patch exists in master-backlog.
[-- Attachment #2: Type: text/html, Size: 77 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH v3] llvm: enable LLVMgold.so build by adding binutils dependency
2026-02-23 6:49 [PATCH v3] llvm: enable LLVMgold.so build by adding binutils dependency mark.yang
2026-02-23 6:51 ` mark.yang
@ 2026-02-23 8:14 ` Antonin Godard
2026-02-23 22:10 ` mark.yang
1 sibling, 1 reply; 5+ messages in thread
From: Antonin Godard @ 2026-02-23 8:14 UTC (permalink / raw)
To: mark.yang, openembedded-core
Hi,
On Mon Feb 23, 2026 at 7:49 AM 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>
> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
I don't think my Signed-off-by here is appropriate as I did not sign-off this
version of the patch in particular. I may have picked a previous version of this
patch and applied it to my branch. But when re-sending a patch please the
Signed-off-by list to your identity only.
Thanks!
Antonin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v3] llvm: enable LLVMgold.so build by adding binutils dependency
2026-02-23 8:14 ` [OE-core] " Antonin Godard
@ 2026-02-23 22:10 ` mark.yang
0 siblings, 0 replies; 5+ messages in thread
From: mark.yang @ 2026-02-23 22:10 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 67 bytes --]
Dear Antonin,
Thank you. I will keep that in mind from now on!
[-- Attachment #2: Type: text/html, Size: 104 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-02-23 22:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-23 6:49 [PATCH v3] llvm: enable LLVMgold.so build by adding binutils dependency mark.yang
2026-02-23 6:51 ` mark.yang
2026-02-23 7:18 ` mark.yang
2026-02-23 8:14 ` [OE-core] " Antonin Godard
2026-02-23 22:10 ` mark.yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox