Bug#1132457: gasnet: FTBFS: Add loongarch64 support
zhangdandan
zhangdandan at loongson.cn
Wed Apr 1 10:34:43 BST 2026
Source: gasnet
Version: 2025.8.0-5
Severity: normal
Tags: FTBFS patch
User: debian-loongarch at lists.debian.org
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gasnet-add-basic-loongarch64-support.patch
Type: text/x-patch
Size: 1786 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260401/22e0a5da/attachment-0001.bin>
More information about the debian-science-maintainers
mailing list