Skip to content

Failed to compile a sanity check #39

@alnvnjr

Description

@alnvnjr

Hi - After months of successful deploys Heroku is complaining about a sanity check. In past deploys stack used a sandboxed ghc but here it seems stack is looking for and not finding a specific ghc. Does this error look familiar? I can provide more info as needed. Thank you for your help!

remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Haskell app detected
remote: -----> 2020-07-28_15:37:56 Starting...
remote: -----> 2020-07-28_15:37:56 Exporting config vars
remote: -----> 2020-07-28_15:37:56 Restoring 6.0.0a files from cache
remote: -----> 2020-07-28_15:37:56 Restoring stack-2.3.1
remote: -----> 2020-07-28_15:37:56 Substituting stack vars
remote: -----> 2020-07-28_15:37:56 Restoring .stack-work
remote: -----> 2020-07-28_15:37:59 Running stack
remote: The GHC located at /tmp/codon/tmp/cache/.stack/programs/x86_64-linux/ghc-8.8.3/bin/ghc-8.8.3 failed to compile a sanity check. Please see:
remote: 
remote:     http://docs.haskellstack.org/en/stable/install_and_upgrade/
remote: 
remote: for more information. Exception was:
remote: Received ExitFailure 127 when running
remote: Raw command: /tmp/codon/tmp/cache/.stack/programs/x86_64-linux/ghc-8.8.3/bin/ghc-8.8.3 /tmp/stack-sanity-check-29d325f04e9a0571/Main.hs -no-user-package-db
remote: Run from: /tmp/stack-sanity-check-29d325f04e9a0571/
remote: Standard error:
remote: 
remote: /tmp/codon/tmp/cache/.stack/programs/x86_64-linux/ghc-8.8.3/bin/ghc-8.8.3: 9: exec: /app/tmp/cache/.stack/programs/x86_64-linux/ghc-8.8.3/lib/ghc-8.8.3/bin/ghc: not found
remote: 
remote:  !     Push rejected, failed to compile Haskell app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions