# Compilation time on Mac

**URL:** <https://discourse.mc-stan.org/t/compilation-time-on-mac/7232>\
**Category:** Interfaces\
**Tags:** mac, rstan\
**Created:** [January 10, 2019, 11:56am UTC](https://discourse.mc-stan.org/t/compilation-time-on-mac/7232 "2019-01-10T11:56:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerzy\_Baranowski](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jerzy_baranowski/32/3880_2.png) [@Jerzy\_Baranowski](https://discourse.mc-stan.org/u/Jerzy_Baranowski)\
**Post date:** [January 10, 2019, 11:56am UTC](https://discourse.mc-stan.org/t/compilation-time-on-mac/7232/1 "2019-01-10T11:56:06Z")

</div>

Operating System: macOS Mojave  
Interface Version: RStan  
Compiler/Toolkit: Xcode

Hello I have a problem with compilation of even the simplest models. I started to use stan using ‘rethinking’ package, but the same situation occurs when using ‘brms’.  
When I want to create a model e.g.:

> m8.2 ← map2stan(  
> alist(  
> y ~ dnorm( mu , sigma ) ,  
> mu ← alpha  
> ) ,  
> data=list(y=y) , start=list(alpha=0,sigma=1) ,  
> chains=2 , iter=4000 , warmup=1000 )

Compilation takes around a minute.  
Is this normal?  
Did anyone had similar issue and found a way to accelerate it?

---

<div class="post-metadata">

**Author:** ![hhau](https://avatars.discourse-cdn.com/v4/letter/h/2bfe46/32.png) [@hhau](https://discourse.mc-stan.org/u/hhau)\
**Post date:** [January 10, 2019, 1:32pm UTC](https://discourse.mc-stan.org/t/compilation-time-on-mac/7232/2 "2019-01-10T13:32:39Z")

</div>

> [@Jerzy\_Baranowski](#):
>
> Is this normal?

Yes

> [@Jerzy\_Baranowski](#):
>
> Did anyone had similar issue and found a way to accelerate it?

Unfortunately not.
