Build failure under Fedora 21
Peter Trommler
peter.trommler at ohm-hochschule.de
Sat Jan 17 12:15:33 UTC 2015
Dominick Samperi wrote:
> It turns out that the undefined reference to libHSprimitive-0.5.4.0.so
> when installing pandoc is not related to the use of CentOS or Debian
> binaries. I get the same undefined reference when I try to use
> ghc-7.8.4 compiled from source under Fedora 21. Here is the output of
> 'locate libHSprimitive':
>
>
/home/dsamperi/.cabal/lib/primitive-0.5.4.0/ghc-7.8.4/libHSprimitive-0.5.4.0.a
> /usr/lib64/ghc-7.6.3/primitive-0.5.0.1/libHSprimitive-0.5.0.1-ghc7.6.3.so
> /usr/lib64/ghc-7.6.3/primitive-0.5.0.1/libHSprimitive-0.5.0.1.a
> /usr/lib64/ghc-7.6.3/primitive-0.5.0.1/libHSprimitive-0.5.0.1_p.a
>
>
> So there is a .a library, but no .so (shared) lib in the build from
> source. Can someone explain how to get the build process to create all
> necessary shared libs?
Try adding `--enable-shared` to your cabal command to build the shared
object libraries. You might have to tell cabal to reinstall your existing
primitive-0.5.4.0 or blow away your ~/.cabal and ~/.ghc directories.
HTH
Peter
More information about the ghc-devs
mailing list