Hi,

I am trying to build a package and so far fail in the "stack setup" step. 
Here is the error:

$ stack setup
The GHC located at 
/home/ss839/.stack/programs/x86_64-linux/ghc-gmp4-8.0.1/bin/ghc failed to 
compile a sanity check. Please see:

    http://docs.haskellstack.org/en/stable/install_and_upgrade/

for more information. Exception was:
Running /home/ss839/.stack/programs/x86_64-linux/ghc-gmp4-8.0.1/bin/ghc 
/tmp/stack-sanity-check30968/Main.hs -no-user-package-db in directory 
/tmp/stack-sanity-check30968/ exited with ExitFailure 1

[1 of 1] Compiling Main             ( /tmp/stack-sanity-check30968/Main.hs, 
/tmp/stack-sanity-check30968/Main.o )
Linking /tmp/stack-sanity-check30968/Main ...

/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)


Here is what I think is going on: On our system, libgmp is in a 
non-standard location (here: /opt/gmp-6.1.1/lib). While I know how to point 
stack to such a library for the "stack build" command (using 
--extra-lib-dirs), there doesn't seem to be an option to make "stack setup" 
aware of such a non-standard location.

Any help is appreciated, thanks!

Stephan

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haskell-stack+unsubscr...@googlegroups.com.
To post to this group, send email to haskell-stack@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/5e946a51-33ab-4e55-8b39-483bbd78e179%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to