# Build Error on Linux : llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h: No such file or directory

**URL:** <https://discourse.julialang.org/t/build-error-on-linux-llvm-executionengine-orc-objectlinkinglayer-h-no-such-file-or-directory/2295>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [February 25, 2017, 10:23am UTC](https://discourse.julialang.org/t/build-error-on-linux-llvm-executionengine-orc-objectlinkinglayer-h-no-such-file-or-directory/2295 "2017-02-25T10:23:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![singam-sanjay](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singam-sanjay/32/1721_2.png) [@singam-sanjay](https://discourse.julialang.org/u/singam-sanjay)\
**Post date:** [February 25, 2017, 10:23am UTC](https://discourse.julialang.org/t/build-error-on-linux-llvm-executionengine-orc-objectlinkinglayer-h-no-such-file-or-directory/2295/1 "2017-02-25T10:23:32Z")

</div>

Hello,

The build fails after reporting that the “llvm/ExecutionEngine/Orc/LazyEmittingLayer.h” missing, at commit 0a5f35b6d9544122d7ab0498c0892cd29c734506.

```julia
    CC /home/sanjay/Software/polly_julia/julia_build/src/codegen.o
In file included from /home/sanjay/Software/polly_julia/julia_src/src/codegen.cpp:117:0:
/home/sanjay/Software/polly_julia/julia_src/src/jitlayers.h:14:57: fatal error: llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h: No such file or directory
 #include "llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h"
                                                         ^
compilation terminated.
make[1]: *** [codegen.o] Error 1
make: *** [julia-src-release] Error 2

```

A `find . -name ObjectLinkingLayer.h` on julia\_src, julia\_build, the llvm source and build directories didn’t return any results.

How can I resolve this ?

Thank You,  
Sanjay

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [February 27, 2017, 3:02am UTC](https://discourse.julialang.org/t/build-error-on-linux-llvm-executionengine-orc-objectlinkinglayer-h-no-such-file-or-directory/2295/2 "2017-02-27T03:02:47Z")

</div>

Fixed by [https://github.com/JuliaLang/julia/pull/20823](https://github.com/JuliaLang/julia/pull/20823), dup of [Build Error on Linux : template errors on commit 00b7b606d82c36461d448a2a7b59475235199acf](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278), no need to post the same issue twice since both are llvm compile error with svn builds.

---

<div class="post-metadata">

**Author:** ![singam-sanjay](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singam-sanjay/32/1721_2.png) [@singam-sanjay](https://discourse.julialang.org/u/singam-sanjay)\
**Post date:** [February 27, 2017, 1:19pm UTC](https://discourse.julialang.org/t/build-error-on-linux-llvm-executionengine-orc-objectlinkinglayer-h-no-such-file-or-directory/2295/3 "2017-02-27T13:19:32Z")

</div>

Hello yuyichao,

Thanks for fixing it !

I’m new to Julia’s ecosystem and the technical jargons. Could you please clarify the following ?

- What is an `svn build` ? Is it different from a `git build` ( if there is one ) ?
- How is this bug related to the one reported in the duplicate question [here](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278) ?

Thank You,  
Sanjay

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [February 27, 2017, 1:40pm UTC](https://discourse.julialang.org/t/build-error-on-linux-llvm-executionengine-orc-objectlinkinglayer-h-no-such-file-or-directory/2295/4 "2017-02-27T13:40:45Z")

</div>

> [@singam-sanjay](#):
>
> What is an svn build ? Is it different from a git build ( if there is one ) ?

You are building llvm svn, not 3.9.1, (or more accurately, with polly enabled)

> [@singam-sanjay](#):
>
> How is this bug related to the one reported in the duplicate question here ?

Explained [here](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278/7)

---

<div class="post-metadata">

**Author:** ![singam-sanjay](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singam-sanjay/32/1721_2.png) [@singam-sanjay](https://discourse.julialang.org/u/singam-sanjay)\
**Post date:** [February 27, 2017, 2:24pm UTC](https://discourse.julialang.org/t/build-error-on-linux-llvm-executionengine-orc-objectlinkinglayer-h-no-such-file-or-directory/2295/5 "2017-02-27T14:24:53Z")

</div>

> [@yuyichao](#):
>
> You are building llvm svn, not 3.9.1, (or more accurately, with polly enabled)

i.e. building the files at the HEAD commit of master w.r.t. git ( latest version ) ?

---

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [February 27, 2017, 2:30pm UTC](https://discourse.julialang.org/t/build-error-on-linux-llvm-executionengine-orc-objectlinkinglayer-h-no-such-file-or-directory/2295/6 "2017-02-27T14:30:05Z")

</div>

> [@singam-sanjay](#):
>
> i.e. building the files at the HEAD commit of master w.r.t. git ( latest version ) ?

Of LLVM, yes.
