Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bpftrace error
In file included from /var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/ast/codegen_llvm.cpp:1:
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:84:3: error: ‘llvm::orc::IRCompileLayer’ is not a template
IRCompileLayer<decltype(ObjectLayer), SimpleCompiler> CompileLayer;
^~~~~~~~~~~~~~
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h: In lambda function:
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:94:77: error: ‘Resources’ is not a member of ‘llvm::orc::RTDyldObjectLinkingLayer’
ObjectLayer(ES, [this](VModuleKey) { return RTDyldObjectLinkingLayer::Resources{std::make_shared<MemoryManager>(sections_), Resolver}; }),
^~~~~~~~~
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:94:86: error: expected ‘;’ before ‘{’ token
ObjectLayer(ES, [this](VModuleKey) { return RTDyldObjectLinkingLayer::Resources{std::make_shared<MemoryManager>(sections_), Resolver}; }),
^
;
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:94:139: error: expected ‘;’ before ‘}’ token
ObjectLayer(ES, [this](VModuleKey) { return RTDyldObjectLinkingLayer::Resources{std::make_shared<MemoryManager>(sections_), Resolver}; }),
^
;
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:94:131: warning: right operand of comma operator has no effect [-Wunused-value]
ObjectLayer(ES, [this](VModuleKey) { return RTDyldObjectLinkingLayer::Resources{std::make_shared<MemoryManager>(sections_), Resolver}; }),
^~~~~~~~
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h: In constructor ‘bpftrace::BpfOrc::BpfOrc(llvm::TargetMachine*)’:
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:95:52: error: no matching function for call to ‘llvm::orc::RTDyldObjectLinkingLayer::RTDyldObjectLinkingLayer(llvm::orc::ExecutionSession&, bpftrace::BpfOrc::BpfOrc(llvm::TargetMachine*)::<lambda(llvm::orc::VModuleKey)>)’
CompileLayer(ObjectLayer, SimpleCompiler(*TM)) {}
^
In file included from /var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:9,
from /var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/ast/codegen_llvm.cpp:1:
/usr/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h:54:3: note: candidate: ‘llvm::orc::RTDyldObjectLinkingLayer::RTDyldObjectLinkingLayer(llvm::orc::ExecutionSession&, llvm::orc::RTDyldObjectLinkingLayer::GetMemoryManagerFunction, llvm::orc::RTDyldObjectLinkingLayer::NotifyLoadedFunction, llvm::orc::RTDyldObjectLinkingLayer::NotifyEmittedFunction)’
RTDyldObjectLinkingLayer(
^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h:54:3: note: no known conversion for argument 2 from ‘bpftrace::BpfOrc::BpfOrc(llvm::TargetMachine*)::<lambda(llvm::orc::VModuleKey)>’ to ‘llvm::orc::RTDyldObjectLinkingLayer::GetMemoryManagerFunction’ {aka ‘std::function<std::unique_ptr<llvm::RuntimeDyld::MemoryManager>()>’}
In file included from /var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/ast/codegen_llvm.cpp:1:
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:95:52: error: no matching function for call to ‘llvm::orc::IRCompileLayer::IRCompileLayer(llvm::orc::RTDyldObjectLinkingLayer&, llvm::orc::SimpleCompiler)’
CompileLayer(ObjectLayer, SimpleCompiler(*TM)) {}
^
In file included from /var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:7,
from /var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/ast/codegen_llvm.cpp:1:
/usr/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h:39:3: note: candidate: ‘llvm::orc::IRCompileLayer::IRCompileLayer(llvm::orc::ExecutionSession&, llvm::orc::ObjectLayer&, llvm::orc::IRCompileLayer::CompileFunction)’
IRCompileLayer(ExecutionSession &ES, ObjectLayer &BaseLayer,
^~~~~~~~~~~~~~
/usr/include/llvm/ExecutionEngine/Orc/IRCompileLayer.h:39:3: note: candidate expects 3 arguments, 2 provided
In file included from /var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/ast/codegen_llvm.cpp:1:
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h: In member function ‘void bpftrace::BpfOrc::compileModule(std::unique_ptr<llvm::Module>)’:
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:99:27: error: ‘class llvm::orc::IRCompileLayer’ has no member named ‘emitAndFinalize’
cantFail(CompileLayer.emitAndFinalize(K));
^~~~~~~~~~~~~~~
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h: In member function ‘llvm::orc::VModuleKey bpftrace::BpfOrc::addModule(std::unique_ptr<llvm::Module>)’:
/var/tmp/pamac-build-russ/bpftrace/src/bpftrace-0.9/src/bpforc.h:104:27: error: ‘class llvm::orc::IRCompileLayer’ has no member named ‘addModule’
cantFail(CompileLayer.addModule(K, std::move(M)));
^~~~~~~~~
make[2]: *** [src/ast/CMakeFiles/ast.dir/build.make:76: src/ast/CMakeFiles/ast.dir/codegen_llvm.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:1144: src/ast/CMakeFiles/ast.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.