Your message dated Wed, 03 Apr 2024 05:34:43 +0000
with message-id <e1rrtgl-003uqt...@fasolo.debian.org>
and subject line Bug#1059556: fixed in gauche 0.9.14-4
has caused the Debian Bug report #1059556,
regarding gauche: add loongarch64 support
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 ow...@bugs.debian.org
immediately.)


-- 
1059556: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059556
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: gauche
Version: 0.9.10-3
Severity: wishlist
Tags: ftbfs
User: debian-loonga...@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the gauche failed for loong64 in the Debian Package Auto-Building environment. The error message is as follows,
```
In file included from ./include/private/gc_priv.h:123,
                 from ./include/private/dbg_mlc.h:28,
                 from extra/../backgraph.c:15,
                 from extra/gc.c:40:
./include/private/gcconfig.h:709:5: error: #error The collector has not been ported to this machine/OS combination   709 | #   error The collector has not been ported to this machine/OS combination
      |     ^~~~~
./include/private/gcconfig.h:3068:3: error: #error Undefined ALIGNMENT
 3068 | # error Undefined ALIGNMENT
      |   ^~~~~
......
```
The full build log can be found at https://buildd.debian.org/status/logs.php?pkg=gauche&ver=0.9.10-3&arch=loong64

I have added the loongarch64 support in gauche source code.
The gauche source package was compiled successfully on my local environment and the test cases passed.
```
make[2]: Entering directory “/home/buildd/gauche-0.9.10/src”
Testing math.* modules ... passed.
Testing data.* modules ... passed.
Testing util.* modules extra ... passed.
Testing optimizer ... passed.
Testing control ... passed.
Testing miscellaneous compiler features ... passed.
Testing debug features ... passed.
Testing utility scripts ... passed.
Testing interactive ... passed.
Testing r7rs-tests ... passed.
Testing r7rs-aux ... passed.
make[2]: Leaving directory “/home/buildd/gauche-0.9.10/src”
Total: 30709 tests, 30709 passed,     0 failed,     0 aborted.
```
Please consider the patch I have attached.
If you have any questions, you can contact me at any time.

thanks,
Dandan Zhang

Description: Add loongarch64 support 
Last-Update: 2023-10-28

--- gauche-0.9.10.orig/gc/include/private/gcconfig.h
+++ gauche-0.9.10/gc/include/private/gcconfig.h
@@ -675,6 +675,11 @@ EXTERN_C_BEGIN
 #   define mach_type_known
 # endif
 
+# if defined(__loongarch__) && defined(LINUX)
+#    define LOONGARCH
+#    define mach_type_known
+# endif
+
 # if defined(SN_TARGET_PSP2)
 #   define mach_type_known
 # endif
@@ -1742,6 +1747,21 @@ EXTERN_C_BEGIN
 #   define STACKBOTTOM ((ptr_t)0xfffff000) /* for Encore */
 # endif
 
+# ifdef LOONGARCH
+#   define MACH_TYPE "LoongArch"
+#   define CPP_WORDSZ __loongarch_grlen
+#   define ALIGNMENT (__loongarch_grlen/8)
+#   ifdef LINUX
+#     define OS_TYPE "LINUX"
+#     pragma weak __data_start
+      extern int __data_start[];
+#     define DATASTART ((ptr_t)(__data_start))
+#     define LINUX_STACKBOTTOM
+#     define COUNT_UNMAPPED_REGIONS
+#     define DYNAMIC_LOADING
+#   endif
+# endif /* LOONGARCH */
+
 # ifdef MIPS
 #   define MACH_TYPE "MIPS"
 #   ifdef LINUX

--- End Message ---
--- Begin Message ---
Source: gauche
Source-Version: 0.9.14-4
Done: NIIBE Yutaka <gni...@fsij.org>

We believe that the bug you reported is fixed in the latest version of
gauche, 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 1059...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
NIIBE Yutaka <gni...@fsij.org> (supplier of updated gauche 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 03 Apr 2024 11:46:12 +0900
Source: gauche
Architecture: source
Version: 0.9.14-4
Distribution: unstable
Urgency: medium
Maintainer: NIIBE Yutaka <gni...@fsij.org>
Changed-By: NIIBE Yutaka <gni...@fsij.org>
Closes: 1059556
Changes:
 gauche (0.9.14-4) unstable; urgency=medium
 .
   * LoongArch is supported in upstream: Thanks to Dandan Zhang
     (Closes: #1059556).
   * debian/patches/51_signed_overflow.patch: New.
   * debian/patches/series: Update.
Checksums-Sha1:
 a23b8b45d3ac88e72cf33853a56326f494e7caeb 1690 gauche_0.9.14-4.dsc
 cc7fb775c24cbbd1ff97c58de72c9046b1858945 37248 gauche_0.9.14-4.debian.tar.xz
 02cd3e78cdf0a38a7afafe5c5cd843687316d291 8768 gauche_0.9.14-4_amd64.buildinfo
Checksums-Sha256:
 408941fbd22a9a28f599af8d0c9296da3dbff3a52e5b04786ba224b4a07a71fa 1690 
gauche_0.9.14-4.dsc
 39676aab497e9d7494470ccd60fc92bd1e521f4bc2f9591b23ab623cc10270f8 37248 
gauche_0.9.14-4.debian.tar.xz
 561daacde203ab3d0f349ac64772f27af4c0bf0eaa655d35a157b49e3d990edc 8768 
gauche_0.9.14-4_amd64.buildinfo
Files:
 83ea4b3e651e0869b45c07d0f8aebbf1 1690 lisp optional gauche_0.9.14-4.dsc
 ffb4d2c00be3061e29a0d6c93236c8fa 37248 lisp optional 
gauche_0.9.14-4.debian.tar.xz
 f70243777a8f9fb74535dc7dd795c80e 8768 lisp optional 
gauche_0.9.14-4_amd64.buildinfo

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

iHUEARYIAB0WIQS3MhxVeHDZjYHXYQFkARSvid5gVAUCZgzi5wAKCRBkARSvid5g
VKgHAQDMk0ndj3DIA/hPuW12/AVslN2ub6vRPwfGZvUrWMogWAD/Vx5tspGFgOXp
TKeIfqfkavl4FfxuTSZatu2/+ELj8AI=
=XYu/
-----END PGP SIGNATURE-----

Attachment: pgpmejy3jZELh.pgp
Description: PGP signature


--- End Message ---

Reply via email to