From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail231.csoft.net (mail231.csoft.net [96.47.74.235]) by sourceware.org (Postfix) with ESMTPS id 0504A386EC49 for ; Mon, 10 Jan 2022 19:38:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0504A386EC49 Received: from mail231.csoft.net (localhost [127.0.0.1]) by mail231.csoft.net (Postfix) with ESMTP id 17FFDCBBA for ; Mon, 10 Jan 2022 14:38:04 -0500 (EST) Received: from mail231 (mail231 [96.47.74.235]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) (Authenticated sender: jeremyd) by mail231.csoft.net (Postfix) with ESMTPSA id 03DFCCBB6 for ; Mon, 10 Jan 2022 14:38:04 -0500 (EST) Date: Mon, 10 Jan 2022 11:38:03 -0800 (PST) From: Jeremy Drake X-X-Sender: jeremyd@resin.csoft.net To: cygwin@cygwin.com Subject: posix_spawn issues on i686 Message-ID: User-Agent: Alpine 2.21 (BSO 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2022 19:38:08 -0000 >From https://github.com/msys2/MSYS2-packages/issues/2801 MSYS2 recently rebuilt GNU make 4.3, and I found that after rebuilding, it broke rather horribly on i686, where any attempt to run a command resulted in "Invalid argument" errors. Some debugging revealed that rebuilding make resulted in it using posix_spawn now instead of vfork. Passing --disable-posix-spawn to make's configure script results in a working i686 make. >From the MSYS2 bug report: """ For reference, I tried to rebuild "make" in cygwin 32 bit and it has the same problem: rebuilding cygport make.cygport all results in a broken make Adding CYGCONF_ARGS="--disable-posix-spawn" to the cygport file and rebuilding again results in a good make A Makefile to reproduce the issue: all: echo hi """ In addition, make check fails rather horribly as well. I know that 32-bit is on the way out, but it is concerning to me that there is some latent bug lurking in this code path that is apparently not well exercised.