1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me

Showing 1-11 of 11 messages
1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Thomas Løcke 24/05/18 06:22
Hi all

Since upgrading from 1.6.5 to 1.7.1 stack no longer works. When I try to build my projects, all I get is a "I don't know how to install GHC on your system configuration, please install manually" message.

I've been using stack for a little over a year, and this is a first for me. I've no idea how to fix it.

I use Slackware 14.2 on all my systems. The problem persists on all systems.

Any and all advice is more than welcome.  :o)
Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Alexander Bondarenko 24/05/18 06:35
Did a quick code search and traced the culprit to https://github.com/commercialhaskell/stack/blob/28cb09e756ec19dd4acae4f1069db61784bc8aae/src/Stack/Setup.hs#L444

Try running `stack setup --verbose`, maybe it'll give you (and us) a hint about what exactly it tries to find or how it detects your system now and at 1.6.

--
You received this message because you are subscribed to the Google Groups "haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskel...@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/2a7f49c2-bc0f-405d-8269-92df30a73621%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Thomas Løcke 24/05/18 06:53
This is the output I get with 1.6.5:

thomas@ultra27:~/vcs/my-project$ stack setup --verbose
Version 1.6.5, Git revision 24ab0d6ff07f28276e082c3ce74dfdeb1a2ca9e9 (5514 commits) x86_64 hpack-0.20.0
2018-05-24 15:41:23.618219: [debug] Checking for project config at: /home/thomas/vcs/my-project/stack.yaml
@(Stack/Config.hs:842:9)
2018-05-24 15:41:23.618430: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:868:13)
2018-05-24 15:41:23.619983: [debug] Decoding build plan from: /home/thomas/.stack/build-plan/lts-11.10.yaml
@(Stack/Snapshot.hs:150:5)
2018-05-24 15:41:23.620056: [debug] Trying to decode /home/thomas/.stack/build-plan-cache/lts-11.10.cache
@(Data/Store/VersionTagged.hs:66:5)
2018-05-24 15:41:23.626258: [debug] Success decoding /home/thomas/.stack/build-plan-cache/lts-11.10.cache
@(Data/Store/VersionTagged.hs:70:13)
2018-05-24 15:41:23.626698: [debug] Run process: /sbin/ldconfig -p
@(System/Process/Log.hs:37:3)
2018-05-24 15:41:23.630167: [debug] Process finished in 3ms: /sbin/ldconfig -p
@(System/Process/Log.hs:44:3)
2018-05-24 15:41:23.630393: [debug] Run process: /usr/bin/gcc -v
@(System/Process/Log.hs:37:3)
2018-05-24 15:41:23.636082: [debug] Process finished in 5ms: /usr/bin/gcc -v
@(System/Process/Log.hs:44:3)
2018-05-24 15:41:23.636184: [debug] PIE enabled
@(Stack/Setup.hs:589:17)
2018-05-24 15:41:23.637257: [debug] Did not find shared library libtinfo.so.5
@(Stack/Setup.hs:579:38)
2018-05-24 15:41:23.637379: [debug] Did not find shared library libtinfo.so.6
@(Stack/Setup.hs:579:38)
2018-05-24 15:41:23.637637: [debug] Did not find shared library libncursesw.so.6
@(Stack/Setup.hs:579:38)
2018-05-24 15:41:23.637728: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output
@(Stack/Setup.hs:565:29)
2018-05-24 15:41:23.637858: [debug] Did not find shared library libgmp.so.3
@(Stack/Setup.hs:579:38)
2018-05-24 15:41:23.637922: [debug] Using standard GHC build
@(Stack/Setup.hs:617:9)
2018-05-24 15:41:23.638499: [debug] Performing a sanity check on: /home/thomas/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc
@(Stack/Setup.hs:1587:5)
2018-05-24 15:41:23.638648: [debug] Run process: /home/thomas/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc /tmp/stack-sanity-check23909/Main.hs -no-user-package-db
@(System/Process/Log.hs:37:3)
2018-05-24 15:41:24.270434: [debug] Process finished in 631ms: /home/thomas/.stack/programs/x86_64-linux/ghc-8.2.2/bin/ghc /tmp/stack-sanity-check23909/Main.hs -no-user-package-db
@(System/Process/Log.hs:44:3)
2018-05-24 15:41:24.271186: [info] stack will use a sandboxed GHC it installed
@(Stack/SetupCmd.hs:131:14)
2018-05-24 15:41:24.271261: [info] For more information on paths, see 'stack path' and 'stack exec env'
@(Stack/SetupCmd.hs:133:5)
2018-05-24 15:41:24.271347: [info] To use this GHC and packages outside of a project, consider using:
@(Stack/SetupCmd.hs:134:5)
2018-05-24 15:41:24.271424: [info] stack ghc, stack ghci, stack runghc, or stack exec
@(Stack/SetupCmd.hs:135:5)

