Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build process failed with S-5159 code #224

Open
fabasoad opened this issue Jan 9, 2025 · 0 comments · May be fixed by #225
Open

Build process failed with S-5159 code #224

fabasoad opened this issue Jan 9, 2025 · 0 comments · May be fixed by #225

Comments

@fabasoad
Copy link

fabasoad commented Jan 9, 2025

Steps to reproduce

  • Run commands below.
stack setup --stack-yaml stack.yaml
stack build --stack-yaml stack.yaml

Expected behavior

It should passed successfully

Actual behavior

Error message is shown:

Error: [S-5159]
       The GHC located at /Users/runner/.stack/programs/aarch64-osx/ghc-9.0.2/bin/ghc-9.0.2 failed
       to compile a sanity check. Please see:
       http://docs.haskellstack.org/en/stable/install_and_upgrade/ for more information. Stack
       encountered the following error:
       
       Received ExitFailure 1 when running
       Raw command: /Users/runner/.stack/programs/aarch64-osx/ghc-9.0.2/bin/ghc-9.0.2 /private/var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/stack-sanity-check-c11d1e9cdd93c68e/Main.hs -no-user-package-db -hide-all-packages "-package base" "-package Cabal"
       Run from: /private/var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/stack-sanity-check-c11d1e9cdd93c68e/
       Standard output:
       
       [1 of 1] Compiling Main             ( /private/var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/stack-sanity-check-c11d1e9cdd93c68e/Main.hs, /private/var/folders/ml/x_tvfgn50_s7p67dm1ypcqqm0000gn/T/stack-sanity-check-c11d1e9cdd93c68e/Main.o )
       Standard error:
       
       
       <no location info>: error:
           Warning: Couldn't figure out LLVM version!
                    Make sure you have installed LLVM between [9 and 13)
       ghc-9.0.2: could not execute: opt
@fabasoad fabasoad linked a pull request Jan 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant