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/ version `JL_LLVM_6.0' not found (required by /home/jan/juliadev/usr/bin/../lib/
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 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
# gives
# ./usr/lib/
# ./deps/scratch/llvm-6.0.0/build_Release/lib/
export LD_LIBRARY_PATH="$(pwd)/usr/lib/:$LD_LIBRARY_PATH"

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

It works, thanks again!