# Compile Julia using experimental GNU GCC for apple silicon

**URL:** <https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374>\
**Category:** General Usage\
**Tags:** question, compilation\
**Created:** [April 15, 2021, 10:22pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374 "2021-04-15T22:22:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![luis-perez-one](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luis-perez-one/32/24073_2.png) [@luis-perez-one](https://discourse.julialang.org/u/luis-perez-one)\
**Post date:** [April 15, 2021, 10:22pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374/1 "2021-04-15T22:22:27Z")

</div>

Hello everyone! This is my first post in the forum. 😀

I was wondering, have any of you been able to compile Julia using the experimental GCC - Fortan compiler from [Iain Sanode](https://github.com/iains/gcc-darwin-arm64) for apple silicon?

I just pulled the trigger for a new MacBook Air and I’m quite interested in this. If not, is it better at this point to simply use Rosseta 2?

On a side note, parallels was just released about yesterday with support for full ARM virtualization. So another option would be to install Julia on a Linux ARM VM. Without having done any tests I’m guessing that the overhead against Rosseta 2 should be lower. Nonetheless, maybe the speed difference doesn’t make up for the “struggles” of a VM.

Let me know yor thoughts on this.

Cheers,  
-Luis

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [April 15, 2021, 11:06pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374/2 "2021-04-15T23:06:16Z")

</div>

Julia itself doesn’t need a Fortran compiler, only some of its dependencies (namely OpenBLAS) do. Building Julia from scratch with the default settings would automatically download prebuilt copies of all dependencies (so you don’t need to build OpenBLAS at all), and `master` version of Julia should already build on Apple Silicon. There are still some issues tracked at [https://github.com/JuliaLang/julia/issues/36617](https://github.com/JuliaLang/julia/issues/36617)

---

<div class="post-metadata">

**Author:** ![panos.asproulis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/panos.asproulis/32/23368_2.png) [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)\
**Post date:** [June 3, 2021, 8:23pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374/3 "2021-06-03T20:23:12Z")

</div>

Are there any Julia builds available which have been compiled for Apple Silicon?

I think that this hardware has a lot of potential for numerical applications which utilise not only the CPU cores but also the GPU and ML cores in a way that is hopefully transparent to the user.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [June 3, 2021, 8:41pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374/4 "2021-06-03T20:41:20Z")

</div>

Official builds, no, but you can compile Julia `master` yourself, it takes 4 minutes.

---

<div class="post-metadata">

**Author:** ![panos.asproulis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/panos.asproulis/32/23368_2.png) [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)\
**Post date:** [June 3, 2021, 8:55pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374/5 "2021-06-03T20:55:41Z")

</div>

I will give it a try but what about all the other components required for a complete Julia installation?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [June 3, 2021, 8:58pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374/6 "2021-06-03T20:58:23Z")

</div>

What other components? I think you only need xcode

---

<div class="post-metadata">

**Author:** ![panos.asproulis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/panos.asproulis/32/23368_2.png) [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)\
**Post date:** [June 3, 2021, 9:03pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374/7 "2021-06-03T21:03:05Z")

</div>

I think that it contains mathematical libraries in C/FORTRAN like OpenBLAS.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [June 3, 2021, 9:13pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374/8 "2021-06-03T21:13:11Z")

</div>

Julia build system by default uses pre-built copies of the binary dependencies. These are available also for `aarch64-apple-darwin` (the platform of this computer) on `master`

---

<div class="post-metadata">

**Author:** ![panos.asproulis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/panos.asproulis/32/23368_2.png) [@panos.asproulis](https://discourse.julialang.org/u/panos.asproulis)\
**Post date:** [June 3, 2021, 9:29pm UTC](https://discourse.julialang.org/t/compile-julia-using-experimental-gnu-gcc-for-apple-silicon/59374/9 "2021-06-03T21:29:04Z")

</div>

Very interesting. I will try that. Thank you!
