Problem building julia: version `JL_LLVM_6.0' not found

I tried to build the current master of Julia and it fails with the following error:

/home/jan/juliadev/usr/bin/julia: /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so: version `JL_LLVM_6.0' not found (required by /home/jan/juliadev/usr/bin/../lib/libjulia.so.0.7)
Makefile:187: recipe for target '/home/jan/juliadev/usr/lib/julia/basecompiler.ji' failed
make[1]: *** [/home/jan/juliadev/usr/lib/julia/basecompiler.ji] Error 1
Makefile:75: recipe for target 'julia-base-compiler' failed
make: *** [julia-base-compiler] Error 2

Any ideas what this is about and how to fix it?

1 Like

I had the same problem with Ubuntu-18.04. It seems that the system libLLVM-6.0.so is picked instead of the library which julia builder just compiled. It looks to me like a problem in the Makefile.

I was able to fix it by extending the LD_LIBRARY_PATH

# inside julia folder
find . -name libLLVM-6.0.so
# gives
# ./usr/lib/libLLVM-6.0.so
# ./deps/scratch/llvm-6.0.0/build_Release/lib/libLLVM-6.0.so
export LD_LIBRARY_PATH="$(pwd)/usr/lib/:$LD_LIBRARY_PATH"
make
2 Likes

Thanks, I will try it. For me this problem occured after I upgraded to Ubuntu-18.04.

It works, thanks again!