[From nobody Tue Apr 21 12:13:07 2026
Received: (at submit) by bugs.debian.org; 20 Apr 2026 18:39:30 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-109.1 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
 FROMDEVELOPER,SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,
 USER_IN_DKIM_WELCOMELIST,XMAILER_REPORTBUG autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 22; hammy, 150; neutral, 103; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;bunk@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:32966)
 by buxtehude.debian.org with utf8esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;bunk@debian.org&gt;) id 1wEtWs-005DT3-0o
 for submit@bugs.debian.org; Mon, 20 Apr 2026 18:39:30 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Date:Message-ID:Subject:To:From:
 MIME-Version:Content-Type:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=KOoIAaf4inIT38BnS/71tcYBrAPaZl7qGtm/BWOvds8=; b=ZjuqtzBtOBdmggX1LBDgjpHaqE
 zV9Vjcpl1DBuQ4NHrKj1yHp2/SM3nLZ1xCezQn13EP0WpsKhPGHptmP86myS0jbNTeyahfwN+5uI8
 kQrcU/Vm31FBKwH3GrzWV7j6f50Ab3qEJZqgqXnky9rGrpujlhNz5pA3mLBHM0w0oM7oxv+dy98ed
 lWelfzgDYMH+cOgGNd6iZbbIfWueVPVhiEo7zKwGU7ZKLNjc6u3xqQLtnhUgY+5Qvk507b5DqiMnD
 poMGdqCOKlepWcQvKWbxcTNj4wabsRKcm4QQYA8Aelstp5yRCR7ba0F2rNcaYO9olaPLBKN2QHxe3
 YITg7Muw==;
Received: from authenticated user by stravinsky.debian.org with utf8esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;bunk@debian.org&gt;) id 1wEtWq-000HR7-0i;
 Mon, 20 Apr 2026 18:39:28 +0000
Content-Type: multipart/mixed; boundary=&quot;===============4937080815530759822==&quot;
MIME-Version: 1.0
From: Adrian Bunk &lt;bunk@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: gasnet FTBFS on riscv64, loong64 and with gcc
Message-ID: &lt;177671036699.1729420.16317208664878764118.reportbug@localhost&gt;
X-Mailer: reportbug 13.2.0
Date: Mon, 20 Apr 2026 21:39:26 +0300
X-Debian-User: bunk
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============4937080815530759822==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: gasnet
Version: 2025.8.0-8
Severity: serious
Tags: patch
X-Debbugs-Cc: debian-loongarch@lists.debian.org, debian-riscv@lists.debian.org, Alastair McKinstry &lt;mckinstry@debian.org&gt;
User: debian-riscv@lists.debian.org
Usertags: riscv64
User: debian-loongarch@lists.debian.org
Usertags: loong64

https://buildd.debian.org/status/logs.php?pkg=gasnet&amp;ver=2025.8.0-8

The attached debdiff contains the following changes:
- extend the s390x clang fix to riscv64 and loong64
- fix the gcc build

--===============4937080815530759822==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;debdiff-gasnet&quot;

diff -Nru gasnet-2025.8.0/debian/patches/clang-mb.patch gasnet-2025.8.0/debian/patches/clang-mb.patch
--- gasnet-2025.8.0/debian/patches/clang-mb.patch	1970-01-01 02:00:00.000000000 +0200
+++ gasnet-2025.8.0/debian/patches/clang-mb.patch	2026-04-18 17:40:08.000000000 +0300
@@ -0,0 +1,35 @@
+Description: Fix loong64/riscv64/s390x FTBFS with clang
+Author: Adrian Bunk &lt;bunk@debian.org&gt;
+Bug-Debian: https://bugs.debian.org/1133135
+Forwarded: no
+Last-Update: 2026-04-20
+
+--- 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_LOONGARCH64
+- #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()
+@@ -219,7 +219,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()
+@@ -229,7 +229,7 @@
+  #define GASNETI_RMB_IS_MB
+  #define GASNETI_WMB_IS_MB
+ #elif PLATFORM_ARCH_RISCV
+- #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()
diff -Nru gasnet-2025.8.0/debian/patches/s390-clang.patch gasnet-2025.8.0/debian/patches/s390-clang.patch
--- gasnet-2025.8.0/debian/patches/s390-clang.patch	2026-04-18 17:40:08.000000000 +0300
+++ gasnet-2025.8.0/debian/patches/s390-clang.patch	1970-01-01 02:00:00.000000000 +0200
@@ -1,17 +0,0 @@
-Description: Fix s390x FTBFS with clang
-Author: Adrian Bunk &lt;bunk@debian.org&gt;
-Forwarded: no
-Last-Updated: 2026-04-18
-
---- 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()
-
diff -Nru gasnet-2025.8.0/debian/patches/series gasnet-2025.8.0/debian/patches/series
--- gasnet-2025.8.0/debian/patches/series	2026-04-18 17:40:08.000000000 +0300
+++ gasnet-2025.8.0/debian/patches/series	2026-04-18 17:40:08.000000000 +0300
@@ -1,2 +1,2 @@
 loong64-support.patch
-s390-clang.patch
+clang-mb.patch
diff -Nru gasnet-2025.8.0/debian/rules gasnet-2025.8.0/debian/rules
--- gasnet-2025.8.0/debian/rules	2026-04-18 17:40:08.000000000 +0300
+++ gasnet-2025.8.0/debian/rules	2026-04-18 17:40:08.000000000 +0300
@@ -23,7 +23,7 @@
 PMI_HOME=/usr/lib/$(DEB_HOST_MULTIARCH)/pmix2
 export PMIX
 
-ifndef $(filter $(DEB_TARGET_ARCH), $(CLANG_ARCH))
+ifneq (,$(filter $(DEB_TARGET_ARCH), $(CLANG_ARCH)))
 CC=clang-21
 CXX=clang++-21
 else

--===============4937080815530759822==--
]