Build failure under Fedora 21

Dominick Samperi djsamperi at gmail.com
Sun Jan 11 06:32:19 UTC 2015


Here is a little more context...if I use the centos65 binary and try
to install pandoc, it fails on
the install of the vector package, because the shared library
libHSprimitive-0.5.4.0.so is not found (the package primitive-0.5.4.0 contains
libHSprimitive-0.5.4.0.a, no .so file?).

Here is the diagnostic:

Resolving dependencies...
Configuring vector-0.10.12.2...
Building vector-0.10.12.2...
Preprocessing library vector-0.10.12.2...
[ 1 of 19] Compiling Data.Vector.Storable.Internal (
Data/Vector/Storable/Internal.hs,
dist/build/Data/Vector/Storable/Internal.o )
[ 2 of 19] Compiling Data.Vector.Fusion.Util (
Data/Vector/Fusion/Util.hs, dist/build/Data/Vector/Fusion/Util.o )
[ 3 of 19] Compiling Data.Vector.Fusion.Stream.Size (
Data/Vector/Fusion/Stream/Size.hs,
dist/build/Data/Vector/Fusion/Stream/Size.o )

Data/Vector/Fusion/Stream/Size.hs:25:10: Warning:
    No explicit implementation for
      '*', 'abs', and 'signum'
    In the instance declaration for 'Num Size'
[ 4 of 19] Compiling Data.Vector.Internal.Check (
Data/Vector/Internal/Check.hs, dist/build/Data/Vector/Internal/Check.o
)
[ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic (
Data/Vector/Fusion/Stream/Monadic.hs,
dist/build/Data/Vector/Fusion/Stream/Monadic.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package primitive-0.5.4.0 ... <command line>: can't load
.so/.DLL for: libHSprimitive-0.5.4.0.so (libHSprimitive-0.5.4.0.so:
cannot open shared object file: No such file or directory)
Failed to install vector-0.10.12.2
cabal: Error: some packages failed to install:
vector-0.10.12.2 failed during the building phase. The exception was:
ExitFailure 1


On Sun, Jan 11, 2015 at 1:07 AM, Dominick Samperi <djsamperi at gmail.com> wrote:
> Hello,
>
> I'm trying to build ghc-7.8 branch under Fedora 21 and I get the
> failure diagnostics appended below. The problem seems to be that the
> build process cannot satisfy deepseq >=1.2 && <1.4, but I explicitly
> installed deepseq-1.3.0.2, and this did not help (same error?).
>
> Under Fedora 21 Haskell Platform contains ghc-7.6.3, so this is
> the boot compiler. The ghc binary for centos65 installs provided I define
> /usr/lib64/libgmp.so.3 as a symbolic link to /usr/lib64/libgmp.so.10,
> a risky move.
>
> Any tips would be much appreciated.
>
> Thanks,
> Dominick
>
>
> ===--- building phase 0
> make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
> make[1]: Nothing to be done for 'phase_0_builds'.
> ===--- building phase 1
> make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
> "inplace/bin/ghc-cabal" check libraries/containers
> 'ghc-options: -O2' is rarely needed. Check that it is giving a real
> benefit and not just imposing longer compile times on your users.
> "inplace/bin/ghc-cabal" configure libraries/containers dist-install ""
> --with-ghc="/home/dsamperi/install/git/ghc/inplace/bin/ghc-stage1"
> --with-ghc-pkg="/home/dsamperi/install/git/ghc/inplace/bin/ghc-pkg"
> --disable-library-for-ghci --enable-library-vanilla
> --disable-library-profiling --enable-shared
> --configure-option=CFLAGS=" -fno-stack-protector   "
> --configure-option=LDFLAGS="   " --configure-option=CPPFLAGS="   "
> --gcc-options=" -fno-stack-protector       " --with-gcc="/usr/bin/gcc"
> --with-ld="/usr/bin/ld" --configure-option=--with-cc="/usr/bin/gcc"
> --with-ar="/usr/bin/ar" --with-ranlib="/usr/bin/ranlib"
> --with-alex="/home/dsamperi/.cabal/bin/alex"
> --with-happy="/home/dsamperi/.cabal/bin/happy"
> Configuring containers-0.5.5.1...
> ghc-cabal: At least the following dependencies are missing:
> deepseq >=1.2 && <1.4
> libraries/containers/ghc.mk:4: recipe for target
> 'libraries/containers/dist-install/package-data.mk' failed
> make[1]: *** [libraries/containers/dist-install/package-data.mk] Error 1
> Makefile:71: recipe for target 'all' failed
> make: *** [all] Error 2


More information about the ghc-devs mailing list