Skip to content

Doesn't build on macOS arm64 #4567

Description

@ad-si

To Reproduce

$ stack update
$ git clone https://github.com/purescript/purescript
$ cd purescript
$ make build
STACK_YAML="stack.yaml" stack build purescript
Getting the project-level configuration file from the STACK_YAML environment variable.
Linking /Users/adrian/dotfiles/home/stack/setup-exe-cache/aarch64-osx/tmp-Cabal-simple_w2MFVN35_3.6.3.0_ghc-9.2.8 ...
ld64.lld: error: unknown argument '--gc-sections'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`gcc' failed in phase `Linker'. (Exit code: 1)
Getting the project-level configuration file from the STACK_YAML environment variable.

Error: [S-6374]
       While building simple Setup.hs (scroll up to its section to see the error) using:
       /Users/adrian/dotfiles/home/stack/programs/aarch64-osx/ghc-9.2.8/bin/ghc-9.2.8 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-3.6.3.0 /Users/adrian/dotfiles/home/stack/setup-exe-src/setup-w2MFVN35.hs /Users/adrian/dotfiles/home/stack/setup-exe-src/setup-shim-w2MFVN35.hs -o /Users/adrian/dotfiles/home/stack/setup-exe-cache/aarch64-osx/tmp-Cabal-simple_w2MFVN35_3.6.3.0_ghc-9.2.8
       Process exited with code: ExitFailure 1
make: *** [build] Error 1

Expected behavior

Should build the compiler.

PureScript version

Latest commit on master

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions