hakyll icon indicating copy to clipboard operation
hakyll copied to clipboard

stack build failure

Open Geof23 opened this issue 7 years ago • 1 comments

The first error is this:

Configuring SHA-1.6.4.2... Building SHA-1.6.4.2... Preprocessing library SHA-1.6.4.2... [1 of 1] Compiling Data.Digest.Pure.SHA ( src/Data/Digest/Pure/SHA.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Data/Digest/Pure/SHA.o ) /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libgmp.a(lt35-nextprime.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/lib/x86_64-linux-gnu/libgmp.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status`

This occurs with 3 different versions of gcc

Geof23 avatar Mar 07 '17 23:03 Geof23

I get the same error - a string of many of them. Not sure if there's a missing dependency... example: /usr/bin/ld: /home/patrick/.stack/programs/x86_64-linux/ghc-7.10.3/lib/ghc-7.10.3/rts/libCffi.a(ffi64.o): relocation R_X86_64_32S against `.rodata' can not be used when making a PIE object; recompile with -fPIC

patrickboe avatar Mar 04 '20 23:03 patrickboe