# Usr/share/julia/stdlib is empty when building from source

**URL:** https://discourse.julialang.org/t/usr-share-julia-stdlib-is-empty-when-building-from-source/21519
**Category:** New to Julia
**Created:** [March 6, 2019, 3:58am UTC](https://discourse.julialang.org/t/usr-share-julia-stdlib-is-empty-when-building-from-source/21519 "2019-03-06T03:58:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zaen](https://avatars.discourse-cdn.com/v4/letter/z/f04885/32.png) [@zaen](https://discourse.julialang.org/u/zaen)
#### Post date: [March 6, 2019, 3:58am UTC](https://discourse.julialang.org/t/usr-share-julia-stdlib-is-empty-when-building-from-source/21519/1 "2019-03-06T03:58:47Z")

</div>

I’m trying to build Julia from source using the Intel Math Kernel Library. I’ve done this successfully on Fedora, but I’m hitting a snag when building on Gentoo. Here’s what I’ve done:

- `git clone git://github.com/JuliaLang/julia.git`

- `cd julia`

- `git checkout v1.1.0`

create a Make.user file containing:

```
USE_INTEL_MKL=1
MARCH=native

```

- `make`

This results in:

```julia
find: ‘/home/zaen/repos/julia/usr/share/julia/stdlib/v1.1/*/src’: No such file or directory
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmkl_rt
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmkl_rt
collect2: error: ld returned 1 exit status
make[1]: *** [/home/zaen/repos/julia/deps/suitesparse.mk:52: /home/zaen/repos/julia/usr/manifest/suitesparse] Error 1
make: *** [Makefile:57: julia-deps] Error 2

```

When I check `usr/share/julia/stdlib` I can see that it’s empty. On my Fedora installation it’s not. What would cause this?

---

<div class="post-metadata">

### Author: ![zaen](https://avatars.discourse-cdn.com/v4/letter/z/f04885/32.png) [@zaen](https://discourse.julialang.org/u/zaen)
#### Post date: [March 7, 2019, 5:50am UTC](https://discourse.julialang.org/t/usr-share-julia-stdlib-is-empty-when-building-from-source/21519/2 "2019-03-07T05:50:52Z")

</div>

This directory is apparently not supposed to contain anything before Julia finishes the first build. Gentoo seems to ignore the LD\_LIBRARY\_PATH variable, but adding `LDFLAGS="-L/opt/intel/compilers_and_libraries/linux/mkl/lib/intel64"` to Make.user allowed me to build successfully.
