Skip to content

Update building instructions for Apple Silicon #3611

Closed
@palinatolmach

Description

@palinatolmach

The README instructions on how to build Haskell Backend on Apple Silicon in seem to be outdated. The following workaround outlined in the Apple Silicon section (and, possibly, macOS section—please advise on that) should be updated or removed:

macOS

Currently, LLVM 13 from Homebrew installs an incompatible version of
install_name_tool, which breaks the Haskell backend build on macOS. To resolve
this, uninstall llvm and install llvm@12 from Homebrew, then build from
scratch.

Apple Silicon

If you are building the project on an Apple Silicon machine, a temporary
workaround is necessary to install a new enough version of GHC with support for
ARM64 Darwin. To do so, follow the instructions in this
comment
.
The command-line flags for stack should then be specified everywhere an
execution of stack is required. For make invocations in this project, set
the environment variable STACK_BUILD_OPTS=--compiler ghc-8.10.7 --system-ghc.

When stack and ghc merge their full support for ARM64 Darwin in future
releases, it should be possible to remove this workaround.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions