-
Notifications
You must be signed in to change notification settings - Fork 175
Linker error with Nix, Stack and Template Haskell #915
Comments
Sounds unlikely to be a ghc-mod problem TBH. Edit: Nevermind didn't see the linker error. I would just try to rebuild everything. Can you try to compile the same package with cabal sandboxes instead of nix maybe? |
I think it is related to #905, just using a sandbox fixes it. nix-shell provides cabal-install 2.0.0.0 and gives the same error as in the linked issue. |
Actually looking at this issue again I seem to have missed you're using nix and stack together (dunno how, it says like right there ;) it seems strange to me that ghc would be complaining about linking a lib from nix when you're using stack. Does stack have some special support for nix where it uses packages from nix or something? Either way could you tell me how to reproduce your nix environment on my machine? I don't actually use nix though but I happen to have it installed so be gentile :) |
the problem occurs when system and Nix glibc versions mismatch. In particular, v2.26 system and v2.30 in Nix will cause this error on every template haskell usage. |
I've solved this issue by using
in |
This only occurs when TH is enabled in the module I'm trying to check.
The project depends on
wai-app-static
but notoptparse-applicative
. This module does not import it.cabal new-repl
works as expected.The text was updated successfully, but these errors were encountered: