Build failure under Fedora 21

Dominick Samperi djsamperi at gmail.com
Sun Jan 18 05:35:20 UTC 2015


Hello hvr,

I compiled from the source for ghc-7.8.4 by first creating mk/build.mk
from the supplied template build.mk.sample with BuildFlavour = quick,
then the usual: ./configure --prefix=<users-home-dir>/bin/ghc-7.8.4;
make install...

Perhaps there is a different build configuration where all necessary
shared libs are created, as in the build
for ghc-7.6.3?



On Sat, Jan 17, 2015 at 3:36 AM, Herbert Valerio Riedel
<hvriedel at gmail.com> wrote:
> 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


More information about the ghc-devs mailing list