Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Dora, Sunil Kumar" <SunilKumar.Dora@windriver.com>
To: "raj.khem@gmail.com" <raj.khem@gmail.com>
Cc: "openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>,
	"MacLeod, Randy" <Randy.MacLeod@windriver.com>,
	"Kokkonda, Sundeep" <Sundeep.Kokkonda@windriver.com>,
	"deepesh.vatharaj@windriver.com" <deepesh.vatharaj@windriver.com>
Subject: Re: [OE-core] [PATCH 03/11] openmp: Build via the LLVM runtimes entry point
Date: Tue, 1 Sep 2026 04:33:17 +0000	[thread overview]
Message-ID: <09fa9968-aedb-427e-925a-1cb07d8cfe03@windriver.com> (raw)
In-Reply-To: <CAMKF1srRX9QgGZQL9tTpr6HuOXTOPvM8X+CB08qC_WU0Bptp=A@mail.gmail.com>

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

On 8/31/2026 1:15 AM, Khem Raj via lists.openembedded.org wrote:
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.


On Sun, Aug 30, 2026 at 5:59 AM <sunilkumar.dora@windriver.com<mailto:sunilkumar.dora@windriver.com>> wrote:
From: Sunil Dora <sunilkumar.dora@windriver.com<mailto:sunilkumar.dora@windriver.com>>

LLVM 23 removed the standalone build mode for openmp, so do_configure
fails with

  The legacy standalone build mode has been removed

Configure it through the runtimes build with LLVM_ENABLE_RUNTIMES=openmp,
the same way libcxx is built.

The runtimes build reads LLVM_LIBDIR_SUFFIX; nothing in LLVM 23 reads
OPENMP_LIBDIR_SUFFIX any more, so pass the standard variable like the
other clang-family recipes do. Without it openmp installs into lib/
while a multilib configuration packages lib64/, and do_package fails
with "installed but not shipped" for libomp.so, libarcher.so,
libompd.so and the cmake files.

Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com<mailto:sunilkumar.dora@windriver.com>>
---
 meta/recipes-devtools/clang/openmp_git.bb<http://openmp_git.bb> | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/clang/openmp_git.bb<http://openmp_git.bb> b/meta/recipes-devtools/clang/openmp_git.bb<http://openmp_git.bb>
index 2ba83d48c6..90d4911623 100644
--- a/meta/recipes-devtools/clang/openmp_git.bb<http://openmp_git.bb>
+++ b/meta/recipes-devtools/clang/openmp_git.bb<http://openmp_git.bb>
@@ -18,10 +18,11 @@ inherit cmake pkgconfig python3targetconfig
 DEPENDS += "elfutils libffi clang"

 EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-                  -DOPENMP_LIBDIR_SUFFIX=${@d.getVar('baselib').replace('lib', '')} \
+                  -DLLVM_ENABLE_RUNTIMES=openmp \
+                  -DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX} \



The recipe keeps PACKAGECONFIG ?= "ompt-tools offloading-plugin" — under the runtimes entry point, does offloading-plugin still do anything, or would it now need offload added to LLVM_ENABLE_RUNTIMES?
It doesn't do anything for the build, and it didn't with the old entry point either. It passes no cmake flags and the build depends
are already in DEPENDS. So the only thing it really adds is the libelf/libffi RDEPENDS. Our libomp.so links only libc.
The plugins that needed libffi/libelf moved out of openmp/ into offload/ back in LLVM 19, so nothing here builds them.
The openmp-libomptarget package is empty, no ipk gets written.

I only checked oe-core, other layers may still use this option, you know that history better than me.

OPENMP_ENABLE_LIBOMPTARGET still works though. It adds some hooks in libomp that look up libomptarget functions with dlsym at runtime.
Default is ON on 64-bit, the recipe doesn't touch it, and it is the same with both entry points.

To actually build the plugins we would need LLVM_ENABLE_RUNTIMES="openmp;offload".
That is a new library and new packaging, so I did not want to mix it into the upgrade.

As a follow-up I can keep the PACKAGECONFIG as is, drop it with the empty package, or add offload as a new option.
Which one do you prefer?

