[Haskell-cafe] Link error

fr33domlover fr33domlover at riseup.net
Wed Mar 16 23:56:05 UTC 2016


Hello,

I'm getting this when trying to build the tests of the 'ssh' package:

--------------------------------------------------------------------
ssh-0.3.2: build (lib + test)
Preprocessing library ssh-0.3.2...
In-place registering ssh-0.3.2...
Preprocessing test suite 'ssh-test' for ssh-0.3.2...
[2 of 2] Compiling Main
( test/test.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/ssh-test/ssh-test-tmp/Main.o
)
/usr/bin/ld: .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/ssh-test/ssh-test-tmp/EmbedTree.dyn_o:
relocation R_X86_64_PC32 against symbol
`EmbedTree_zdfLiftEntryzuzdclift_closure' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Progress: 1/2
--  While building package ssh-0.3.2 using:
      /home/fr33domlover/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3
--builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 build lib:ssh
test:ssh-test --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
--------------------------------------------------------------------

Other people don't get this error. What does it mean, how do I start to debug
and fix it?

Thanks in advance for any clue!

--fr33
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160317/f2eedba9/attachment.sig>


More information about the Haskell-Cafe mailing list