Your message dated Sun, 12 Apr 2026 17:35:24 +0000
with message-id <[email protected]>
and subject line Bug#1132457: fixed in gasnet 2025.8.0-7
has caused the Debian Bug report #1132457,
regarding gasnet: FTBFS: 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 [email protected]
immediately.)


-- 
1132457: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1132457
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: gasnet
Version: 2025.8.0-5
Severity: normal
Tags: FTBFS patch
User: [email protected]
Usertags: loong64

Dear maintainers,

Compiling gasnet for loong64 has been failing in the Debian Package Auto-Building environment.
The error log is as follows,
```
......
In file included from /build/reproducible-path/gasnet-2025.8.0/gasnet_tools.h:91,                  from /build/reproducible-path/gasnet-2025.8.0/gasnet_tools.c:26: /build/reproducible-path/gasnet-2025.8.0/gasnet_membar.h:232:3: error: #error unknown CPU - dont know how to do a local memory barrier for your CPU/OS   232 |  #error unknown CPU - dont know how to do a local memory barrier for your CPU/OS
      |   ^~~~~
In file included from /build/reproducible-path/gasnet-2025.8.0/gasnet_tools.h:93: /build/reproducible-path/gasnet-2025.8.0/gasnet_atomicops.h: In function ‘gasneti_genatomic32_set’: /build/reproducible-path/gasnet-2025.8.0/gasnet_atomicops.h:99:81: error: implicit declaration of function ‘gasneti_local_wmb’; did you mean ‘gasneti_local_mb’? [-Wimplicit-function-declaration]    99 |                                                 if (f & GASNETI_ATOMIC_WMB_PRE) gasneti_local_wmb();
      |
^~~~~~~~~~~~~~~~~
......
```
After analyzing, we need to add loongarch64 support for gasnet.
Please consider the patch attached.
Based attached patch, I have built  gasnet successfully on loong64.
```
dpkg-deb: building package 'libgasnet-dev' in '../libgasnet-dev_2025.8.0-5.1_loong64.deb'.
dpkg-deb: building package 'gasnet' in '../gasnet_2025.8.0-5.1_loong64.deb'.
dpkg-deb: building package 'gasnet-dbgsym' in '../gasnet-dbgsym_2025.8.0-5.1_loong64.deb'.
 dpkg-genbuildinfo -O../gasnet_2025.8.0-5.1_loong64.buildinfo
 dpkg-genchanges -O../gasnet_2025.8.0-5.1_loong64.changes
dpkg-genchanges: info: not including original source code in upload
 dpkg-source --after-build .
dpkg-buildpackage: info: binary and diff upload (original source NOT included)
 signfile gasnet_2025.8.0-5.1.dsc
```

I was unable to locate where to submit a pull request upstream.
If someone knows where to submit the pull request, they can help contribute the patch upstream.

Best regards,
Dandan Zhang

Description: <short summary of the patch>
 .
 gasnet (2025.8.0-5.1) unstable; urgency=medium
 .
   * Add basic loongarch64 support.
Author: Dandan Zhang <[email protected]>

---
Last-Update: 2026-04-01

--- gasnet-2025.8.0.orig/gasnet_atomic_fwd.h
+++ gasnet-2025.8.0/gasnet_atomic_fwd.h
@@ -61,6 +61,7 @@
     (PLATFORM_COMPILER_XLC && GASNETI_HAVE_SYNC_ATOMICS_32) || \
     (PLATFORM_ARCH_SPARC && PLATFORM_COMPILER_CLANG /* TODO: not using GCC ASM due to Bug 3805 */) || \
     PLATFORM_ARCH_AARCH64 || \
+    PLATFORM_ARCH_LOONGARCH64 || \
     PLATFORM_ARCH_S390 || \
     PLATFORM_ARCH_TILE || \
     PLATFORM_ARCH_RISCV
--- gasnet-2025.8.0.orig/gasnet_membar.h
+++ gasnet-2025.8.0/gasnet_membar.h
@@ -208,6 +208,16 @@
  #endif
  #define GASNETI_RMB_IS_MB
  #define GASNETI_WMB_IS_MB
+#elif PLATFORM_ARCH_LOONGARCH64
+ #if PLATFORM_COMPILER_GNU
+   #define gasneti_local_mb() __sync_synchronize()
+   #define gasneti_local_wmb() gasneti_local_mb()
+   #define gasneti_local_rmb() gasneti_local_mb()
+ #else
+   #define GASNETI_USING_SLOW_MEMBARS 1
+ #endif
+ #define GASNETI_RMB_IS_MB
+ #define GASNETI_WMB_IS_MB
 #elif PLATFORM_ARCH_S390
  #if PLATFORM_COMPILER_GNU
    #define gasneti_local_mb() __sync_synchronize()
