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.granv...@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.
>
>
> Den tor. 24. maj 2018 kl. 16.18 skrev 'Simon Jakobi' via haskell-stack <
> haskell-stack@googlegroups.com>:
>
>> 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:
>>
>> https://docs.haskellstack.org/en/latest/yaml_configuration/#system-ghc
>>
>> Hope that helps,
>> Simon
>>
>> 2018-05-24 15:53 GMT+02:00 Thomas Løcke <thomas.granv...@gmail.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)
>>>
>>> Den tor. 24. maj 2018 kl. 15.35 skrev IC Rainbow <ic.r...@gmail.com>:
>>>
>>>> Did a quick code search and traced the culprit to https://github.com/
>>>> commercialhaskell/stack/blob/28cb09e756ec19dd4acae4f1069db6
>>>> 1784bc8aae/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.
>>>>
>>>> On Thu, May 24, 2018 at 4:22 PM Thomas Løcke <thomas.granv...@gmail.com>
>>>> wrote:
>>>>
>>>>> 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)
>>>>>
>>>>> --
>>>>> 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+unsubscr...@googlegroups.com.
>>>>> To post to this group, send email to haskell-stack@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
>>>>> <https://groups.google.com/d/msgid/haskell-stack/2a7f49c2-bc0f-405d-8269-92df30a73621%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> 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+unsubscr...@googlegroups.com.
>>> To post to this group, send email to haskell-stack@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/haskell-stack/CAHJ5xP%3DR_DA-Xu5LS5MR_
>>> SMC2Mg4jChzSJV3Qy0SBCLQ5FvPvA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/haskell-stack/CAHJ5xP%3DR_DA-Xu5LS5MR_SMC2Mg4jChzSJV3Qy0SBCLQ5FvPvA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to haskell-stack@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/haskell-stack/CAGtp2Si%3DJ3_Yp0U_Z%3DQ5CQco3OHZVGUGnfjSWeNsTfe85U
>> rWSA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/haskell-stack/CAGtp2Si%3DJ3_Yp0U_Z%3DQ5CQco3OHZVGUGnfjSWeNsTfe85UrWSA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to haskell-stack@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/haskell-stack/CAHJ5xPm2DGLL5sK8Vp5VufvgJ%
> 2BR0_wHormCtfQimn3im%2By_j1w%40mail.gmail.com
> <https://groups.google.com/d/msgid/haskell-stack/CAHJ5xPm2DGLL5sK8Vp5VufvgJ%2BR0_wHormCtfQimn3im%2By_j1w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to haskell-stack@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/CALSygwdsA%3D1fOvmqizrBD_%3DMmEW3apJeaYUgjp8CNiajE-%3DONg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to