# Cmake build failing on bigsur / apple silicon

**URL:** <https://forum.juce.com/t/cmake-build-failing-on-bigsur-apple-silicon/43229>\
**Category:** MacOSX and iOS\
**Created:** [December 13, 2020, 6:58pm UTC](https://forum.juce.com/t/cmake-build-failing-on-bigsur-apple-silicon/43229 "2020-12-13T18:58:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thetechnobear](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thetechnobear/32/704_2.png) [@thetechnobear](https://forum.juce.com/u/thetechnobear)\
**Post date:** [December 13, 2020, 6:58pm UTC](https://forum.juce.com/t/cmake-build-failing-on-bigsur-apple-silicon/43229/1 "2020-12-13T18:58:25Z")

</div>

juceaide is failing to build on mac mini m1 / BigSur 11.0.1

Im trying to build **native** (arm) juce vst3 plugins using cmake.

(my other non-juce projects are compiling quite happily with cmake/native… just issues with juce)

```auto
-- Building juceaide
CMake Error at juce/extras/Build/juceaide/CMakeLists.txt:86 (message):
  Failed to build juceaide
```

just taking one of the build errors, we can see its failing on the asm(“int $3”)  
my assumption is, juce is assuming MAC == INTEL

```auto
#elif JUCE_GCC || JUCE_MAC
  #if JUCE_NO_INLINE_ASM
   #define JUCE_BREAK_IN_DEBUGGER { }
  #else
   #define JUCE_BREAK_IN_DEBUGGER { asm ("int $3"); }
  #endif
#elif JUCE_ANDROID
  #define JUCE_BREAK_IN_DEBUGGER { __builtin_trap(); }
#else
  #define JUCE_BREAK_IN_DEBUGGER { __asm int 3 }
#endif
```

Note: I know I can just define JUCE\_NO\_INLINE\_ASM here to get around the issue, but that feels like its just kicking the can down the road… if other parts of JUCE are going to assume MAC=INTEL.  
(e.g.dsp code with SSE will trip up next)

is there any work being done in this area?  
has anyone got this working?

---

<div class="post-metadata">

**Author:** ![reuk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/reuk/32/21494_2.png) [@reuk](https://forum.juce.com/u/reuk)\
**Post date:** [December 13, 2020, 7:04pm UTC](https://forum.juce.com/t/cmake-build-failing-on-bigsur-apple-silicon/43229/2 "2020-12-13T19:04:40Z")

</div>

Please ensure you’re using a recent version of JUCE. It looks like your version is not up to date with the current master branch:

> <https://github.com/juce-framework/JUCE/blob/master/modules/juce_core/system/juce_PlatformDefs.h#L76>

---

<div class="post-metadata">

**Author:** ![thetechnobear](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/thetechnobear/32/704_2.png) [@thetechnobear](https://forum.juce.com/u/thetechnobear)\
**Post date:** [December 13, 2020, 7:13pm UTC](https://forum.juce.com/t/cmake-build-failing-on-bigsur-apple-silicon/43229/3 "2020-12-13T19:13:21Z")

</div>

wow, things moving fast in this area… I think I only pulled master about a week ago 🙂

thanks @reuk thats fixed it!!
