-
Notifications
You must be signed in to change notification settings - Fork 847
Closed
Description
When running stack setup on Arch Linux, ghc-7.8.4 fails to install because of a missing libtinfo.so.5 library.
Here is the output of stack setup:
$ stack setup --verbosity debug
2015-06-10 11:39:39.114682: [debug] Checking for project config at: /home/illabout/temp/picologic/stack.yaml @(stack_45mxiajB96m5bnhfD5VS3t:Stack.Config src/Stack/Config.hs:451:9)
2015-06-10 11:39:39.115056: [debug] Loading project config file stack.yaml @(stack_45mxiajB96m5bnhfD5VS3t:Stack.Config src/Stack/Config.hs:472:13)
2015-06-10 11:39:40.530401: [info] Downloading ghc-7.8.4 ... @(stack_45mxiajB96m5bnhfD5VS3t:Stack.Setup src/Stack/Setup.hs:576:5)
2015-06-10 11:39:40.530561: [debug] Downloading from https://www.haskell.org/ghc/dist/7.8.4/ghc-7.8.4-x86_64-unknown-linux-deb7.tar.xz to /home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4.tar.xz ... @(stack_45mxiajB96m5bnhfD5VS3t:Stack.Setup src/Stack/Setup.hs:581:5)
2015-06-10 11:39:40.530737: [debug] Already downloaded. @(stack_45mxiajB96m5bnhfD5VS3t:Stack.Setup src/Stack/Setup.hs:591:14)
2015-06-10 11:39:40.5314: [info] Unpacking GHC ... @(stack_45mxiajB96m5bnhfD5VS3t:Stack.Setup src/Stack/Setup.hs:476:9)
2015-06-10 11:39:40.531585: [debug] Unpacking /home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4.tar.xz @(stack_45mxiajB96m5bnhfD5VS3t:Stack.Setup src/Stack/Setup.hs:477:9)
2015-06-10 11:39:52.906265: [info] Configuring GHC ... @(stack_45mxiajB96m5bnhfD5VS3t:Stack.Setup src/Stack/Setup.hs:480:9)
2015-06-10 11:39:58.059003: [info] Installing GHC ... @(stack_45mxiajB96m5bnhfD5VS3t:Stack.Setup src/Stack/Setup.hs:484:9)
2015-06-10 11:40:39.483999: [error] Exit code ExitFailure 2 while running ["make","install"] in /tmp/stack-setup2750/ghc-7.8.4/ @(stack_45mxiajB96m5bnhfD5VS3t:System.Process.Read src/System/Process/Read.hs:169:13)
Running make install in the ghc directory manually gives me the following error:
...
Installing library in
/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4/ghc-7.8.4
"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries/old-time dist-install "strip" '' '/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4' '/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4' '/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/share/doc/ghc/html/libraries' 'v p dyn'
Installing library in
/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4/old-time-1.1.0.2
"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries/haskell98 dist-install "strip" '' '/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4' '/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4' '/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/share/doc/ghc/html/libraries' 'v p dyn'
Installing library in
/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4/haskell98-2.0.0.3
"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries/haskell2010 dist-install "strip" '' '/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4' '/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4' '/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/share/doc/ghc/html/libraries' 'v p dyn'
Installing library in
/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4/haskell2010-1.1.2.0
"/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4/bin/ghc-pkg" --force --global-package-db "/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4/package.conf.d" update rts/dist/package.conf.install
/home/illabout/.stack/programs/x86_64-linux/ghc-7.8.4/lib/ghc-7.8.4/bin/ghc-pkg: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
ghc.mk:901: recipe for target 'install_packages' failed
make[1]: *** [install_packages] Error 127
Makefile:24: recipe for target 'install' failed
make: *** [install] Error 2
It appears that on Arch Linux, programs should be linked against libncurses.so.5 instead of libtinfo.so.5:
If the above package libtinfo is installed from AUR, then stack setup succeeds.
It might be nice if stack setup could warn about this?
ruuda, wedens, MIN605472 and goetzc