This repository has been archived by the owner on Apr 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 175
I followed all the instructions mentioned in "Installing ghc-mod" with stack but it had some issues #945
Comments
I've faced similar issue on NixOS 18.09. $ stack install ghc-mod --no-copy-bins
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for ghc-mod-5.8.0.0:
Cabal-2.4.1.0 from stack configuration does not match >=1.18 && <1.25 (latest matching version is 1.24.2.0)
base-4.12.0.0 from stack configuration does not match >=4.6.0.1 && <4.10 (latest matching version is 4.9.1.0)
cabal-helper must match <0.8 && >=0.7.3.0, but the stack configuration has no specified version (latest matching version is 0.7.3.0)
djinn-ghc must match <0.1 && >=0.0.2.2, but the stack configuration has no specified version (latest matching version is 0.0.2.3)
extra-1.6.14 from stack configuration does not match <1.6 && >=1.4 (latest matching version is 1.5.3)
ghc-8.6.3 from stack configuration does not match >=7.6 && <8.2
ghc-syb-utils must match <0.3 && >=0.2.3, but the stack configuration has no specified version (latest matching version is 0.2.3.3)
haskell-src-exts-1.20.3 from stack configuration does not match <1.20 && >=1.18 (latest matching version is 1.19.1)
hlint-2.1.11 from stack configuration does not match <2.1 && >=2.0.8 (latest matching version is 2.0.15)
monad-journal-0.8.1 from stack configuration does not match <0.8 && >=0.4 (latest matching version is 0.7.2)
optparse-applicative-0.14.3.0 from stack configuration does not match >=0.13.0.0 && <0.14 (latest matching version is 0.13.2.0)
temporary-1.3 from stack configuration does not match <1.3 && >=1.2.0.3 (latest matching version is 1.2.1.1)
needed since ghc-mod is a build target.
Some different approaches to resolving this:
* Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some working build configuration. This can be convenient when dealing with
many complicated constraint errors, but results may be unpredictable.
* Build requires unattainable version of base. Since base is a part of GHC, you most likely need to use a different GHC version with the matching base.
Plan construction failed. |
I get the same error as @p-alik :
happens on Arch Linux x86_64, Kernel: 5.5.5-arch1-1 |
@Quoteme |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
`shubham@shubham:~$ stack install ghc-mod
WARNING: Ignoring out of range dependency (allow-newer enabled): Cabal-2.4.1.0. ghc-mod requires: >=1.18 && <1.25
WARNING: Ignoring out of range dependency (allow-newer enabled): base-4.12.0.0. ghc-mod requires: >=4.6.0.1 && <4.10
WARNING: Ignoring out of range dependency (allow-newer enabled): Cabal-2.4.1.0. cabal-helper requires: >=1.14 && <1.25
WARNING: Ignoring out of range dependency (allow-newer enabled): process-1.6.3.0. cabal-helper requires: >=1.1.0.1 && <1.5
WARNING: Ignoring out of range dependency (allow-newer enabled): temporary-1.3. cabal-helper requires: <1.3 && >=1.2.0.4
WARNING: Ignoring out of range dependency (allow-newer enabled): extra-1.6.14. ghc-mod requires: <1.6 && >=1.4
WARNING: Ignoring out of range dependency (allow-newer enabled): ghc-8.6.3. ghc-mod requires: >=7.6 && <8.2
WARNING: Ignoring out of range dependency (allow-newer enabled): ghc-8.6.3. ghc-syb-utils requires: >=7.0 && <8.4
WARNING: Ignoring out of range dependency (allow-newer enabled): haskell-src-exts-1.20.3. ghc-mod requires: <1.20 && >=1.18
WARNING: Ignoring out of range dependency (allow-newer enabled): hlint-2.1.11. ghc-mod requires: <2.1 && >=2.0.8
WARNING: Ignoring out of range dependency (allow-newer enabled): monad-journal-0.8.1. ghc-mod requires: <0.8 && >=0.4
WARNING: Ignoring out of range dependency (allow-newer enabled): optparse-applicative-0.14.3.0. ghc-mod requires: >=0.13.0.0 && <0.14
WARNING: Ignoring out of range dependency (allow-newer enabled): temporary-1.3. ghc-mod requires: <1.3 && >=1.2.0.3
transformers-base-0.4.5.2: configure
transformers-base-0.4.5.2: build
cabal-helper-0.7.3.0: configure
Could not find custom-setup dep: Cabal
ghc-syb-utils-0.2.3.3: configure
djinn-ghc-0.0.2.3: download
ghc-syb-utils-0.2.3.3: build
djinn-ghc-0.0.2.3: configure
transformers-base-0.4.5.2: copy/register
djinn-ghc-0.0.2.3: build
djinn-ghc-0.0.2.3: copy/register
Progress 4/12
-- While building package ghc-syb-utils-0.2.3.3 using:
/home/shubham/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Logs have been written to: /home/shubham/.stack/global-project/.stack-work/logs/ghc-syb-utils-0.2.3.3.log
-- While building package cabal-helper-0.7.3.0 using:
/home/shubham/.stack/programs/x86_64-linux/ghc-8.6.3/bin/ghc --make -odir /tmp/stack10061/cabal-helper-0.7.3.0/.stack-work/dist/x86_64-linux/Cabal-2.4.0.1/setup -hidir /tmp/stack10061/cabal-helper-0.7.3.0/.stack-work/dist/x86_64-linux/Cabal-2.4.0.1/setup -i -i. -clear-package-db -global-package-db -package-db=/home/shubham/.stack/snapshots/x86_64-linux/lts-13.1/8.6.3/pkgdb -package-db=/home/shubham/.stack/global-project/.stack-work/install/x86_64-linux/lts-13.1/8.6.3/pkgdb -hide-all-packages -package=Cabal -package-id=base-4.12.0.0 -package-id=containers-0.6.0.1 -package-id=directory-1.3.3.0 -package-id=filepath-1.4.2.1 -package-id=process-1.6.3.0 -package-id=template-haskell-2.14.0.0 -package-id=transformers-0.5.5.0 -optP-include -optP/tmp/stack10061/cabal-helper-0.7.3.0/.stack-work/dist/x86_64-linux/Cabal-2.4.0.1/setup/setup_macros.h /tmp/stack10061/cabal-helper-0.7.3.0/Setup.hs /home/shubham/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -main-is StackSetupShim.mainOverride -o /tmp/stack10061/cabal-helper-0.7.3.0/.stack-work/dist/x86_64-linux/Cabal-2.4.0.1/setup/setup -threaded
Process exited with code: ExitFailure 1
Logs have been written to: /home/shubham/.stack/global-project/.stack-work/logs/cabal-helper-0.7.3.0.log
shubham@shubham:~$
`
Is it incompatible? I also added extra deps in global stack.yaml
The text was updated successfully, but these errors were encountered: