# Problem building julia: version \`JL\_LLVM\_6.0' not found

**URL:** <https://discourse.julialang.org/t/problem-building-julia-version-jl-llvm-6-0-not-found/11545>\
**Category:** General Usage\
**Created:** [June 8, 2018, 6:27pm UTC](https://discourse.julialang.org/t/problem-building-julia-version-jl-llvm-6-0-not-found/11545 "2018-06-08T18:27:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [June 8, 2018, 6:27pm UTC](https://discourse.julialang.org/t/problem-building-julia-version-jl-llvm-6-0-not-found/11545/1 "2018-06-08T18:27:22Z")

</div>

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

```julia
/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?

---

<div class="post-metadata">

**Author:** ![misha\_mikhasenko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/misha_mikhasenko/32/5060_2.png) [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Post date:** [August 20, 2018, 4:21pm UTC](https://discourse.julialang.org/t/problem-building-julia-version-jl-llvm-6-0-not-found/11545/2 "2018-08-20T16:21:28Z")

</div>

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`

```bash
# 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

```

---

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [August 20, 2018, 7:13pm UTC](https://discourse.julialang.org/t/problem-building-julia-version-jl-llvm-6-0-not-found/11545/3 "2018-08-20T19:13:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [August 20, 2018, 8:23pm UTC](https://discourse.julialang.org/t/problem-building-julia-version-jl-llvm-6-0-not-found/11545/4 "2018-08-20T20:23:05Z")

</div>

It works, thanks again!
