Bug#814657: ghc: Please add initial platform support for x32

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sat Feb 13 18:44:33 UTC 2016


Source: ghc
Version: 7.10.3-7
Severity: normal
Tags: patch

Hi!

I recently bootstrapped ghc on x32.

To achieve that, the following changes were necessary:

 * patch rts/Linker.c to use native 64-bit integer instructions on x32
 * build the compiler unregisterised even though x86_64 has a NCG
   which needs some work to support x32 though
 * use integer-simple by default on x32 since integer-gmp currently
   has issues on x32 (sizeof(mp_limb_t) != sizeof(void *) is unsupported)

The first patch is more discussed by upstream in detail in [1], since they
were not sure yet whether the simple patch that I am using is safe not to
break anything on other platforms.

Attaching a debdiff with my changes in any case so that a discussion can
be started.

Cheers,
Adrian

> [1] https://ghc.haskell.org/trac/ghc/ticket/11571

-- 
 .''`.  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-x32-support.diff
Type: text/x-diff
Size: 2769 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20160213/2416bb5d/attachment.diff>


More information about the Pkg-haskell-maintainers mailing list