Thanks,
Sunil Dora


               "

-OECMAKE_SOURCEPATH = "${S}/openmp"
+OECMAKE_SOURCEPATH = "${S}/runtimes"

 PACKAGECONFIG ?= "ompt-tools offloading-plugin"

--
2.43.0





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#244694): https://lists.openembedded.org/g/openembedded-core/message/244694
Mute This Topic: https://lists.openembedded.org/mt/120998125/8968818
Group Owner: openembedded-core+owner@lists.openembedded.org<mailto:openembedded-core+owner@lists.openembedded.org>
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [SunilKumar.Dora@windriver.com<mailto:SunilKumar.Dora@windriver.com>]
-=-=-=-=-=-=-=-=-=-=-=-




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

  reply	other threads:[~2026-09-01  4:33 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-30 12:58 [PATCH 00/11] clang/llvm: Upgrade to 23.1.0 sunilkumar.dora
2026-08-30 12:58 ` [PATCH 01/11] clang/llvm: Upgrade to 23.1.0 release sunilkumar.dora
2026-08-30 19:53   ` Khem Raj
2026-09-01  3:37     ` [OE-core] " Dora, Sunil Kumar
2026-09-01 12:49       ` Richard Purdie
2026-08-30 12:58 ` [PATCH 02/11] spirv-llvm-translator: Upgrade to 23.1.0 sunilkumar.dora
2026-08-30 19:43   ` Khem Raj
2026-09-01  4:07     ` [OE-core] " Dora, Sunil Kumar
2026-08-30 12:58 ` [PATCH 03/11] openmp: Build via the LLVM runtimes entry point sunilkumar.dora
2026-08-30 19:45   ` Khem Raj
2026-09-01  4:33     ` Dora, Sunil Kumar [this message]
2026-09-03  1:11       ` [OE-core] " Khem Raj
2026-08-30 12:58 ` [PATCH 04/11] rust: Fix build and oe-selftest failures with LLVM 23 sunilkumar.dora
2026-08-30 19:47   ` Khem Raj
2026-09-01  5:17     ` [OE-core] " Dora, Sunil Kumar
2026-09-03  1:08       ` Khem Raj
2026-08-30 12:58 ` [PATCH 05/11] rust: Do not pass the removed x86 amx-tf32 feature to " sunilkumar.dora
2026-08-30 12:58 ` [PATCH 06/11] clang: Disable clangd's decision-forest completion model on powerpc sunilkumar.dora
2026-08-30 12:58 ` [PATCH 07/11] pango: Don't turn clang 23's -Wunused-but-set-global into an error sunilkumar.dora
2026-08-30 12:58 ` [PATCH 08/11] ovmf: Fix memcpy alias prototype for clang 23 sunilkumar.dora
2026-08-30 12:58 ` [PATCH 09/11] vulkan-samples: Don't turn clang 23's -Wdangling-gsl into an error sunilkumar.dora
2026-08-30 12:58 ` [PATCH 10/11] gettext: Export a fully-flagged Objective-C compiler sunilkumar.dora
2026-08-30 12:58 ` [PATCH 11/11] clang/llvm: Ignore tests fail with clang/llvm 23 upgrade sunilkumar.dora
2026-08-30 19:53 ` [PATCH 00/11] clang/llvm: Upgrade to 23.1.0 Khem Raj
2026-09-01  4:59   ` [OE-core] " Dora, Sunil Kumar
2026-09-03  1:10     ` Khem Raj
2026-09-03 23:46       ` Khem Raj
2026-09-04  4:49         ` Dora, Sunil Kumar
2026-09-05 13:26           ` Dora, Sunil Kumar
2026-09-05 18:01             ` [OE-core] " Khem Raj

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=09fa9968-aedb-427e-925a-1cb07d8cfe03@windriver.com \
    --to=sunilkumar.dora@windriver.com \
    --cc=Randy.MacLeod@windriver.com \
    --cc=Sundeep.Kokkonda@windriver.com \
    --cc=deepesh.vatharaj@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /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