Package: src:bpfcc
Version: 0.35.0+ds-1
Severity: serious
Tags: ftbfs sid forky
User: [email protected]>
Usertags: llvm-21

 ftbfs with LLVM 21:

[...]
[ 60%] Building CXX object src/cc/CMakeFiles/bpf-static.dir/usdt/usdt_args.cc.o cd /build/reproducible-path/bpfcc-0.35.0+ds/obj-aarch64-linux-gnu/src/cc && /usr/bin/c++ -DEXPORT_USDT -DHAVE_EXTERNAL_LIBBPF -DHAVE_LIBLZMA -I/usr/lib/llvm-21/include/../tools/clang/include -I/build/reproducible-path/bpfcc-0.35.0+ds/src -I/build/reproducible-path/bpfcc-0.35.0+ds/obj-aarch64-linux-gnu/src -I/build/reproducible-path/bpfcc-0.35.0+ds/obj-aarch64-linux-gnu/src/cc -I/build/reproducible-path/bpfcc-0.35.0+ds/src/cc -I/build/reproducible-path/bpfcc-0.35.0+ds/obj-aarch64-linux-gnu/src/cc/frontends/b -I/build/reproducible-path/bpfcc-0.35.0+ds/src/cc/frontends/b -I/build/reproducible-path/bpfcc-0.35.0+ds/src/cc/frontends/clang -I/usr/lib/llvm-21/include -I/build/reproducible-path/bpfcc-0.35.0+ds/src/cc/compat -g -O2 -ffile-prefix-map=/build/reproducible-path/bpfcc-0.35.0+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -DCUSTOM_MACRO=true -Wall -fno-rtti -fPIC -DBCC_PROG_TAG_DIR='"/var/tmp/bcc"' -Wno-unused-result -std=gnu++17 -D_GNU_SOURCE -DEXPERIMENTAL_KEY_INSTRUCTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT src/cc/CMakeFiles/bpf-static.dir/usdt/usdt_args.cc.o -MF CMakeFiles/bpf-static.dir/usdt/usdt_args.cc.o.d -o CMakeFiles/bpf-static.dir/usdt/usdt_args.cc.o -c /build/reproducible-path/bpfcc-0.35.0+ds/src/cc/usdt/usdt_args.cc /build/reproducible-path/bpfcc-0.35.0+ds/src/cc/frontends/clang/loader.cc: In member function ‘int ebpf::ClangLoader::do_compile(std::unique_ptr<llvm::Module>*, ebpf::TableStorage&, bool, const std::vector<const char*, std::allocator<const char*> >&, const std::vector<const char*, std::allocator<const char*> >&, const std::string&, const std::unique_ptr<llvm::MemoryBuffer>&, const std::string&, ebpf::ProgFuncInfo&, std::string&, bool, const std::string&, ebpf::fake_fd_map_def&, std::map<std::__cxx11::basic_string<char>, std::vector<std::__cxx11::basic_string<char> > >&)’: /build/reproducible-path/bpfcc-0.35.0+ds/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); | ^ /build/reproducible-path/bpfcc-0.35.0+ds/src/cc/frontends/clang/loader.cc:400:73: note: there is 1 candidate In file included from /build/reproducible-path/bpfcc-0.35.0+ds/src/cc/frontends/clang/loader.cc:47: /usr/lib/llvm-21/include/clang/Frontend/TextDiagnosticPrinter.h:41:3: note: candidate 1: ‘clang::TextDiagnosticPrinter::TextDiagnosticPrinter(llvm::raw_ostream&, clang::DiagnosticOptions&, bool)’ 41 | TextDiagnosticPrinter(raw_ostream &os, DiagnosticOptions &DiagOpts,
      |   ^~~~~~~~~~~~~~~~~~~~~
/usr/lib/llvm-21/include/clang/Frontend/TextDiagnosticPrinter.h:41:61: note: no known conversion for argument 2 from ‘clang::DiagnosticOptions*’ to ‘clang::DiagnosticOptions&’ 41 | TextDiagnosticPrinter(raw_ostream &os, DiagnosticOptions &DiagOpts, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~ make[3]: Leaving directory '/build/reproducible-path/bpfcc-0.35.0+ds/obj-aarch64-linux-gnu'
[ 60%] Built target api-objects
[ 61%] Building CXX object src/cc/CMakeFiles/bpf-shared.dir/usdt/usdt_args.cc.o cd /build/reproducible-path/bpfcc-0.35.0+ds/obj-aarch64-linux-gnu/src/cc && /usr/bin/c++ -DEXPORT_USDT -DHAVE_EXTERNAL_LIBBPF -DHAVE_LIBLZMA -Dbpf_shared_EXPORTS -I/usr/lib/llvm-21/include/../tools/clang/include -I/build/reproducible-path/bpfcc-0.35.0+ds/src -I/build/reproducible-path/bpfcc-0.35.0+ds/obj-aarch64-linux-gnu/src -I/build/reproducible-path/bpfcc-0.35.0+ds/obj-aarch64-linux-gnu/src/cc -I/build/reproducible-path/bpfcc-0.35.0+ds/src/cc -I/build/reproducible-path/bpfcc-0.35.0+ds/obj-aarch64-linux-gnu/src/cc/frontends/b -I/build/reproducible-path/bpfcc-0.35.0+ds/src/cc/frontends/b -I/build/reproducible-path/bpfcc-0.35.0+ds/src/cc/frontends/clang -I/usr/lib/llvm-21/include -I/build/reproducible-path/bpfcc-0.35.0+ds/src/cc/compat -g -O2 -ffile-prefix-map=/build/reproducible-path/bpfcc-0.35.0+ds=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -DCUSTOM_MACRO=true -Wall -fno-rtti -fPIC -DBCC_PROG_TAG_DIR='"/var/tmp/bcc"' -Wno-unused-result -std=gnu++17 -fPIC -D_GNU_SOURCE -DEXPERIMENTAL_KEY_INSTRUCTIONS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT src/cc/CMakeFiles/bpf-shared.dir/usdt/usdt_args.cc.o -MF CMakeFiles/bpf-shared.dir/usdt/usdt_args.cc.o.d -o CMakeFiles/bpf-shared.dir/usdt/usdt_args.cc.o -c /build/reproducible-path/bpfcc-0.35.0+ds/src/cc/usdt/usdt_args.cc
In file included from /usr/lib/llvm-21/include/clang/Basic/FileManager.h:22,
from /build/reproducible-path/bpfcc-0.35.0+ds/src/cc/frontends/clang/loader.cc:35: /usr/lib/llvm-21/include/llvm/ADT/IntrusiveRefCntPtr.h: In instantiation of ‘static void llvm::IntrusiveRefCntPtrInfo<T>::retain(T*) [with T = clang::DiagnosticOptions]’: /usr/lib/llvm-21/include/llvm/ADT/IntrusiveRefCntPtr.h:228:40: required from ‘void llvm::IntrusiveRefCntPtr<T>::retain() [with T = clang::DiagnosticOptions]’
  228 |       IntrusiveRefCntPtrInfo<T>::retain(Obj);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/lib/llvm-21/include/llvm/ADT/IntrusiveRefCntPtr.h:180:43: required from ‘llvm::IntrusiveRefCntPtr<T>::IntrusiveRefCntPtr(T*) [with T = clang::DiagnosticOptions]’
  180 |   IntrusiveRefCntPtr(T *obj) : Obj(obj) { retain(); }
      |                                           ^~~~~~
/build/reproducible-path/bpfcc-0.35.0+ds/src/cc/frontends/clang/loader.cc:399:74: required from here 399 | IntrusiveRefCntPtr<DiagnosticOptions> diag_opts(new DiagnosticOptions()); | ^ /usr/lib/llvm-21/include/llvm/ADT/IntrusiveRefCntPtr.h:163:37: error: ‘class clang::DiagnosticOptions’ has no member named ‘Retain’
  163 |   static void retain(T *obj) { obj->Retain(); }
      |                                ~~~~~^~~~~~

Reply via email to