glow
glow copied to clipboard
FAILED: libjit/libjit_cpu.bc (LLVM versions are mixed)
I have these messages printed:
FAILED: libjit/libjit_cpu.bc
error: Invalid record (Producer: 'LLVM10.0.1' Reader: 'LLVM 9.0.1')
find_package(LLVM 90 CONFIG) finds llvm-9.0.1:
-- Found LLVM 9.0.1
but my base FreeBSD system also has llvm-10.0.1 installed as a default compiler.
Some llvm version mixup is going on.
Hi @yurivict -- are you using DLLVM_DIR during CMake to direct it to the correct llvm build? Might be worth a try to do that. Also not sure if we've done much testing w/ llvm10 yet, FYI.
I supply LLVM-9.0.1 by changing find_package to require that version.
I didn't try to use DLLVM_DIR. Instead, in the glow port I remapped the c++ executable to point to clang++90.