Your message dated Sat, 15 Mar 2025 11:26:38 +0000
with message-id <[email protected]>
and subject line Bug#1100364: fixed in haskell-clash-ghc 1.8.1-4
has caused the Debian Bug report #1100364,
regarding haskell-clash-ghc: Use extra --ghc-options in d/rules on loong64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1100364: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100364
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: haskell-clash-ghc
Version: 1.8.1-3
Severity: normal
Tags: patch
User: [email protected]
Usertags: loong64

Dear maintainers,

Compiling the haskell-clash-ghc failed for loong64 in the Debian Package Auto-Building environment.
The error log is as follows,
```
......
[2 of 2] Linking dist-ghc/build/clash/clash
/usr/bin/ld: /tmp/ghc3441753_0/ghc_2.o: relocation R_LARCH_B26 overflow 0x9007e5c
/tmp/ghc3441753_0/ghc_2.o: in function `main':
ghc_1.c:(.text+0xd8): relocation truncated to fit: R_LARCH_B26 against symbol `hs_main' defined in .text section in /usr/lib/ghc/lib/../lib/loongarch64-linux-ghc-9.6.6/rts-1.0.2/libHSrts-1.0.2_thr.a(RtsMain.thr_o)
/usr/bin/ld: final link failed: bad value
......
```
The full build log can be found at https://buildd.debian.org/status/fetch.php?pkg=haskell-clash-ghc&arch=loong64&ver=1.8.1-3&stamp=1740487395&raw=0.

Please consider the patch I attached.
Based on attached patch, I have built  successfully on locally.
```
......
dh_builddeb -phaskell-clash-ghc-utils
dpkg-deb: building package 'haskell-clash-ghc-utils' in '../haskell-clash-ghc-utils_1.8.1-3_loong64.deb'.  dpkg-genbuildinfo --build=binary -O../haskell-clash-ghc_1.8.1-3_loong64.buildinfo  dpkg-genchanges --build=binary -O../haskell-clash-ghc_1.8.1-3_loong64.changes
```

Your opinions are welcome.

Best regards,
Dandan Zhang

diff --git a/debian/rules b/debian/rules
index 3447ef0..6e3d567 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,10 @@ DEB_SETUP_BIN_NAME = debian/hlibrary.setup
 DEB_CABAL_PACKAGE = clash-ghc
 DEB_DEFAULT_COMPILER = ghc
 
+ifneq (,$(filter $(DEB_BUILD_ARCH),loong64))
+DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc-mcmodel=medium"
+endif
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk
 

--- End Message ---
--- Begin Message ---
Source: haskell-clash-ghc
Source-Version: 1.8.1-4
Done: Gianfranco Costamagna <[email protected]>

We believe that the bug you reported is fixed in the latest version of
haskell-clash-ghc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gianfranco Costamagna <[email protected]> (supplier of updated 
haskell-clash-ghc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 15 Mar 2025 10:39:06 +0100
Source: haskell-clash-ghc
Built-For-Profiles: noudeb
Architecture: source
Version: 1.8.1-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Haskell Group 
<[email protected]>
Changed-By: Gianfranco Costamagna <[email protected]>
Closes: 1100364
Changes:
 haskell-clash-ghc (1.8.1-4) unstable; urgency=medium
 .
   * Team upload.
 .
   [ zhangdandan <[email protected]> ]
   * Fix FTBFS on loong64 (Closes: #1100364)
Checksums-Sha1:
 4e70872d5361e2eebefacf2a52eb04eff173be10 4617 haskell-clash-ghc_1.8.1-4.dsc
 b66ff3bb1d8494096471bdbd63704f3356837a9c 3948 
haskell-clash-ghc_1.8.1-4.debian.tar.xz
 5bf4aa0705479a69ef97c6069e38484aaac42563 7303 
haskell-clash-ghc_1.8.1-4_source.buildinfo
Checksums-Sha256:
 84eaea6f8dcd25a83edf25ae005948329bc8360ad28433adb821ae6ffe33efa0 4617 
haskell-clash-ghc_1.8.1-4.dsc
 08ff5e42617f5f26865d0e081c9d3c9c456b6ce079e688b6746777aae4b36d6f 3948 
haskell-clash-ghc_1.8.1-4.debian.tar.xz
 e9bf714625807693a1a186ae7095c8c905b6600379764de43ca9f4a02173e97e 7303 
haskell-clash-ghc_1.8.1-4_source.buildinfo
Files:
 be57d543575cf1d8d4f3dea9105147da 4617 haskell optional 
haskell-clash-ghc_1.8.1-4.dsc
 ec5bb11108766d11ca65619dc66c70e3 3948 haskell optional 
haskell-clash-ghc_1.8.1-4.debian.tar.xz
 3e6ab1bf7c3debef29d070313a4c8c70 7303 haskell optional 
haskell-clash-ghc_1.8.1-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEkpeKbhleSSGCX3/w808JdE6fXdkFAmfVSucACgkQ808JdE6f
XdlFCRAAitUo97ZXfjuxEThS8pCj3HtbhKOd21A3PWHQC2X7J67Vj3SRcQEqYAjC
NlV1CsFaInDAUhxJIItI3U8UgtL7wwMGvb6y05s3+ihNUXHMGexjovTDF2AmRN9O
Zlf7sHsobYQAasC8wNEvU3seidW4/SYpCblX0OIzjWYJTuSV0+xZXcHOfW6lJiCt
KAHRCWkunV5wBIScjnVHZL6Wtn/206pcu8IJRyz5/WL01u+pUGX5Wnr8QfbMwVHc
h+y0ToPQ7xDhK55bmoM/zSX1moQeVx0+6YO1fIDIy+SX/N6FoDZXQtDlW2vDczyO
uItrpuBUtmOpxkVMcKrftxZRY8DsNDfd8qPZW3ZAqcBd7gonVfsOSwph2/AGVnM/
xAVLG4Nbul9056dcj4OnSfaHHM7XiCSJ/2/jrELhRVGW02GE//OP15hzbg5rnpwg
f44KAhZao++YV5UWsbBqFiZaBknnMz6SCFMyUKEmZlh8tPD3hb2xc3vGPQ2yOUnz
Pib6FZO8eE+wXAgOQhFpk7Omgrs0dQMw1Ln0YoL/dNgmEfC30tSKqPQ8jfqAxj9k
7AnEZDrxTfda8+Vnnlur0HiVZZ5y6L4Gi8HYR8y8KALsLwbhlbZ3Q+2jTE/EsnYS
/NpZzOb9wcYs/QZH16j5s+Ubx8MqYlotsjbBjqx6eDAxDhZHNxM=
=47ij
-----END PGP SIGNATURE-----

Attachment: pgptRYpZsbZHL.pgp
Description: PGP signature


--- End Message ---

Reply via email to