| 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. -- |
| 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:
and this is what I get on the same project with 1.7.1:
: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 To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAHJ5xP%3DR_DA-Xu5LS5MR_SMC2Mg4jChzSJV3Qy0SBCLQ5FvPvA%40mail.gmail.com. |
| 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. To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAGtp2Si%3DJ3_Yp0U_Z%3DQ5CQco3OHZVGUGnfjSWeNsTfe85UrWSA%40mail.gmail.com. |
| 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? -- Dan Burton To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAHJ5xPm2DGLL5sK8Vp5VufvgJ%2BR0_wHormCtfQimn3im%2By_j1w%40mail.gmail.com. |
| 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?
|
| 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. --To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/81c18066-08c3-4bda-85f1-cf681d17f3bd%40googlegroups.com. |
| 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)
|
| 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: Upstream ghc did not support the distro on which static builds were produced. This should be fixed soon. |