Fix bcc and castxml builds with LLVM 23
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | castxml: Fix build with LLVM 23meta-oe/ meta-oe/ | +39 | 0 replies | |
| 2/2 | bcc: Fix build with LLVM 23meta-oe/ meta-oe/ | +37 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Deepesh Varatharajan |
|---|---|
| 1/2 | Co-authored-by |
| 2/2 | Co-authored-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [meta-oe][PATCH 0/2] Fix bcc and castxml builds with LLVM 23
From: Sunil Dora <[email protected]>
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
Signature · 1 line
2.43.0