Open eleanor-em opened 3 years ago
HI! Thanks for the detailed report.
Might this be the same issue as in https://github.com/haskell-gi/haskell-gi/issues/239? It seems weird though because that suggests an old version of the system gobject package, but if you're running Ubuntu 20.04 it should be fairly recent.
Hi! Thanks for the response. I checked my version of gobject and it was 2.64.3 (which seems quite recent).
I tried first switching to ghc 8.10.2, then using the nightly resolver by editing stack.yaml
in the cloned repository as per the linked issue:
resolver: nightly-2020-08-27
I was told off about something to do with Cabal, and it said to also add the below to extra-deps
(which I did):
- Cabal-3.2.0.0@sha256:d0d7a1f405f25d0000f5ddef684838bc264842304fd4e7f80ca92b997b710874,27320
Installing failed at first:
Cabal > [241 of 241] Compiling Distribution.Simple
massiv-io > configure
massiv-io > Configuring massiv-io-0.3.0.1...
massiv-io > build
massiv-io > Preprocessing library for massiv-io-0.3.0.1..
massiv-io > Building library for massiv-io-0.3.0.1..
massiv-io > [ 1 of 14] Compiling Data.Massiv.Array.IO.Base
massiv-io >
massiv-io > /tmp/stack-75929ce1bb342f88/massiv-io-0.3.0.1/src/Data/Massiv/Array/IO/Base.hs:315:6: error:
massiv-io > Not in scope: type constructor or class ‘A.Sz’
massiv-io > Perhaps you meant ‘A.S’ (imported from Data.Massiv.Array)
massiv-io > Module ‘Data.Massiv.Array’ does not export ‘Sz’.
massiv-io > |
massiv-io > 315 | => A.Sz ix
massiv-io > | ^^^^
massiv-io >
Cabal > copy/register
Cabal > Installing library in /home/eleanor/.stack/snapshots/x86_64-linux-tinfo6/a373614fa0f477f3bc9bc8f6aef1fb44ffe035428a177d1a3de1fa21a362a784/8.10.2/lib/x86_64-linux-ghc-8.10.2/Cabal-3.2.0.0-IWfC34dGzefL7vhtitPsXA
Cabal > Registering library for Cabal-3.2.0.0..
-- While building package massiv-io-0.3.0.1 using:
/home/eleanor/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.2.0.0_ghc-8.10.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.2.0.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Progress 84/115
If I try with the version in the link (nightly-2019-07-07
) I get a similar but different error while building happy
.
Really not sure what's going on!
(And, if I remove the Cabal line and retry, I get the same gi-pango
error.)
OK! Yeah if you change the Stack resolver I think it might be a world of pain with all those extra-deps. I haven't run with Stack in a long time, so I'm a bit out of the loop and not much help. :disappointed:
I'll see if I can bump the Stack resolver when I get some time. I'm suspecting it's the Haskell packages that are outdated and your system dependencies that are "too new", but I'm not sure. Maybe bumping these versions will help.
Describe the bug Following the instructions with Ubuntu 20.04, I get a build failure without much extra useful information.
To Reproduce Steps to reproduce the behavior:
cd
to the directoryapt
stack install
Result (with the beginning parts snipped)
If I retry, I get this:
Desktop (please complete the following information):