Build failure under Fedora 21

Dominick Samperi djsamperi at gmail.com
Thu Jan 22 18:14:21 UTC 2015


The best way to move beyond the somewhat dated version of the Haskell
Platform that is distributed with Fedora 21 is to install the version
available at http://www.haskell.org/platform instead of the version
installed by yum. This fixes all of the shared library issues that
arise when installing pandoc. Thanks to John MacFarlane (pandoc
author) for this tip.

On Sat, Jan 17, 2015 at 7:15 AM, Peter Trommler
<peter.trommler at ohm-hochschule.de> wrote:
> 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
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs


More information about the ghc-devs mailing list