Bug#853285 closed by Clint Adams <clint at debian.org> (Bug#853285: fixed in ghc 8.0.2-3)

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Wed Aug 2 22:06:06 UTC 2017


Attaching an updated patch which has been tested to not break native builds.

The patch modifies debian/rules such that for cross-builds, the recommended
build options for GHC are used (i.e. -O0 and building with the embedded libffi).

In order to cross-build GHC for a given architecture, one can now simply use
sbuild with the --host= and --profile= parameters:

sbuild -d sid --host=m68k --profile=cross ghc*dsc

Only caveat is that haskell-devscripts-minimal has to be manually pre-installed
in the build chroot because of the known issue with arch:all packages [1].

Upstream has also added lots of changes to improve cross-builds even more [2],
so we can expect to be smoother with GHC 8.2.0. The biggest thing that is still
lacking for cross-compiled versions of GHC is the missing documentation and
Haddock.

Adrian

> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818115
> [2] http://git.haskell.org/ghc.git?a=search&h=HEAD&st=commit&s=cross

-- 
 .''`.  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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ghc_cross_compile_support.diff
Type: text/x-patch
Size: 13663 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20170803/3b3e6b5d/attachment-0002.bin>


More information about the Pkg-haskell-maintainers mailing list