Closed agentzh closed 5 months ago
The raw compilation command is like this:
cd /home/agentzh/bpftime/build/vm/llvm-jit && ccache /usr/lib64/ccache/c++ -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG -DSPDLOG_COMPILED_LIB -I/home/agentzh/bpftime/vm/llvm-jit/src -I/home/agentzh/bpftime/vm/llvm-jit/include -I/opt/llvm/include -I/home/agentzh/bpftime/third_party/spdlog/include -I/home/agentzh/bpftime/vm/llvm-jit/../include -I/home/agentzh/bpftime/build/_deps/picosha2-src -g -std=gnu++2a -fPIC -D_DEBUG -Wall -Wextra -Wno-shadow -Wcast-align -Wunused -Wnull-dereference -Wdouble-promotion -Wformat=2 -fPIE -fPIC -fno-common -Wno-unused-function -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers -Wmisleading-indentation -Wduplicated-cond -Wduplicated-branches -Wlogical-op -MD -MT vm/llvm-jit/CMakeFiles/vm-bpf.dir/src/llvm/llvm_jit_context.cpp.o -MF CMakeFiles/vm-bpf.dir/src/llvm/llvm_jit_context.cpp.o.d -o CMakeFiles/vm-bpf.dir/src/llvm/llvm_jit_context.cpp.o -c /home/agentzh/bpftime/vm/llvm-jit/src/llvm/llvm_jit_context.cpp
Seems like it is using the right headers in my /opt/llvm/
installation.
We don't support LLVM 14. At least LLVM 15 is required
This is not a bug, for now we don't support LLVM 14 yet. Plz use 15 or higher
I'm getting the following compilation errors when building LLVM JIT with LLVM 14.0:
But I saw in the cmake files, it indeed tries to look for LLVM 15, 14, and 13. Is it a known issue?