Bug#910664: Acknowledgement (ghc: ghc package can no longer be cross-compiled)

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Tue Oct 9 14:24:41 BST 2018


Hi!

This change to the debian/rules file helps to get a bit further:

--- debian/rules.orig   2018-09-26 11:08:46.000000000 +0200
+++ debian/rules        2018-10-09 15:22:43.080942145 +0200
@@ -126,6 +126,7 @@
        echo 'V=1'                                     >> mk/build.mk
        dh_auto_configure -- \
                $(EXTRA_CONFIGURE_FLAGS) \
+               --host=$(DEB_BUILD_GNU_TYPE) \
                --with-system-libffi --libdir=/usr/lib
 
 override_dh_auto_build:

But it will still fail with:

===--- building phase 0
make --no-print-directory -f ghc.mk phase=0 phase_0_builds
mkdir -p inplace/bin
mkdir -p inplace/lib
"rm" -f libraries/binary/dist-boot/build/libHS.a libraries/binary/dist-boot/build/libHS.a.contents
"rm" -f libraries/text/dist-boot/build/libHS.a libraries/text/dist-boot/build/libHS.a.contents
"rm" -f libraries/transformers/dist-boot/build/libHS.a libraries/transformers/dist-boot/build/libHS.a.contents
"rm" -f libraries/mtl/dist-boot/build/libHS.a libraries/mtl/dist-boot/build/libHS.a.contents
"rm" -f inplace/bin/mkdirhier
"rm" -f libraries/parsec/dist-boot/build/libHS.a libraries/parsec/dist-boot/build/libHS.a.contents
echo         >> libraries/binary/dist-boot/build/libHS.a.contents
"rm" -f libraries/Cabal/Cabal/dist-boot/build/libHS.a libraries/Cabal/Cabal/dist-boot/build/libHS.a.contents
echo         >> libraries/text/dist-boot/build/libHS.a.contents
echo         >> libraries/transformers/dist-boot/build/libHS.a.contents
/bin/bash: libraries/binary/dist-boot/build/libHS.a.contents: No such file or directory
echo         >> libraries/mtl/dist-boot/build/libHS.a.contents
echo '#!/bin/sh'                 >> inplace/bin/mkdirhier
/bin/bash: libraries/text/dist-boot/build/libHS.a.contents: No such file or directory
echo         >> libraries/parsec/dist-boot/build/libHS.a.contents
utils/hsc2hs/ghc.mk:24: utils/hsc2hs/dist-install/package-data.mk: No such file or directory
make[3]: *** [libraries/binary/ghc.mk:4: libraries/binary/dist-boot/build/libHS.a] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [libraries/text/ghc.mk:4: libraries/text/dist-boot/build/libHS.a] Error 1
/bin/bash: libraries/mtl/dist-boot/build/libHS.a.contents: No such file or directory
/bin/bash: libraries/transformers/dist-boot/build/libHS.a.contents: No such file or directory
echo         >> libraries/Cabal/Cabal/dist-boot/build/libHS.a.contents
make[3]: *** [libraries/transformers/ghc.mk:4: libraries/transformers/dist-boot/build/libHS.a] Error 1
make[3]: *** [libraries/mtl/ghc.mk:4: libraries/mtl/dist-boot/build/libHS.a] Error 1
cat utils/mkdirhier/mkdirhier.sh >> inplace/bin/mkdirhier
/bin/bash: libraries/parsec/dist-boot/build/libHS.a.contents: No such file or directory
make[3]: *** [libraries/parsec/ghc.mk:4: libraries/parsec/dist-boot/build/libHS.a] Error 1
/bin/bash: libraries/Cabal/Cabal/dist-boot/build/libHS.a.contents: No such file or directory
make[3]: *** [libraries/Cabal/Cabal/ghc.mk:4: libraries/Cabal/Cabal/dist-boot/build/libHS.a] Error 1
chmod +x inplace/bin/mkdirhier
make[2]: *** [Makefile:123: all] Error 2
make[2]: Leaving directory '/<<BUILDDIR>>/ghc-8.4.3+dfsg1'
dh_auto_build: make -j8 returned exit code 2
make[1]: *** [debian/rules:133: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/ghc-8.4.3+dfsg1'
make: *** [debian/rules:58: binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2

Will try to figure out what's wrong here.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the Pkg-haskell-maintainers mailing list