# Hashlink seg fault MacOS (Apple Silicon)

**URL:** https://community.haxe.org/t/hashlink-seg-fault-macos-apple-silicon/4225
**Category:** Haxe
**Created:** [April 28, 2024, 5:31am UTC](https://community.haxe.org/t/hashlink-seg-fault-macos-apple-silicon/4225 "2024-04-28T05:31:51Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![okaybmd](https://community.haxe.org/user_avatar/community.haxe.org/okaybmd/32/2355_2.png) [@okaybmd](https://community.haxe.org/u/okaybmd)
#### Post date: [June 3, 2024, 2:21pm UTC](https://community.haxe.org/t/hashlink-seg-fault-macos-apple-silicon/4225/4 "2024-06-03T14:21:12Z")

</div>

I got the exact same issue, ran lldb and came to a similar result, it also said

> EXC\_BAD\_ACCESS (code=1, address=0xffffffffffffffff)

but different info on next line (and no jit info). It turns out, there was NOT related to jit at all. To fix this, you need to compile HashLink again, using the Intel architecture. Full steps here (works great for your current setup, since you already have Homebrew and HL versions installed, even if they don’t work as expected, i.e. you will install intel versions on the same machine alongside the current ones):

> [@Compiling HashLink on macOS Apple Silicon](https://community.haxe.org/t/compiling-hashlink-on-macos-apple-silicon/3150/5):
>
> Hi! I also managed to build hl for my Mac: MacBook Air with M1 processor, macOS Sonoma OS (14.5). I’m leaving here for posterity, full steps, compiled from other sources as well (since those needed to be adjusted for Sonoma anyway). Please note that this setup works after I already have a regular version of homebrew installed, and a hl compiled (that does NOT work), however, this way is easier because you don’t need to make any edits to flags (as @cpimhoff is saying above). Open a NEW termin…

---

_[View the full topic](https://community.haxe.org/t/hashlink-seg-fault-macos-apple-silicon/4225)._
