Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yurivict opened this issue Sep 22, 2020 · 2 comments
Open

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

yurivict opened this issue Sep 22, 2020 · 2 comments

Comments

@yurivict
Copy link

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.

@jfix71
Copy link
Contributor

jfix71 commented Sep 22, 2020

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.

@yurivict
Copy link
Author

yurivict commented Sep 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants