Open jordanrule opened 1 year ago
Thanks for the issue! I got a new Apple M1 laptop recently, ran into all the build issues mentioned above.
After a day of debugging, I'm close to getting Dex to build on Apple M1:
brew install llvm@15
and https://github.com/llvm-hs/llvm-hs/tree/llvm-15resolver: lts-20.15
(GHC 9.2.7) in stack-macos.yaml
Current status: upgrading to GHC 9.2.7 has resulted in some dex-lang compilation errors, probably due to language changes:
I'll plan to follow-up here within a week. If the final fixes aren't too tricky, I should be able to share a pull request with instructions.
In-progress fix at https://github.com/google-research/dex-lang/pull/1264. Dex builds on Apple M1 and simple examples run!
Requires LLVM 15: brew install llvm@15
. Tests aren't all passing yet, working on fixing them next.
Just wanted to leave a few notes on building the project on an M1 Mac (aarch64) should you decide to support the architecture in the future:
ghcup
to download a Stack that builds for the appropriate architecture (required for llvm-hs)/opt/homebrew/include
so it requires an additional wildcard check in makelts-18.23
for M1, (see here) - I tried upgrading to a later version of GHC but I don't know enough about this project or Haskell build in general to fix the dependency chainsJust posting this in case it helps someone else or I missed something, as I would like to return to the project and look for possible contributions once it is working.