Openembedded Core Discussions
 help / color / mirror / Atom feed
* clang/llvm 23.1.0 upgrade for oe-core
@ 2026-08-28 17:14 Dora, Sunil Kumar
  0 siblings, 0 replies; 5+ messages in thread
From: Dora, Sunil Kumar @ 2026-08-28 17:14 UTC (permalink / raw)
  To: openembedded-core

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

Hi all,

I have been working on the clang/llvm upgrade to 23.1.0 for oe-core.
It is close to ready and I plan to send the series tomorrow.

What it covers:

- clang/llvm 22.1.8 to 23.1.0. The carried LLVM patch stack goes from
  41 to 34. Seven are upstream or no longer needed, and three needed
  rework for changes in LLVM 23.
- spirv-llvm-translator moves to its LLVM 23 branch.
- openmp builds through the runtimes entry point, since LLVM 23 removed
  the standalone build mode.
- rust needs upstream test fixes for LLVM 23, and one change to stop
  passing the x86 amx-tf32 feature that LLVM 23 removed.
- pango, ovmf, vulkan-samples and gettext need small fixes to build
  with clang 23.
- a few clang and LLVM tests are added to the exclusion list.

Testing:
- oe-selftest on the autobuilder for qemuarm, qemuarm64, qemux86,
  qemux86-64 and qemuriscv64. That runs the clang, lld and LLVM test
  suites on the target.
- clang family, rust and core-image-minimal build from scratch.
- The series also passed multilib, testimage, SDK and TOOLCHAIN=clang builds.

I would like to go through the patches once more before posting,
So I plan to send the series shortly.

Thanks,
Sunil Dora

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: clang/llvm 23.1.0 upgrade for oe-core
       [not found] <DS0PR11MB7901641887C85593E522BD3BE0AC2@DS0PR11MB7901.namprd11.prod.outlook.com>
@ 2026-08-28 23:36 ` Khem Raj
  2026-08-29  2:28   ` Dora, Sunil Kumar
  2026-08-29  6:23   ` Dora, Sunil Kumar
  0 siblings, 2 replies; 5+ messages in thread
From: Khem Raj @ 2026-08-28 23:36 UTC (permalink / raw)
  To: Dora, Sunil Kumar
  Cc: openembedded-core, Richard Purdie, Ross Burton, MacLeod, Randy,
	Kokkonda, Sundeep, Varatharajan, Deepesh

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

Thanks for working on this Sunil. There are some recipes in meta-oe layers
which depend on clang e.g. perfetto, bcc etc. would be good to try them out
as well.

On Fri, Aug 28, 2026 at 9:47 AM Dora, Sunil Kumar <
SunilKumar.Dora@windriver.com> wrote:

> Hi all,
>
> I have been working on the clang/llvm upgrade to 23.1.0 for oe-core.
> It is close to ready and I plan to send the series tomorrow.
>
> What it covers:
>
> - clang/llvm 22.1.8 to 23.1.0. The carried LLVM patch stack goes from
>   41 to 34. Seven are upstream or no longer needed, and three needed
>   rework for changes in LLVM 23.
> - spirv-llvm-translator moves to its LLVM 23 branch.
> - openmp builds through the runtimes entry point, since LLVM 23 removed
>   the standalone build mode.
> - rust needs upstream test fixes for LLVM 23, and one change to stop
>   passing the x86 amx-tf32 feature that LLVM 23 removed.
> - pango, ovmf, vulkan-samples and gettext need small fixes to build
>   with clang 23.
> - a few clang and LLVM tests are added to the exclusion list.
>
> *Testing:*
> - oe-selftest on the autobuilder for qemuarm, qemuarm64, qemux86,
>   qemux86-64 and qemuriscv64. That runs the clang, lld and LLVM test
>   suites on the target.
> - clang family, rust and core-image-minimal build from scratch.
> - The series also passed multilib, testimage, SDK and TOOLCHAIN=clang
> builds.
>
> I would like to go through the patches once more before posting,
> So I plan to send the series shortly.
>
> Thanks,
> Sunil Dora
>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: clang/llvm 23.1.0 upgrade for oe-core
  2026-08-28 23:36 ` clang/llvm 23.1.0 upgrade for oe-core Khem Raj
