
On 2015-01-17 at 09:22:05 +0100, 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?
How did you compile GHC? Iirc `primitive` isn't supposed to be built/installed/used unless you enable DPH (otherwise, it would lead to a similiar issue like https://ghc.haskell.org/trac/ghc/ticket/8919) Cheers, hvr