[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GHC bootstrapped for riscv64



On 07/19/2018 03:41 PM, John Paul Adrian Glaubitz wrote:
> The current GHC source itself needs to be patched in its aclocal.m4
> so that autoconf recognizes the riscv64 triplet. So, if you dupload
> my GHC package now, GHC will not be able to build itself. The GHC
> maintainers will have to include the aclocal.m4 patch first. After
> that has happened, GHC can be binNMU'd as well as hscolour.

The patch for aclocal.m4 is fairly obvious:

--- ghc-8.2.2.orig/aclocal.m4
+++ ghc-8.2.2/aclocal.m4
@@ -216,7 +216,7 @@ AC_DEFUN([FPTOOLS_SET_HASKELL_PLATFORM_V
         mipsel)
             test -z "[$]2" || eval "[$]2=ArchMipsel"
             ;;
-        hppa|hppa1_1|ia64|m68k|rs6000|s390|s390x|sh4|vax)
+        hppa|hppa1_1|ia64|m68k|riscv64|rs6000|s390|s390x|sh4|vax)
             test -z "[$]2" || eval "[$]2=ArchUnknown"
             ;;
         *)
@@ -1898,6 +1898,9 @@ case "$1" in
   powerpc*)
     $2="powerpc"
     ;;
+  riscv64)
+    $2="riscv64"
+    ;;
   rs6000)
     $2="rs6000"
     ;;

Adrian

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


Reply to: