glow icon indicating copy to clipboard operation
glow copied to clipboard

FAILED: libjit/libjit_cpu.bc (LLVM versions are mixed)

Open yurivict opened this issue 5 years ago • 2 comments

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.

yurivict avatar Sep 22 '20 18:09 yurivict

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.

jfix71 avatar Sep 22 '20 20:09 jfix71

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.

yurivict avatar Sep 22 '20 20:09 yurivict