# Build Error on Linux : template errors on commit 00b7b606d82c36461d448a2a7b59475235199acf

**URL:** <https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [February 24, 2017, 4:54pm UTC](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278 "2017-02-24T16:54:05Z")\
**Posts on this page:** 7\
**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 24, 2017, 4:54pm UTC](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278/1 "2017-02-24T16:54:05Z")

</div>

Hello,

I’m getting many C++ template related errors while building at commit 00b7b606d82c36461d448a2a7b59475235199acf.

Here’s the [link to the output](http://pastebin.com/XNkmSDfg).

I tried this on Ubuntu 14.04 x86\_64 using local LLVM ( with Polly ) build. It had built successfully a few weeks back within the same environment.

Please help to resolve this and also let me know if I should add this as an issue to the GitHub repo.

Thank You,  
Sanjay Srivallabh

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [February 24, 2017, 5:47pm UTC](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278/2 "2017-02-24T17:47:44Z")

</div>

If you are trying to build with `USE_POLLY=1`, I don’t think that is regularly tested so may require updates. It will also require `LLVM_VER=svn`, which may require manual steps to clean and update LLVM in an existing build. (such as cleaning the llvm build directory)

---

<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 24, 2017, 6:44pm UTC](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278/3 "2017-02-24T18:44:47Z")

</div>

I had the same result when re-building after making USE\_POLLY:=0 and then `make clean`. So, is it still dependent on Polly ?

Also, the error seems to be from parts that aren’t related to Polly. Please correct me if I’m wrong.

Thank You,  
Sanjay Srivallabh

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [February 24, 2017, 8:03pm UTC](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278/4 "2017-02-24T20:03:00Z")

</div>

You’ll have to make sure that the LLVM is entirely clean since otherwise you have a lot of artifacts lying around in the build tree.

---

<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, 8:50am UTC](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278/5 "2017-02-25T08:50:55Z")

</div>

Hello Stefan,

What did you mean by LLVM build being clean ?

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [February 25, 2017, 10:18pm UTC](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278/6 "2017-02-25T22:18:23Z")

</div>

You need to run `make -C deps distclean-llvm` since `make clean` doesn’t touch dependencies.

---

<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:03am UTC](https://discourse.julialang.org/t/build-error-on-linux-template-errors-on-commit-00b7b606d82c36461d448a2a7b59475235199acf/2278/7 "2017-02-27T03:03:30Z")

</div>

Fixed by [https://github.com/JuliaLang/julia/pull/20823](https://github.com/JuliaLang/julia/pull/20823), you are picking up the renamed header from your system llvm (or whatever other llvm version it can find).
