FS#53598 - [stack] `stack ghci` fails

Attached to Project: Community Packages
Opened by Magnus Therning (magus) - Friday, 07 April 2017, 06:12 GMT
Last edited by Felix Yan (felixonmars) - Wednesday, 09 May 2018, 04:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Running `stack ghci` results in the following error:

GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help
<command line>: can't load .so/.DLL for: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/../../../../lib/libncurses.so (-lncursesw: cannot open shared object file: No such file or directory)

I get the same result whether I use the system GHC or not (i.e. `stack --system-ghc ghci` and `stack --no-system-ghc ghci`).

Additional info:
* package version(s): haskell-stack - 1.4.0-16


Steps to reproduce:

Run either `stack --system-ghc ghci` or `stack --no-system-ghc ghci` in a stack-based project.
This task depends upon

Closed by  Felix Yan (felixonmars)
Wednesday, 09 May 2018, 04:41 GMT
Reason for closing:  Fixed
Comment by Magnus Therning (magus) - Friday, 07 April 2017, 06:15 GMT
The file `/lib/libncurses.so` is a linker script containing "INPUT(-lncursesw)". If I replace that linker script with a link to `/lib/libncursesw.so` it starts working.
Comment by Eli Schwartz (eschwartz) - Monday, 19 March 2018, 05:20 GMT
  • Field changed: Summary ([haskell-stack] `stack ghci` fails → [stack] `stack ghci` fails)
Is this fixed with the latest versions of stack and ghc? It seems to work fine for me.
Comment by Felix Yan (felixonmars) - Wednesday, 09 May 2018, 04:40 GMT
Works for me too. Closing as fixed, please re-open if you are still getting this.

Loading...