[From nobody Sat Apr 18 16:33:04 2026
Received: (at submit) by bugs.debian.org; 10 Apr 2026 09:12:37 +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.7 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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, 24; hammy, 144; neutral, 21; 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]:49476)
 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 1wB7un-00BR69-1M
 for submit@bugs.debian.org; Fri, 10 Apr 2026 09:12:37 +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=iozL5PxEIA1u0Ft3KNJ+RIu6tTHWYj0paL13tfQbueY=; b=iGpOi0yd+UsSK1YAYXLQDp6kE1
 l0pEuuJ3/jIdRjkHA4JtuWNxetDwXtCCVugNj3ijB/6aHSvyyv+vsSkrPOw/o7qDdMFW6rZqp9I0e
 bCZ7PqoPni1o2ZW44j2Y/QO9f4oHXR22ZhftY6lAQBpkMVJRPLd4dtjaGXgr9CLCKc6jgm6ZDE7fL
 9AnvTvajV/P+0anrJOEclFnN+CrbsgxRMeDcVDaUlUl9kLkLyjx9v66OpOMkFdeptOB1u8E3Hc+xV
 ugKc/jdI+nFj0yY1eNwzTV1W+IeZyX+/8HIr+xbqSzZjqRioA2SoZDS1yt2Pi73M7BfHA+LyYij0z
 5J/5iPGg==;
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 1wB7ul-009sB7-1C;
 Fri, 10 Apr 2026 09:12:35 +0000
Content-Type: multipart/mixed; boundary=&quot;===============5280895667465612818==&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 s390x with clang
Message-ID: &lt;177581235490.507446.1661763250316498426.reportbug@localhost&gt;
X-Mailer: reportbug 13.2.0
Date: Fri, 10 Apr 2026 12:12:34 +0300
X-Debian-User: bunk
Delivered-To: submit@bugs.debian.org

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


--===============5280895667465612818==
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-6
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/fetch.php?pkg=gasnet&amp;arch=s390x&amp;ver=2025.8.0-6&amp;stamp=1775136022&amp;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).

--===============5280895667465612818==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;s390x-clang.patch&quot;

Description: Fix s390x FTBFS with clang
Author: Adrian Bunk &lt;bunk@debian.org&gt;

--- 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()

--===============5280895667465612818==--
]