Bug#1133135: gasnet FTBFS on s390x with clang

Adrian Bunk bunk at debian.org
Fri Apr 10 10:12:34 BST 2026


Source: gasnet
Version: 2025.8.0-6
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/fetch.php?pkg=gasnet&arch=s390x&ver=2025.8.0-6&stamp=1775136022&raw=0

...
/build/reproducible-path/gasnet-2025.8.0/gasnet_membar.h:298:4: error: unknown compiler - do not know how to generate local memory barriers
  298 |   #error unknown compiler - do not know how to generate local memory barriers
      |    ^
...


The attached patch is a minimal fix, the proper solution would be
to assume non-ancient compilers and use C11 atomics everywhere
(or at least compiler builtin barriers with gcc/clang).
-------------- next part --------------
Description: Fix s390x FTBFS with clang
Author: Adrian Bunk <bunk at debian.org>

--- gasnet-2025.8.0.orig/gasnet_membar.h
+++ gasnet-2025.8.0/gasnet_membar.h
@@ -209,7 +209,7 @@
  #define GASNETI_RMB_IS_MB
  #define GASNETI_WMB_IS_MB
 #elif PLATFORM_ARCH_S390
- #if PLATFORM_COMPILER_GNU
+ #if PLATFORM_COMPILER_GNU || PLATFORM_COMPILER_CLANG
    #define gasneti_local_mb() __sync_synchronize()
    #define gasneti_local_wmb() gasneti_local_mb()
    #define gasneti_local_rmb() gasneti_local_mb()


More information about the debian-science-maintainers mailing list