delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/10/02/23:47:13

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 6933lC773693629
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 6933lC773693629
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=wM/pgCoa
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE5694BA9033
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1790999216;
bh=HpvvMdA06au6na38dIVtdpzhlHeq7RlBsijQob+IJdk=;
h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=wM/pgCoarm95DQBzqKEzSz2kYhyK/sjw/9gRQCu9nK2FiC2x+5ofAbhgqjR6eNsEC
WotS6ptVV1jgRoraNvluD2FDOrbA1+G1eWwZ9dGERoRvnHrZ1EZbEDMnZc4clREred
ZQ/sBYDgbtOh9nVuFprnZ7Y7rj/0euWA8ikMKsto=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A7384BA7990
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2A7384BA7990
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1790999196; cv=none;
b=Gi2yoXRbe9vQEmDcgipNY9+w4r/xTLE6SZ8Emag6vTLbH65Ec/gZVhEmzX37gjh5wTRTmOMy4rAVc8zyXA1rz1pmjWNCcr9K16/MN/mdlizOyHnuXfF7XbTkKF/O6GroWIx8aEkE8j6XsIe6TYB01xVLdIEUBICDuzZ35WOwAoo=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1790999196; c=relaxed/simple;
bh=7mh1uGylI5HKdNpO5J8qhpihL7WwiLXrES/jzwxggR0=;
h=DKIM-Signature:Message-Id:From:To:Subject:Date:MIME-Version;
b=Ge7m/+ZuNqtE/WFd2wqw08fEMSouGjymlQsJ4cL5/1Gur8LIpwdzgALY34bht881LEvm1Gznh7fVet+lMXRSBBm9hqgYFgF7mIn+ZRP8iBB0VxO7JAYj+owPkdWp4RawsrcSwAT8Gk0E24HvGiD9lEJox0lGVWEsJ+8iVSGY9ho=
ARC-Authentication-Results: i=1; sourceware.org;
dkim=pass (2048-bit key, unprotected)
header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104
header.b=cfF4/UYE
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A7384BA7990
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1790999195; x=1791603995;
h=mime-version:content-transfer-encoding:user-agent:references
:in-reply-to:date:subject:to:from:message-id:content-type:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=cfyWCGpIcSHte5lHLxpDE9jGPc2H2KmW5T8l+Yugv+c=;
b=X6y4uRpCyeAArxqieV+ClHq0h+AwcnyXAm6Dq8c5hafM66lH+3rWA93PoosEpMFLU2
1/3mYjIB91qbjX9WgS4klDy0rhzNzGjNlw/X0FXjyXjFwLmTnHqlpry66nFQy6rzg/Ez
uoCc2AjETBJD6oIb0XEt5UclXX48F3jBPzo9sqnxmsXV/n2m6VpR4oj7idcWox9ScI27
QjJUPW5aujgBJp8yZpMcyBfePaslo3/db2OzGMmLGRKLwyGwLstZmbaBBbfMavluwyeE
TWaxz7i+e2aXW3YRgVWMLUGQmDzRjjnkVIzEwhNN62zTEsQ6UBG0A+IPzLIO/9sv76AB
0NVQ==
X-Gm-Message-State: AFq9FYL8Cr9q/gfAjmiOUeY3/WKk0vSIFkOSYSTs108OfLNaV97TJSO3
tMcHoUOVyXB3+lPiG5/qSLhiTd46UkjDjfFMqraj5Mk/8BbJEDhTM3jAJ8OLPQ==
X-Gm-Gg: AYBFou2EveYcNz1qczhgcJxuptQDhh7hJkyKzxIi997eKSEtNAX/yzy1w+AieRWGFiR
MAmRWyS6ia2q7kWex7WxkwwV/j5NeFWx7zZAIjcsCDstFoJ9yNJoz7cebes84+0bIyR04riOIub
g+jQKmIn5NGbhRfWCEW2em0RycoFxGn/2dExiiOLiYfDGJC3PTZEyYQoKJhLJkKoIapQBJOu6Cx
SAxYYmUWhm8dXbdD89vBHn6BwR2FdK+1tnUXqaT62V/2u8C2qC76Sstuh8xj/uVrE6HBkuzUx7A
PyyE7xyjjzckAtr4IGqKbDUN4p26Vt8RKD4wmDTchkRMhBPlod9wvMT51xB4c4lEExoUprsbugL
m0tXpU9vbdFu8c810MA3VYkx5Y7qYhlYueWIAIc09S6odERFt/mJVWJkAtAstiUl9XI+FsCiiy/
ZvSAj76zXTQYbSaccldK//l0TTFj90ynihWehWfR+lgcg5vJa+FbJ0oCa/1IGNy2NC6wAoXtfMr
MdyHsZprQY=
X-Received: by 2002:a17:90b:4ecd:b0:3a5:25e:85fc with SMTP id
98e67ed59e1d1-3a787750979mr946275a91.63.1790999195085;
Fri, 02 Oct 2026 20:46:35 -0700 (PDT)
Message-Id: <1790995700206.4012953616.2675120658@gmail.com>
To: cygwin AT cygwin DOT com
Subject: Re: Regression (segfault) with std::print and __int128 using
libstdc++6 17.0.0+20260802-0.1
Date: Sat, 03 Oct 2026 03:46:33 +0000
In-Reply-To: <87h5jbyu38.fsf@Gerda.invalid>
References: <87h5jbyu38 DOT fsf AT Gerda DOT invalid>
X-Mailer: Vivaldi Mail
User-Agent: Vivaldi Mail/8.2.4133.76
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: kikairoya via Cygwin <cygwin AT cygwin DOT com>
Reply-To: kikairoya <kikairoya AT gmail DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 6933lC773693629

Hi Achim,


2026年9月27日 17:30:35 (+09:00) で、ASSI via Cygwin さんが書きました:

> kikairoya via Cygwin writes:
> > GCC 17 changed the x86_64 Windows ABI used for returning __int128 and
> > __uint128 values. Previously, GCC and Clang both returned such values
> > via %xmm0. GCC now returns them indirectly instead.
> >
> > https://github.com/gcc-mirror/gcc/commit/e63a873f1df7493b8b657acafb451bf40166044e
> 
> I don't see any activity on getting this backported to earlier GCC
> versions… I think it's so clearly a bug that if practically possible it
> should be backported.  Which gets me back to the earlier question of how
> to detect libraries that have this defect in order to get them rebuilt.

I found that the breakage in the original report is due to libgcc's
int128 support routines (e.g., __divti3), not libstdc++ itself.
Therefore, any binaries that import these routines from
cyggcc_s-seh-1.dll will be affected.

I also searched through the *-devel packages and found that only
postgresql-devel and libc++-devel appear to expose functions that
return a __{u,}int128 value (assuming I grepped correctly).
Since I think few packages rely on those two, I believe we can focus on
how to mitigate the libgcc's ABI change.

One way to minimize the rebuild storm might be to provide
cyggcc_s-seh-2.dll additively (i.e., a new libgcc2 package).
However, I'm not sure how to share the emutls state between
cyggcc_s-seh-{1,2}.dll.

Thanks,

--
Tomohiro Kashiwada (@kikairoya)

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2026   by DJ Delorie     Updated Sep 20 2026