[moving to d-haskell, which is better suited for discussions] Hi Thorsten, Am Montag, den 21.04.2014, 20:35 +0000 schrieb Thorsten Glaser: > to keep “living” what we already achieved, I wanted to binNMU the > ghc version in m68k/unstable against newer libffi, but could not > compile it. > > (Colin Watson suggests to start from scratch using his cross-build > approach – and his patches – anyway, but I thought why lose what > already works.) > > Log attached, in case someone knows anything. Otherwise, I or someone > else bored may try Colin’s approach some day. if you have a working ghc-7.0.4, then upgrading release by release to the latest version is sensible; I once did that for s390x (but it’s been quite a while). Your error: "inplace/bin/ghc-cabal" configure --with-ghc="/usr/bin/ghc" --with-ghc-pkg="/usr/bin/ghc-pkg" --with-gcc="/usr/bin/gcc" --configure-option=--with-cc="/usr/bin/gcc" --package-db=/root/ghc-7.0.4/libraries/bootstrapping.conf --enable-library-profiling --disable-library-for-ghci --configure-option=CFLAGS=" -fno-stack-protector " --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --constraint "Cabal == 1.10.2.0" --constraint "hpc == 0.5.0.6" --constraint "extensible-exceptions == 0.1.1.2" --constraint "ghc-binary == 0.5.0.2" --constraint "bin-package-db == 0.0.0.0" -- dist-boot libraries/Cabal ghc-cabal: Cabal.cabal: 42: user error (stray 'else' with no preceding 'if') make[2]: *** [libraries/Cabal/dist-boot/package-data.mk] Error 1 make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/ghc-7.0.4' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 though is very strange, and I don’t really see how that could happen as long as you build ghc-7.0.4 with ghc-7.0.4 (i.e. no differing versions involved), or how it would be related to ffi. Random memory corruptions are unlikely, are they? Did you check if Cabal.cabal really has a stray 'else'? Greetings, Joachim -- Joachim "nomeata" Breitner Debian Developer nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
Attachment:
signature.asc
Description: This is a digitally signed message part