and this is what I get on the same project with 1.7.1:

thomas@ultra27:~/vcs/my-project$ stack setup --verbose
Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 commits) x86_64 hpack-0.28.2
2018-05-24 15:40:39.662808: [debug] Checking for project config at: /home/thomas/vcs/my-project/stack.yaml
@(src/Stack/Config.hs:850:9)
2018-05-24 15:40:39.663624: [debug] Loading project config file stack.yaml
@(src/Stack/Config.hs:876:13)
2018-05-24 15:40:39.666966: [debug] Decoding build plan from: /home/thomas/.stack/build-plan/lts-11.10.yaml
@(src/Stack/Snapshot.hs:164:5)
2018-05-24 15:40:39.667073: [debug] Trying to decode /home/thomas/.stack/build-plan-cache/lts-11.10.cache
@(src/Stack/Snapshot.hs:156:32)
2018-05-24 15:40:39.674519: [debug] Success decoding /home/thomas/.stack/build-plan-cache/lts-11.10.cache
@(src/Stack/Snapshot.hs:156:32)
2018-05-24 15:40:39.675266: [debug] Run process: /sbin/ldconfig -p
@(src/Stack/Setup.hs:580:22)
2018-05-24 15:40:39.683033: [debug] Process finished in 8ms: /sbin/ldconfig -p
@(src/Stack/Setup.hs:580:22)
2018-05-24 15:40:39.684646: [debug] Did not find shared library libtinfo.so.5
@(src/Stack/Setup.hs:603:38)
2018-05-24 15:40:39.684855: [debug] Did not find shared library libtinfo.so.6
@(src/Stack/Setup.hs:603:38)
2018-05-24 15:40:39.684992: [debug] Did not find shared library libncursesw.so.6
@(src/Stack/Setup.hs:603:38)
2018-05-24 15:40:39.685106: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output
@(src/Stack/Setup.hs:589:29)
2018-05-24 15:40:39.685252: [debug] Did not find shared library libgmp.so.3
@(src/Stack/Setup.hs:603:38)
2018-05-24 15:40:39.685324: [debug] Potential GHC builds: 
@(src/Stack/Setup.hs:632:9)
2018-05-24 15:40:39.685393: [debug] Found already installed GHC builds: 
@(src/Stack/Setup.hs:458:13)
I don't know how to install GHC on your system configuration, please install manually

:o)
Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Simon Jakobi 24/05/18 07:18
Hi Thomas,

in case you can install ghc via your package manager or other means, you can use the system-ghc option to make stack use that one:


Hope that helps,
Simon
Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Thomas Løcke 24/05/18 07:34
Hi Simon

The newest GHC I can get with my system package manager is 7.10.3, so sadly not a solution.


Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Dan Burton 24/05/18 09:26
I don't think this commit explains the issue you're experiencing, but it highlights the logic that results in what you're seeing:

https://github.com/commercialhaskell/stack/commit/be415545029d1bcafddb9fc13b8283e3d1b1abb1#diff-4968f87e674615592e572f2ec593e5b0

cc Manny, any comment on this issue?
Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Alexander Bondarenko 25/05/18 05:48
Would it help if you install ncursesw library it seeks?
Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Thomas Løcke 27/05/18 22:54
I don't think so, as that library is also missing from 1.6.5, which works just fine. Unless 1.7.1 is using ncursesw in some new and "weird" way?


fredag den 25. maj 2018 kl. 14.48.04 UTC+2 skrev Alexander Bondarenko:
Would it help if you install ncursesw library it seeks?


Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Alexander Bondarenko 28/05/18 08:56
My guess is that something trips up the detection. Maybe adding one the libraries it seeks would help it to decide.

--
You received this message because you are subscribed to the Google Groups "haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskel...@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/81c18066-08c3-4bda-85f1-cf681d17f3bd%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me Thomas Løcke 23/07/18 07:46
I can't make this work, and now that HIE requires stack >= 1.7.1 this is becoming untenable.

As far as I can see 1.6.5 was statically linked, whereas 1.7.1 is dynamically linked. Would it be possible to add a statically linked stack executable to https://docs.haskellstack.org/en/stable/README/#how-to-install, so it'll work for those of us who are not using the same distro as the stack developers?

:o)


mandag den 28. maj 2018 kl. 17.56.00 UTC+2 skrev Alexander Bondarenko:
My guess is that something trips up the detection. Maybe adding one the libraries it seeks would help it to decide.

Re: 1.7.1 drops a "I don't know how to install GHC on your system configuration..." on me David Baynard 23/07/18 08:00
This is being tracked in the following issues:

https://github.com/commercialhaskell/stack/issues/2387

Upstream ghc did not support the distro on which static builds were produced. This should be fixed soon.