package/bcc: bump version to 0.36.1
PATCH 1/1 package/bcc: bump version to 0.36.1
https://github.com/iovisor/bcc/blob/v0.36.1/debian/changelog
Removed patch which is included in this release.
Added upstream commit to fix build with the upcoming bump of llvm to 22.1.0.
Signed-off-by Bernd Kuhls <[email protected]>
--- ...ix-a-build-failure-with-clang21-5369.patch | 53 --------------- package/bcc/0001-Fix-build-with-LLVM-22.patch | 64 +++++++++++++++++++ package/bcc/bcc.hash | 2 +- package/bcc/bcc.mk | 2 +- 4 files changed, 66 insertions(+), 55 deletions(-) delete mode 100644 package/bcc/0001-Fix-a-build-failure-with-clang21-5369.patch create mode 100644 package/bcc/0001-Fix-build-with-LLVM-22.patch
package/bcc/0001-Fix-a-build-failure-with-clang21-5369.patch deleted +0 -53
@@ -1,53 +0,0 @@ -From 051be0c987622683c75b335bda16b9b61fc67fa4 Mon Sep 17 00:00:00 2001 -From: yonghong-song <[email protected]> -Date: Mon, 14 Jul 2025 20:21:59 -0700 -Subject: [PATCH] Fix a build failure with clang21 (#5369) -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -The build error message: - src/cc/frontends/clang/loader.cc:400:73: error: no matching function for - call to ‘clang::TextDiagnosticPrinter::TextDiagnosticPrinter( - llvm::raw_fd_ostream&, clang::DiagnosticOptions*)’ - 400 | auto diag_client = new TextDiagnosticPrinter(llvm::errs(), &*diag_opts); - | ^ -The llvm commit - https://github.com/llvm/llvm-project/pull/139584 -caused the build failure. - -Adjust the code properly and the error is fixed. - -Upstream: https://github.com/iovisor/bcc/commit/8c5c96ad3beeed2fa827017f451a952306826974 -Signed-off-by: Julien Olivain <[email protected]> ---- - src/cc/frontends/clang/loader.cc | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/src/cc/frontends/clang/loader.cc b/src/cc/frontends/clang/loader.cc -index 07dc9d6a..6f8387aa 100644 ---- a/src/cc/frontends/clang/loader.cc -+++ b/src/cc/frontends/clang/loader.cc -@@ -396,11 +396,19 @@ int ClangLoader::do_compile( - flags_cstr_rem.end()); - - // set up the error reporting class -+#if LLVM_VERSION_MAJOR >= 21 -+ DiagnosticOptions diag_opts; -+ auto diag_client = new TextDiagnosticPrinter(llvm::errs(), diag_opts); -+ -+ IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); -+ DiagnosticsEngine diags(DiagID, diag_opts, diag_client); -+#else - IntrusiveRefCntPtr<DiagnosticOptions> diag_opts(new DiagnosticOptions()); - auto diag_client = new TextDiagnosticPrinter(llvm::errs(), &*diag_opts); - - IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); - DiagnosticsEngine diags(DiagID, &*diag_opts, diag_client); -+#endif - - // set up the command line argument wrapper - --- -2.51.1 -
package/bcc/0001-Fix-build-with-LLVM-22.patch new file +64 -0
64 lines not on this page · raw message
package/bcc/bcc.hash +1 -1
@@ -1,3 +1,3 @@ # locally calculated -sha256 66c588bf5dfcd557a9f14f7e21a7b4dfdfcc4a574fd4b9897037059f046a6558 bcc-v0.35.0-git4.tar.gz +sha256 ea8562246801c52a9c21c47076dae9ff1d3719bb86b96d7a6222b3724461f52c bcc-v0.36.1-git4.tar.gz sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE.txt
package/bcc/bcc.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -BCC_VERSION = v0.35.0 +BCC_VERSION = v0.36.1 BCC_SITE = https://github.com/iovisor/bcc BCC_SITE_METHOD = git BCC_GIT_SUBMODULES = YES
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot