<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=GBK">
  </head>
  <body>
    <br>
    <p>On Wed, 6 Nov 2024 14:48:52 +0800 fanpeng <fanpeng@loongson.cn>
        wrote:</fanpeng@loongson.cn></p>
    <pre class="message" style="font-family: monospace; padding-top: 8px; margin-top: 0px; border-top: 0px; white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">debian/patches/7e2d3eb507da184cf3337d36715fd82a81643d91.patch 
This patch is for GHC-9.6, 9.8 and later versions that already contain this change. 
And it's only part of the fix for build errors, the -optc-mcmodel=medium option is still needed.
</pre>
    <p><br>
      <fanpeng@loongson.cn></fanpeng@loongson.cn></p>
    <fanpeng@loongson.cn>> On Tue, 05 Nov 2024 23:35:17 +0000 Debian
      FTP Masters wrote:<br>
      > <br>
      > Some necessary explanations:<br>
      > 1. Patch for GHC source code: Modified the relocation type of
      GHC <br>
      > intrinsic functions, which can be adjusted according
      to-optc-mcmodel <br>
      > instead of the default R_LARCH_B26.<br>
      > 2. Modification of several other haskell related packages:
      This is due <br>
      > to the limited jump range of the B26 in default mode. After
      testing, <br>
      > changing these packages solves the problem.<br>
      > Maybe it's a bit silly, but I don't think it's possible to
      change the <br>
      > default mcmodel of GHC.<br>
      > <br>
      > Please let me know if there is a better solution. Thanks.<br>
      > <br>
      > > Source: ghc<br>
      > > Source-Version: 9.6.6-3<br>
      > > Done: Gianfranco Costamagna<br>
      > ><br>
      > > We believe that the bug you reported is fixed in the
      latest version of<br>
      > > ghc, which is due to be installed in the Debian FTP
      archive.<br>
      > ><br>
      > > A summary of the changes between this version and the
      previous one is<br>
      > > attached.<br>
      > ><br>
      > > Thank you for reporting the bug, which will now be
      closed. If you<br>
      > > have further comments please address them to
      <a class="moz-txt-link-abbreviated" href="mailto:1085966@bugs.debian.org">1085966@bugs.debian.org</a>,<br>
      > > and the maintainer will reopen the bug report if
      appropriate.<br>
      > ><br>
      > > Debian distribution maintenance software<br>
      > > pp.<br>
      > > Gianfranco Costamagna (supplier of updated ghc package)<br>
      > ><br>
      > > (This message was generated automatically at their
      request; if you<br>
      > > believe that there is a problem with it please contact
      the archive<br>
      > > administrators by mailing
      <a class="moz-txt-link-abbreviated" href="mailto:ftpmaster@ftp-master.debian.org">ftpmaster@ftp-master.debian.org</a>)<br>
      > ><br>
      > ><br>
      > > -----BEGIN PGP SIGNED MESSAGE-----<br>
      > > Hash: SHA256<br>
      > ><br>
      > > Format: 1.8<br>
      > > Date: Wed, 06 Nov 2024 00:21:23 +0100<br>
      > > Source: ghc<br>
      > > Built-For-Profiles: noudeb<br>
      > > Architecture: source<br>
      > > Version: 9.6.6-3<br>
      > > Distribution: unstable<br>
      > > Urgency: medium<br>
      > > Maintainer: Debian Haskell Group<br>
      > > Changed-By: Gianfranco Costamagna<br>
      > > Closes: 1085966<br>
      > > Changes:<br>
      > > ghc (9.6.6-3) unstable; urgency=medium<br>
      > > .<br>
      > > [ fanpeng ]<br>
      > > *
      debian/patches/7e2d3eb507da184cf3337d36715fd82a81643d91.patch:<br>
      > > - upstream fix for loong64 build failures (Closes:
      #1085966)<br>
      > > Checksums-Sha1:<br>
      > > 2cacab30e397e351b786dcb61b9a763fd0b3c87a 2718
      ghc_9.6.6-3.dsc<br>
      > > 3309afcbca81dd49018371b9be7e1c287e049206 69744
      ghc_9.6.6-3.debian.tar.xz<br>
    </fanpeng@loongson.cn><br>
  </body>
</html>