commercialhaskell / commercialhaskell/stack
stack setup do not work on void linux
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
### Steps to reproduce
1. Install stack 1.7.1 with `nix-env -i stack
2. Create a project with `stack new project`
3. Setup with `stack setup`
### Expected
No errors.
### Actual
```
$ stack setup -v
Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 commits) x86_64 hpack-0.28.2
2018-05-22 15:49:25.735009: [debug] Checking for project config at: /home/fi3/trash/project/stack.yaml
@(src/Stack/Config.hs:850:9)
2018-05-22 15:49:25.735276: [debug] Loading project config file stack.yaml
@(src/Stack/Config.hs:876:13)
2018-05-22 15:49:25.737038: [debug] Decoding build plan from: /home/fi3/.stack/build-plan/lts-11.10.yaml
@(src/Stack/Snapshot.hs:164:5)
2018-05-22 15:49:25.737178: [debug] Trying to decode /home/fi3/.stack/build-plan-cache/lts-11.10.cache
@(src/Stack/Snapshot.hs:156:32)
2018-05-22 15:49:25.741240: [debug] Success decoding /home/fi3/.stack/build-plan-cache/lts-11.10.cache
@(src/Stack/Snapshot.hs:156:32)
2018-05-22 15:49:25.741865: [debug] Run process: /sbin/ldconfig -p
@(src/Stack/Setup.hs:580:22)
2018-05-22 15:49:25.746818: [debug] Process finished in 5ms: /sbin/ldconfig -p
@(src/Stack/Setup.hs:580:22)
2018-05-22 15:49:25.747207: [debug] Did not find shared library libtinfo.so.5
@(src/Stack/Setup.hs:603:38)
2018-05-22 15:49:25.747345: [debug] Found shared library libtinfo.so.6 in /usr/lib
@(src/Stack/Setup.hs:602:38)
2018-05-22 15:49:25.747415: [debug] Found shared library libncursesw.so.6 in 'ldconfig -p' output
@(src/Stack/Setup.hs:589:29)
2018-05-22 15:49:25.747500: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output
@(src/Stack/Setup.hs:589:29)
2018-05-22 15:49:25.747606: [debug] Did not find shared library libgmp.so.3
@(src/Stack/Setup.hs:603:38)
2018-05-22 15:49:25.747655: [debug] Potential GHC builds: tinfo6, ncurses6
@(src/Stack/Setup.hs:632:9)
2018-05-22 15:49:25.747717: [debug] Found already installed GHC builds: ncurses6
@(src/Stack/Setup.hs:458:13)
2018-05-22 15:49:25.748363: [debug] Performing a sanity check on: /home/fi3/.stack/programs/x86_64-linux/ghc-ncurses6-8.2.2/bin/ghc
@(src/Stack/Setup.hs:1646:5)
2018-05-22 15:49:25.748618: [debug] Run process within /tmp/stack-sanity-check2909/: /home/fi3/.stack/programs/x86_64-linux/ghc-ncurses6-8.2.2/bin/ghc /tmp/stack-sanity-check2909/Main.hs -no-user-package-db
@(src/Stack/Setup.hs:1647:47)
/usr/bin/ld.gold: error: cannot find -lgmp
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
2018-05-22 15:49:26.304500: [debug] Process finished in 556ms: /home/fi3/.stack/programs/x86_64-linux/ghc-ncurses6-8.2.2/bin/ghc /tmp/stack-sanity-check2909/Main.hs -no-user-package-db
@(src/Stack/Setup.hs:1647:47)
The GHC located at /home/fi3/.stack/programs/x86_64-linux/ghc-ncurses6-8.2.2/bin/ghc failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Received ExitFailure 1 when running
Raw command: /home/fi3/.stack/programs/x86_64-linux/ghc-ncurses6-8.2.2/bin/ghc /tmp/stack-sanity-check2909/Main.hs -no-user-package-db
Run from: /tmp/stack-sanity-check2909/
Standard output:
[1 of 1] Compiling Main ( /tmp/stack-sanity-check2909/Main.hs, /tmp/stack-sanity-check2909/Main.o )
Linking /tmp/stack-sanity-check2909/Main ...
```
### Stack version
```
$ stack --version
Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 commits) x86_64 hpack-0.28.2
```
### Note
I'm on void linux
edit:
`/usr/lib/libgmp.so.3` linked to `/usr/lib/libgmp.so.10`
`/usr/lib/libtinfo.so.6` linked to `/usr/lib/libncurses.so.6.1`
Contributor guide
Assessment
This issue has not been assessed yet.