delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/08/15/09:00:04

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 57FD02S22923120
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 57FD02S22923120
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=YqNO5Bv7
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7035385840C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1755262800;
bh=qiAu23vsmVD+JIX7N+/7NEJquNDi3zTdEiwpZd2c2rg=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=YqNO5Bv7bSadATU26fNcPeWnYaixfogcsF+JhlFjx3A06QC4jA/O535wyufZl8+WZ
4ROV2yCX7uEJGJ9a14ytTCWAooHTlemIOVlrWZ29Yg/eRaJ2iV5mexM+72dgbkgQAL
3+pY0k5aLfntLg+VTFf3Kjk2PK53cf7uAOGYKXRk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9CA7E3858D32
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9CA7E3858D32
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755262727; cv=none;
b=pIkhGdAGdwJMGJmZU3xGrC2HC2htiE7brKkIomFL3SYtZGBzfnOIdAmp2bq0oEjlYBdxL4jsXZqjM1SoqeO75pRt8qIbXYjVBuGKsQgPBiR0XJ5wSJNjR1S4TDBax6IBR48H7cooT0+w9hCyaMnyS4UlV9eRaNgIHlMwQxGQRzc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1755262727; c=relaxed/simple;
bh=scBKVjQuiH4QxgRe7qSRrguyF7SqA6lJCGxzchV0mbI=;
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature;
b=GRmch7fJQHHEuY6fAgW1msuTUlGw4kDZKM39IvliUCw8qPkuu684zjrteXJnx3QLKm0OcBcRqowEbfvaAh66GOacNzCMLXsT+FAHMYsbQ7GAQa4xHoM0oi0g62HjoYnAY4ZuY2VcYaD5HcoOpVfGwrWqTxqprHwd0YaD9Fmzp/g=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CA7E3858D32
Date: Fri, 15 Aug 2025 21:58:42 +0900
To: cygwin AT cygwin DOT com
Subject: Re: Suspicious commit dated 'Sat Jul 19 23:49:26 2025 +0900'
Message-Id: <20250815215842.d0f48a86d3bc251798a28a2b@nifty.ne.jp>
In-Reply-To: <533DB209-713C-4580-9575-F7C4DAD43FBB@Denis-Excoffier.org>
References: <03D1D669-A7CF-40C3-A671-EEAA20A31448 AT Denis-Excoffier DOT org>
<533DB209-713C-4580-9575-F7C4DAD43FBB AT Denis-Excoffier DOT org>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
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: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
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>

On Wed, 13 Aug 2025 20:44:50 +0200
Denis Excoffier wrote:
> 
> > On 2025-08-12, 19:33, Denis Excoffier wrote:
> > 
> > Hello,
> > 
> > Today i was using cygwin-3.7.0-0.266$B!D(B (found under /x86_64/release/cygwin, installed also the corresponding cygwin-doc and cygwin-devel) 
> > and built the new GCC 15.2.0. Then i built many (about 100) GNU or not-so-GNU software with no errors at all until i found in tcl-9.0.2 
> > that GCC returns with status 2 (i.e. not 0, not 1, not 4) for compilation of tclStubLib.o (and compilation fails). Similarly, same 
> > return code (2) with fastcwd.o (and others, fastcwd is the first one) under winsup/cygwin/x86_64.
> > 
> > Same with GCC 15.1.0. But this was surely not the case when i installed GCC 15.1.0 in April.
> > Same with cygwin-3.7.0-0.277$B!D(B (the more recent one).
> > 
> > But not the same with cygwin-3.7.0-0.124... that i fetched on the 6th of June. In this case, compilation is ok (i checked with tcl only, not fastcwd.o).
> > 
> > Then i started to bisect between cygwin-3.7.0-0.124$B!D(B and cygwin-3.7.0-0.277$B!D(B
> > 
> > Unfortunately, cygwin-3.7.0 revisions from -124 to -246 are gone!
> > 
> > Please don$B!G(Bt remove cygwin test releases too early.
> 
> Well, i$B!G(Bm lucky since cygwin-3.7.0-0.247 does not show up the problem (which is: GCC returns sometimes with $status=2, e.g. in tcl-9.0.2 and for cygwin sources).
> 
> After bisection, it appears that the problem can be located between cygwin-3.7.0-250$B!D(B and cygwin-3.7.0-256.
> Three commits there on the trunk (and three on the branch):
> 
> [newlib-cygwin] Cygwin: cygheap: Add lock()/unlock() method   Takashi Yano
> [newlib-cygwin] Cygwin: spawn: Lock cygheap from refresh_cygheap() until child_copy()   Takashi Yano
> [newlib-cygwin] Cygwin: spawn: Make system() thread-safe   Takashi Yano
> 
> The third one seems promising. Indeed:
> - i install cygwin1.dll from cygwin-3.7.0-0.250
> - i build cygwin-3.7.0-0.277 with the commit 'Cygwin: spawn: Make system() thread-safe$B!G(B reverted. It builds.
> - i install cygwin1.dll from the newly built cygwin-3.7.0-277 (again with commit reverted)
> - i build cygwin-3.7.0-0.277 with the commit reverted. Now it builds without problem.
> 
> Similary, tcl (see above) no longer fails to build. The return code 2 from GCC seems gone.
> 
> Some additional information: under W10, no such difficulties. The problem seems to arise only with W11 (CYGWIN_NT-10.0-26100).
> 
> Please someone have a look into this commit. Sorry not being able to do it myself. Hope this however helps.
> 
> Last remark: i didn$B!G(Bt try with the regular GCC from the cygwin distribution; and perhaps something is missing in my GCC 15 build configuration.
> 

I could not reproduce the issue.

I followed the following steps.

1) wget http://prdownloads.sourceforge.net/tcl/tcl9.0.2-src.tar.gz
2) tar xf tcl9.0.2-src.tar.gz
3) cd tcl9.0.2/unix
4) ./configure && make -j8

tcl 9.0.2 was successfully built.

I'm using cygwin 3.7.0-0.277.g45f9b4841373.x86_64 (Test) and
gcc 15.1.1+20250726-0.1 (Test) on windows 11.

I also tested with gcc 16.0.0+20250727-0.1 (Test) and the result
is the same.

Could you please confirm the issue happens with cygwin gcc package?

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

-- 
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 © 2019   by DJ Delorie     Updated Jul 2019