DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 57DIk3aL2121254 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 57DIk3aL2121254 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=O6JYF4E3 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34B773858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1755110762; bh=HmSe/XIvHfoYC04GQIoM18EWGJirRIU8CaL7fEzJ9r4=; h=Subject:Date:In-Reply-To:Cc:To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=O6JYF4E39JYKOThVj/g8EdOklWThd1HSZc3oQmD25DqVHVregMHrWRfBFP0HMkzn6 S52XQ8wa1NBboQvYY1BoFiBLPgMk5HYEfdBeJT7ikSWFt7qEwTNFoU0yEzxtuI6qMa rw/TZoZoPkgX+9O7V9LyaVL2/atGzUmvbzBDlurA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 88DC83858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 88DC83858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755110703; cv=none; b=Zv5Vxa3DmL9iKa8tw7BKiZUeYbk9JymI0eNZ0WRDOcYXzBfk+OddfpfK32be8c5cOcJneVgKkGb6N64H2UF9ao/HRfNizhv2vUVP2gSxDHd22DcwP8U8ORjBX851rcdxY0z0JBd03w9TL7hbyrSocgpaFB/wMn5juWBEhDHaowg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1755110703; c=relaxed/simple; bh=6TddjXadPJ7ZQUeLpeVkNr1phgiXGrQQe0RWJLXNlsA=; h=From:Message-Id:Mime-Version:Subject:Date:To; b=XxBiJWYfJg5OCnktCjQ+/MxqXgJQE+bPdVr928Up4qwOmzAaR8YiL0I2R1T+8N4imP4zm9uXcZTBQFCmeYn78/66OiaIditaZmonT7Qt3vJCHxYncpYOvv90U24PDno19l9lWZorvKyNFTDIM3RJOSRHJiqXggDjmKiEDf4Hy6M= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88DC83858D20 Message-Id: <533DB209-713C-4580-9575-F7C4DAD43FBB@Denis-Excoffier.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Suspicious commit dated 'Sat Jul 19 23:49:26 2025 +0900' Date: Wed, 13 Aug 2025 20:44:50 +0200 In-Reply-To: <03D1D669-A7CF-40C3-A671-EEAA20A31448@Denis-Excoffier.org> Cc: Denis Excoffier To: cygwin AT cygwin DOT com References: <03D1D669-A7CF-40C3-A671-EEAA20A31448 AT Denis-Excoffier DOT org> X-Mailer: Apple Mail (2.3826.700.81) X-Content-Filtered-By: Mailman/MimeDel 2.1.30 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Denis Excoffier via Cygwin Reply-To: Denis Excoffier Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 57DIk3aL2121254 > On 2025-08-12, 19:33, Denis Excoffier wrote: > > Hello, > > Today i was using cygwin-3.7.0-0.266… (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… (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… and cygwin-3.7.0-0.277… > > Unfortunately, cygwin-3.7.0 revisions from -124 to -246 are gone! > > Please don’t remove cygwin test releases too early. Well, i’m 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… 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’ 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’t try with the regular GCC from the cygwin distribution; and perhaps something is missing in my GCC 15 build configuration. Denis Excoffier. -- 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