kitten icon indicating copy to clipboard operation
kitten copied to clipboard

Build process failed with S-5159 code

Open fabasoad opened this issue 1 year ago • 0 comments

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 avatar Jan 09 '25 10:01 fabasoad