[Haskell-cafe] cabal repl fails with GHC 7.8.2
Niklas Haas
haskell at nand.wakku.to
Sat May 3 14:40:20 UTC 2014
On Sat, 3 May 2014 10:13:12 -0400, Omari Norman <omari at smileystation.com> wrote:
> I have a package for which "cabal repl" works fine with cabal version
> 1.20 and GHC 7.6.3. The package has a lot of FFI bindings and uses
> hsc2hs, so getting a REPL without "cabal repl" is a pain. The package
> also comes with the C sources that get linked in.
>
> But with GHC 7.8.2, "cabal repl" fails with:
>
> Loading object (static) dist/build/decnumber/src/decDouble.o ...
> /usr/bin/ld: dist/build/decnumber/src/decDouble.o: relocation
> R_X86_64_32S against `DPD2BIN' can not be used when making a shared
> object; recompile with -fPIC
>
> Any idea on how to fix this? "cabal build" and "cabal install" work
> fine and I can even build and execute a test binary against the
> library. It seems the problem is just with "cabal repl".
>
> Thanks.
> Omari
Have you tried cleaning the entire build tree with `cabal clean` or
just getting rid of the temporary files in general?
I've run into this issue before, and I think it might just have
something to do with mixing object files across different versions of
GHC or similar.
More information about the Haskell-Cafe
mailing list