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

241 views
Skip to first unread message

Thomas Løcke

unread,
May 24, 2018, 9:22:15 AM5/24/18
to haskell-stack
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)

IC Rainbow

unread,
May 24, 2018, 9:35:59 AM5/24/18
to Thomas Løcke, haskell-stack
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 haskell-stac...@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.

Thomas Løcke

unread,
May 24, 2018, 9:53:19 AM5/24/18
to ic....@gmail.com, haskel...@googlegroups.com
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)

Simon Jakobi

unread,
May 24, 2018, 10:18:43 AM5/24/18
to Thomas Løcke, ic....@gmail.com, haskell-stack
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

To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscribe@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.

--
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 haskell-stack+unsubscribe@googlegroups.com.

To post to this group, send email to haskel...@googlegroups.com.

Thomas Løcke

unread,
May 24, 2018, 10:34:14 AM5/24/18
to simon....@googlemail.com, ic....@gmail.com, haskel...@googlegroups.com
Hi Simon

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


To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stac...@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.

--
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 haskell-stac...@googlegroups.com.

To post to this group, send email to haskel...@googlegroups.com.

--
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 haskell-stac...@googlegroups.com.

To post to this group, send email to haskel...@googlegroups.com.

Dan Burton

unread,
May 24, 2018, 12:26:38 PM5/24/18
to Thomas Løcke, simon....@googlemail.com, ic....@gmail.com, haskell-stack, Emanuel Borsboom
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?

-- Dan Burton

On Thu, May 24, 2018 at 7:34 AM, Thomas Løcke <thomas....@gmail.com> wrote:
Hi Simon

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

To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscribe@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.

--
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 haskell-stack+unsubscribe@googlegroups.com.

To post to this group, send email to haskel...@googlegroups.com.

--
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 haskell-stack+unsubscribe@googlegroups.com.

--
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 haskell-stack+unsubscribe@googlegroups.com.

To post to this group, send email to haskel...@googlegroups.com.

IC Rainbow

unread,
May 25, 2018, 8:48:04 AM5/25/18
to Thomas Løcke, haskel...@googlegroups.com
Would it help if you install ncursesw library it seeks?

Thomas Løcke

unread,
May 28, 2018, 1:54:08 AM5/28/18
to haskell-stack
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?

IC Rainbow

unread,
May 28, 2018, 11:56:00 AM5/28/18
to Thomas Løcke, haskell-stack
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 haskell-stac...@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.

Thomas Løcke

unread,
Jul 23, 2018, 10:46:00 AM7/23/18
to haskell-stack
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)

David Baynard

unread,
Jul 23, 2018, 11:00:48 AM7/23/18
to haskell-stack
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.
Reply all
Reply to author
Forward
0 new messages