# BinaryBuilder.jl: Use clang for linux

**URL:** <https://discourse.julialang.org/t/binarybuilder-jl-use-clang-for-linux/12039>\
**Category:** Tooling\
**Tags:** question\
**Created:** [June 28, 2018, 4:45pm UTC](https://discourse.julialang.org/t/binarybuilder-jl-use-clang-for-linux/12039 "2018-06-28T16:45:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranocha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ranocha/32/35588_2.png) [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Post date:** [June 28, 2018, 4:45pm UTC](https://discourse.julialang.org/t/binarybuilder-jl-use-clang-for-linux/12039/1 "2018-06-28T16:45:01Z")

</div>

I’m experimenting with wrapping [CLBlast](https://github.com/CNugteren/CLBlast) in Julia. While some pre-compiled binaries for linux are available on the project page, using this version and `ccall` for its C interface results in some errors for complex numbers `Complex64`. However, these errors disappear if I compile CLBlast using clang. Using the wizard of BinaryBuilder.jl, I can’t find a version of clang for linux. Thus, I would like to know whether (and how) it is possible to use clang for linux in BinaryBuilder.jl.

---

<div class="post-metadata">

**Author:** ![Keno](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/keno/32/285_2.png) [@Keno](https://discourse.julialang.org/u/Keno)\
**Post date:** [June 28, 2018, 5:11pm UTC](https://discourse.julialang.org/t/binarybuilder-jl-use-clang-for-linux/12039/2 "2018-06-28T17:11:50Z")

</div>

At the moment, we only support one compiler per platform. This is the generally same compiler used to build the binaries on [julialang.org](http://julialang.org). We may include more compilers in the future. If you wanted to “Just make it work”, you may be able to get clang using either `apk add clang`, or by grabbing the x86\_64 build of clang from [https://github.com/staticfloat/LLVMBuilder/releases](https://github.com/staticfloat/LLVMBuilder/releases) (e.g. you can add it as a “source” to your build). You may have to fiddle with the settings though (e.g. `isysroot` in order to make it find the gcc installation of the standard libraries).

---

<div class="post-metadata">

**Author:** ![ranocha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ranocha/32/35588_2.png) [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Post date:** [June 28, 2018, 5:20pm UTC](https://discourse.julialang.org/t/binarybuilder-jl-use-clang-for-linux/12039/3 "2018-06-28T17:20:02Z")

</div>

Thank you very much for you fast response! I will try it.
