Skip to content

Building on M1 Mac #1247

@jordanrule

Description

@jordanrule

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:

  • The default download of Stack does not work, aarch64 requires ghcup to download a Stack that builds for the appropriate architecture (required for llvm-hs)
  • The default install location of libpng (homebrew) is now /opt/homebrew/include so it requires an additional wildcard check in make
  • Cryptonite does not build on lts-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 chains

Just 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.

Metadata

Metadata

Assignees

No one assigned

    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