Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-oe][PATCH 0/2] Fix bcc and castxml builds with LLVM 23
@ 2026-08-29  6:05 sunilkumar.dora
  2026-08-29  6:05 ` [meta-oe][PATCH 1/2] castxml: Fix build " sunilkumar.dora
  2026-08-29  6:05 ` [meta-oe][PATCH 2/2] bcc: " sunilkumar.dora
  0 siblings, 2 replies; 3+ messages in thread
From: sunilkumar.dora @ 2026-08-29  6:05 UTC (permalink / raw)
  To: openembedded-devel; +Cc: raj.khem, deepesh.varatharajan, sundeep.kokkonda

From: Sunil Dora <sunilkumar.dora@windriver.com>

oe-core is moving clang/llvm from 22.1.8 to 23.1.0. Two recipes in
meta-oe do not build against 23, because upstream LLVM and Clang changed
APIs they use:

  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 projects have already fixed this upstream, but neither fix is in a
release yet, and meta-oe is already on the newest tag of both. So these
are backports rather than version bumps.

Both upstream fixes are guarded on LLVM_VERSION_MAJOR, so the recipes
keep building with older Clang.

Both failures also reproduce on the Yocto autobuilder meta-oe world
build run against the oe-core clang/llvm 23.1.0 series.

Tested on qemux86-64 with meta-oe and meta-python on top of the oe-core
clang/llvm 23.1.0 series: castxml and bcc both build, with the default
gcc toolchain and with TOOLCHAIN=clang.

Sunil Dora (2):
  castxml: Fix build with LLVM 23
  bcc: Fix build with LLVM 23

 ...ix-MCContext-constructor-for-LLVM-23.patch | 36 +++++++++++++++++++
 .../recipes-devtools/bcc/bcc_0.37.0.bb        |  1 +
 .../castxml/0001-Port-to-LLVM-Clang-23.patch  | 36 +++++++++++++++++++
 .../recipes-devtools/castxml/castxml_0.7.0.bb |  4 ++-
 4 files changed, 76 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-devtools/bcc/bcc/0001-src-cc-Fix-MCContext-constructor-for-LLVM-23.patch
 create mode 100644 meta-oe/recipes-devtools/castxml/castxml/0001-Port-to-LLVM-Clang-23.patch

-- 
2.43.0



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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-29  6:05 [meta-oe][PATCH 0/2] Fix bcc and castxml builds with LLVM 23 sunilkumar.dora
2026-08-29  6:05 ` [meta-oe][PATCH 1/2] castxml: Fix build " sunilkumar.dora
2026-08-29  6:05 ` [meta-oe][PATCH 2/2] bcc: " sunilkumar.dora

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