--- gasnet-2025.8.0.orig/other/gasnet_portable_platform.h
+++ gasnet-2025.8.0/other/gasnet_portable_platform.h
@@ -1030,6 +1030,15 @@
     #define _PLATFORM_ARCH_32 1
   #endif
 
+#elif defined(__loongarch__)
+  #define PLATFORM_ARCH_LOONGARCH64 1
+  #define PLATFORM_ARCH_FAMILYNAME LOONGARCH64
+  #define _PLATFORM_ARCH_LITTLE_ENDIAN 1
+  #if defined(__loongarch_lp64)
+    #define _PLATFORM_ARCH_64 1
+  #else
+    #define _PLATFORM_ARCH_32 1
+  #endif
 #elif defined(__s390__)
   #define PLATFORM_ARCH_S390 1
   #define PLATFORM_ARCH_FAMILYNAME S390

--- End Message ---
--- Begin Message ---
Source: gasnet
Source-Version: 2025.8.0-7
Done: Alastair McKinstry <[email protected]>

We believe that the bug you reported is fixed in the latest version of
gasnet, 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.
Alastair McKinstry <[email protected]> (supplier of updated gasnet 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: Sun, 12 Apr 2026 17:58:22 +0100
Source: gasnet
Architecture: source
Version: 2025.8.0-7
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers 
<[email protected]>
Changed-By: Alastair McKinstry <[email protected]>
Closes: 1132457
Changes:
 gasnet (2025.8.0-7) unstable; urgency=medium
 .
   * Loong64 support from Dandan Zhang. Closes: #1132457
   * libpmix-dev not available on 32-bit archs.
   * Use clang on selected archs only
Checksums-Sha1:
 c215736ce8bdc00ed09bbc230b4e6d70cb3adec5 2403 gasnet_2025.8.0-7.dsc
 3662b8c69479ddbb967a926343d1d4ca89b08234 6084 gasnet_2025.8.0-7.debian.tar.xz
Checksums-Sha256:
 8927b0be1f9f8acd9a537bbc26429d2c87673c5d32ca0d316237053135df97a6 2403 
gasnet_2025.8.0-7.dsc
 2fb5f7f5c3651015dd87918a020f163d2baf65a446e8cb56b63591a8cafa211e 6084 
gasnet_2025.8.0-7.debian.tar.xz
Files:
 278fea6d4f3583cf4b9c41ecd82c2fe7 2403 devel optional gasnet_2025.8.0-7.dsc
 d7bb7483e77078d1b5f841ce2858c21c 6084 devel optional 
gasnet_2025.8.0-7.debian.tar.xz

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

iQIzBAEBCgAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmnb098ACgkQy+a7Tl2a
06UPNBAAh6zpsLce9qjO/k7IOTGQyIw0Hn1iCyYwiwN5kSuusaqZBmQDtQyTNbjY
CTDTX6w54VYFqwWV4vIbCFBYz60yNTHX7bmgYTLmk41WZMjRiVh6q/2+lTnhWdpI
sIRZasGiupqEWEinL+9x8hY1ECwzGKzHv71Q86ozjavE+eCL7McBuVY2OfFsRFkR
uMHwRA5Mbciph6prxBwPsX/8+O7HHInguintyV308clRYunk+v/dgcg044ykgjjJ
FVKhGrTYA89p3yf8C/Rdbq0XQLC7lHIacOU7to9QBDDsZl4e5jhZ0nLstG0C+98T
W1RfYkACYInDiwMSijuiJMqVG0KMlTxl5wMRLnNiEbqXD5688JeitdgGoVpMJ38x
0+FI+2pnHqhM3SMUEvuvZUPlV36Jvx3Cj4hHwsydjggwwUs1h2PE7g3rlVUkpzrC
XJBKegKpJtNfUmxl2jJwbSkFjOS6dgkJBhuq65LRcTMqYLy9LyQRzO1nNNBGT+cb
r2INAlAEBGBbQBtWEfpejVAnosgm6hAMhQYmb/lJsFI5hpoGMdqtPRaOwjAVQ1f1
/PzVIkxkvR+fM0BM4WmICKKmXzqHFwbm2ATwRiTEja6M2ov2Lxm1OpYlmdFgskcH
awllvwuqF7A8PP9T+2Iblh403tLww6kmo5Mu1Bg6bHAGQ1seWGY=
=LnI7
-----END PGP SIGNATURE-----

Attachment: pgpze8n__5tnF.pgp
Description: PGP signature


--- End Message ---
-- 
debian-science-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to