Bug#1100364: haskell-clash-ghc: Use extra --ghc-options in d/rules on loong64
zhangdandan
zhangdandan at loongson.cn
Thu Mar 13 01:39:41 GMT 2025
Source: haskell-clash-ghc
Version: 1.8.1-3
Severity: normal
Tags: patch
User: debian-loongarch at lists.debian.org
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: haskell-clash-ghc-add-ghc-option-for-loong64.patch
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-maintainers/attachments/20250313/de2464ec/attachment-0001.bin>
More information about the Pkg-haskell-maintainers
mailing list