VC4C build error in the current branch
Zenitur opened this issue · 1 comments
Zenitur commented
There is an error:
[ 43%] Building CXX object src/CMakeFiles/VC4CC.dir/precompilation/LLVMLibrary.cpp.o
/home/pi/opencl-vc4/VC4C/src/precompilation/LLVMLibrary.cpp: In function 'std::shared_ptr<llvm::LLVMContext> vc4c::precompilation::initializeLLVMContext()':
/home/pi/opencl-vc4/VC4C/src/precompilation/LLVMLibrary.cpp:54:14: error: 'using element_type = class llvm::LLVMContext' {aka 'class llvm::LLVMContext'} has no member named 'setDiagnosticHandlerCallBack'; did you mean 'setDiagnosticHandler'?
context->setDiagnosticHandlerCallBack([](const llvm::DiagnosticInfo& info, void* /* dummy */) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
setDiagnosticHandler
make[2]: *** [src/CMakeFiles/VC4CC.dir/build.make:1207: src/CMakeFiles/VC4CC.dir/precompilation/LLVMLibrary.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:324: src/CMakeFiles/VC4CC.dir/all] Error 2
make: *** [Makefile:163: all] Error 2
I'm using Raspbian 10 (Legacy GL driver) and LLVM 5.0
doe300 commented
LLVM 5.0 is wayy outdated, LLVM 15.0 support was never added.