@ 2026-08-29  2:28   ` Dora, Sunil Kumar
  2026-08-29  6:23   ` Dora, Sunil Kumar
  1 sibling, 0 replies; 5+ messages in thread
From: Dora, Sunil Kumar @ 2026-08-29  2:28 UTC (permalink / raw)
  To: openembedded-core

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

Sure Khem.

Thanks,
Sunil Dora

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: clang/llvm 23.1.0 upgrade for oe-core
  2026-08-28 23:36 ` clang/llvm 23.1.0 upgrade for oe-core Khem Raj
  2026-08-29  2:28   ` Dora, Sunil Kumar
@ 2026-08-29  6:23   ` Dora, Sunil Kumar
  2026-08-29 14:22     ` Dora, Sunil Kumar
  1 sibling, 1 reply; 5+ messages in thread
From: Dora, Sunil Kumar @ 2026-08-29  6:23 UTC (permalink / raw)
  To: openembedded-core

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

Hi Khem,

I tested the meta-oe layers against the clang/llvm 23.1.0 series, both locally and on the autobuilder (meta-oe builder, build 1754).

Two recipes need fixing. I have sent patches for both to openembedded-devel:

*castxml* Clang 23 renamed ASTContext::getRawCommentForDeclNoCache to
getRawCommentNoCache.
*bcc* LLVM 23 changed the MCContext constructor to take MCAsmInfo,
MCRegisterInfo and MCSubtargetInfo by reference rather than
by pointer.

Both are already fixed upstream but the fixes are not in a release yet, and meta-oe is on the newest tag of both,
so the patches are backports. Both upstream fixes are guarded on LLVM_VERSION_MAJOR, so older Clang keeps working.

perfetto builds fine, and so does include-what-you-use.

xdp-tools fails at its check_abi step with TOOLCHAIN=clang, but it fails the same way with clang 22.1.8, so it is not caused by the upgrade. I have not sent anything for it.

The autobuilder run also shows krb5, redis, tailscale and doxygen failing. None of them depends on clang or llvm, and they fail with gcc as well. Most of the error output in that run is vboxguestdrivers basehash non-determinism, which does not fail any task.

Thanks,
Sunil

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: clang/llvm 23.1.0 upgrade for oe-core
  2026-08-29  6:23   ` Dora, Sunil Kumar
@ 2026-08-29 14:22     ` Dora, Sunil Kumar
  0 siblings, 0 replies; 5+ messages in thread
From: Dora, Sunil Kumar @ 2026-08-29 14:22 UTC (permalink / raw)
  To: openembedded-core

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

Hi all,

While testing the clang/llvm 23.1.0 upgrade with 32-bit multilib, lib32-llvm failed to build. LLVM 23's APFloat.cpp
now pulls in llvm-libc float16 headers, and their detection breaks on i686 without SSE2 with GCC >= 14.
The build dies with "SSE register return with SSE2 disabled". LLVM 22.1.8 was not affected.

I reported it upstream and sent a one-line fix:

https://github.com/llvm/llvm-project/issues/219668
https://github.com/llvm/llvm-project/pull/219675

Until that lands in a release, the series carries the patch with Upstream-Status: Submitted.

The same multilib round also caught an openmp packaging problem (installed into lib/ instead of lib64/), fixed in the openmp recipe by passing LLVM_LIBDIR_SUFFIX like the other clang-family recipes.

I am running a final round of local testing with both fixes and will post the updated series after that.

Thanks,
Sunil Dora

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-29 14:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <DS0PR11MB7901641887C85593E522BD3BE0AC2@DS0PR11MB7901.namprd11.prod.outlook.com>
2026-08-28 23:36 ` clang/llvm 23.1.0 upgrade for oe-core Khem Raj
2026-08-29  2:28   ` Dora, Sunil Kumar
2026-08-29  6:23   ` Dora, Sunil Kumar
2026-08-29 14:22     ` Dora, Sunil Kumar
2026-08-28 17:14 Dora, Sunil Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox