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

Project doesn't seem to compile with ghc 9.2.5 and stackage lts-20.1 #24

Open
OlaoluwaM opened this issue May 14, 2024 · 0 comments
Open

Comments

@OlaoluwaM
Copy link

Cloning the repo and running stack build results in the following build error

liquidhaskell > configure
liquidhaskell > [1 of 2] Compiling Main             ( /tmp/stack-a13cefa056494185/liquidhaskell-0.9.2.5.0/Setup.hs, /tmp/stack-a13cefa056494185/liquidhaskell-0.9.2.5.0/.stack-work/dist/x86_64-linux/ghc-9.2.5/setup/Main.o )
liquidhaskell > [2 of 2] Compiling StackSetupShim   ( /home/olaolu/.stack/setup-exe-src/setup-shim-6HauvNHV.hs, /tmp/stack-a13cefa056494185/liquidhaskell-0.9.2.5.0/.stack-work/dist/x86_64-linux/ghc-9.2.5/setup/StackSetupShim.o )
liquidhaskell > Linking /tmp/stack-a13cefa056494185/liquidhaskell-0.9.2.5.0/.stack-work/dist/x86_64-linux/ghc-9.2.5/setup/setup ...
liquidhaskell > Configuring liquidhaskell-0.9.2.5.0...
liquidhaskell > build with ghc-9.2.5
liquidhaskell > Preprocessing library for liquidhaskell-0.9.2.5.0..
liquidhaskell > Building library for liquidhaskell-0.9.2.5.0..
liquidhaskell > [ 1 of 41] Compiling Data.Bits_LHAssumptions
liquidhaskell > malloc(): unaligned tcache chunk detected
Progress 1/4

Error: [S-7282]
       Stack failed to execute the build plan.
       
       While executing the build plan, Stack encountered the error:
       
       [S-7011]
       While building package liquidhaskell-0.9.2.5.0 (scroll up to its section to see the error) using:
       /tmp/stack-a13cefa056494185/liquidhaskell-0.9.2.5.0/.stack-work/dist/x86_64-linux/ghc-9.2.5/setup/setup --verbose=1 --builddir=.stack-work/dist/x86_64-linux/ghc-9.2.5 build --ghc-options " -fdiagnostics-color=always"
       Process exited with code: ExitFailure (-6) 

Running stack build --fast --ghc-options '-j=1' results in

liquidhaskell > configure
liquidhaskell > [1 of 2] Compiling Main             ( /tmp/stack-5d5d4ec97bdca0f2/liquidhaskell-0.9.2.5.0/Setup.hs, /tmp/stack-5d5d4ec97bdca0f2/liquidhaskell-0.9.2.5.0/.stack-work/dist/x86_64-linux/ghc-9.2.5/setup/Main.o )
liquidhaskell > [2 of 2] Compiling StackSetupShim   ( /home/olaolu/.stack/setup-exe-src/setup-shim-6HauvNHV.hs, /tmp/stack-5d5d4ec97bdca0f2/liquidhaskell-0.9.2.5.0/.stack-work/dist/x86_64-linux/ghc-9.2.5/setup/StackSetupShim.o )
liquidhaskell > Linking /tmp/stack-5d5d4ec97bdca0f2/liquidhaskell-0.9.2.5.0/.stack-work/dist/x86_64-linux/ghc-9.2.5/setup/setup ...
liquidhaskell > Configuring liquidhaskell-0.9.2.5.0...
liquidhaskell > build with ghc-9.2.5
liquidhaskell > Preprocessing library for liquidhaskell-0.9.2.5.0..
liquidhaskell > Building library for liquidhaskell-0.9.2.5.0..
liquidhaskell > [ 1 of 41] Compiling Data.Bits_LHAssumptions
liquidhaskell > Unknown flag: -B
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > [ 2 of 41] Compiling Data.Int_LHAssumptions
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > [ 3 of 41] Compiling Data.Tuple_LHAssumptions
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > [ 4 of 41] Compiling Data.Word_LHAssumptions
liquidhaskell > [ 5 of 41] Compiling Foreign.Ptr_LHAssumptions
liquidhaskell > [ 6 of 41] Compiling GHC.Float_LHAssumptions
liquidhaskell > [ 7 of 41] Compiling GHC.Int_LHAssumptions
liquidhaskell > [ 8 of 41] Compiling Foreign.C.Types_LHAssumptions
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > 
liquidhaskell > **** LIQUID: SAFE (0 constraints checked) **************************************
liquidhaskell > [ 9 of 41] Compiling GHC.Maybe_LHAssumptions
liquidhaskell > [10 of 41] Compiling GHC.Num_LHAssumptions
liquidhaskell > [11 of 41] Compiling GHC.Types_LHAssumptions
liquidhaskell > [37 of 41] Compiling GHC.Word_LHAssumptions
liquidhaskell > [38 of 41] Compiling Liquid.Prelude.Real_LHAssumptions
liquidhaskell > [39 of 41] Compiling Liquid.Prelude.Totality_LHAssumptions
liquidhaskell > [40 of 41] Compiling LiquidHaskell
liquidhaskell > 
liquidhaskell > <no location info>: error: ExitFailure 1
Progress 1/4

Error: [S-7282]
       Stack failed to execute the build plan.
       
       While executing the build plan, Stack encountered the error:
       
       [S-7011]
       While building package liquidhaskell-0.9.2.5.0 (scroll up to its section to see the error) using:
       /tmp/stack-5d5d4ec97bdca0f2/liquidhaskell-0.9.2.5.0/.stack-work/dist/x86_64-linux/ghc-9.2.5/setup/setup --verbose=1 --builddir=.stack-work/dist/x86_64-linux/ghc-9.2.5 build --ghc-options " -fdiagnostics-color=always"
       Process exited with code: ExitFailure 1 

This is with ghc 9.2.5 and stackage lts-20.1

@OlaoluwaM OlaoluwaM changed the title Project doesn't seem to compile with stack 9.2.5 Project doesn't seem to compile with ghc 9.2.5 and stackage lts-20.1 May 14, 2024
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

No branches or pull requests

1 participant