-
Notifications
You must be signed in to change notification settings - Fork 846
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linker error with 'stack ghci' #440
Comments
I was unable to reproduce this on Ubuntu 14.04. |
FYI, on my system:
Maybe you're missing the 64-bit version of the library? |
@pharpend There's a
|
@snoyberg I'm on Arch Linux 64-bit. @chrisdone My libraries are in different locations:
I think the key here is to figure out which program is producing the linker error: is it GHC, GHCi, Stack, Cabal-the-library? Whichever program it is, it seems to be using a non-standard method of locating shared object files. |
FWIW, I'm getting the same error with the version of stack in master. (Previously, I was using the Hackage version). I got a new system update today, so I'll see if that fixes it. Edit: No fix from system update. |
I should mention, I can use normal |
So, I actually bothered to trace through the |
Well, now I'm getting the same issue with
|
I'm thinking this might be a problem with GNU Readline, as it depends on ncurses. |
I run into the same problem with stack on arch 64bit. Compiling a c hello world with |
This looks familiar. Debian oldstable (at least; haven't checked wheezy) makes (That said, I thought ghci used the system linker in 7.10?) |
Yes, |
@geekosaur Without filing a thousand other bug reports, is there a fix and/or a temporary workaround? |
The usual workaround is to replace the linker script with a symlink. This may annoy the system package manager, but people on Debian have not reported issues with it, and have had this issue with hs-curses etc. for several years now (Debian stable being what it is) so I would expect that problems would have been noticed by now. The upstream bug is with ghc / ghci, and is one of the things that was supposed to be fixed by using the system linker instead of a home-grown one in the bytecode backend. 7.10.1 seems to have some other linker issues as well (and it may be too late to get fixes into 7.10.2. |
@geekosaur That worked. Since this appears to be a bug with GHC, not Stack, I'm closing this issue. |
I had this problem on Nix. Turns out the ncurses package was split into two parts, nix:
packages: [ncurses.out, ncurses.dev] If you write It wasn't enough for me to make It looks like Stack only checks compilation before caching packages, it does not check runtime linking. If you compile terminfo with just
So only the headers and no libs will be in library-dirs. Adding |
One option for more selectively re-building a package is |
Source tree: https://github.com/pharpend/desbot
The text was updated successfully, but these errors were encountered: