DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 57VHS1O62478680 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 57VHS1O62478680 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=ivco0x/s X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBD283858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1756661280; bh=HSq9zFthXlZFRoCW7wSYa/upF64vcWqnHKuPxmoQkGo=; h=Date:To:cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=ivco0x/stKw3mBlwMFd39YvaCX8L+3cGTRG91WnmanhFdvsKwF50YV9QyQfVImzbd 4SXgw16uYKx3HQ6BiWfy7mPkDN4PJjK0OFLMBeuVNfrg+N8dC2MvJsPm8DkBwMusbz kqY4KD43+Z6iKZ103RI+JgPR8cOkyztvY/D9CaNM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 61FA13858D3C ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 61FA13858D3C ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756661256; cv=none; b=LdOw1wTXzj0RhQ5C/BEBCq+4wE3rGX2ZKymmogXQQPWaYMQzeOk/3bOr9fiFRHhSPTM+kWokfAO0j+bTqnj3+oocCVuZUpf9TNWn5gl7uAsTqZONEPQeU5PgM7+qj9MmiArLJEozFSpJAaXMkUjrVwN3kIc+UuTmd3Ae0qz9od8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1756661256; c=relaxed/simple; bh=OdRpNOPjuZI9OVTa/YutKldWlJMncO6NWQi3c0Z7F0w=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=rmO9nXFbFMM+RSa36c5cDMbeYBgy2JpGWhwNNLN/3DJ+hIvQiZA3zO0hTlsJCN4bBh8aigaTdYBYfRqq1XNCkcmuPeKDduACjHSwv+IQeFBX5dlqNGDpqRlB1a03tfpJbG3DNh6TPZAjhjEj6O+waIsqw+JuJuI/Arj9Pudid1U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61FA13858D3C Date: Sun, 31 Aug 2025 10:27:35 -0700 (PDT) X-X-Sender: jeremyd AT resin DOT csoft DOT net To: Thierry DECHAIZE cc: cygwin AT cygwin DOT com Subject: Re: How generate 32 bit format executable with last CLANG 20.1.8 In-Reply-To: <954a76f1-8acf-4aad-a336-0e26e45a0fe2@gmail.com> Message-ID: <3d41f588-0816-841f-077c-6d3643e2eafb@jdrake.com> References: <954a76f1-8acf-4aad-a336-0e26e45a0fe2 AT gmail DOT com> MIME-Version: 1.0 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: Jeremy Drake via Cygwin Reply-To: Jeremy Drake 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 57VHS1O62478680 On Sun, 31 Aug 2025, Thierry DECHAIZE via Cygwin wrote: > Hi, > > BigĀ  interest about last version of CLANG 20.1.8 provided with CYGWIN64 > (very good job of portability, since "very old" version of CLANG 8.0 ...). > > I can generate application in version 64 bit with this last compiler (on > Windows 11 64 bit), but nothing do to generate executable 32 bit. > > In my test, linker always use sys-root of GCC in version 64 bit, same if > I parameter option "-m32". > > With same "source" file, I can generate 32 bit executable with MinGW32 > development environment on CYGWIN64. > > What is wrong ? What exactly are you trying to do? Are you trying to compile for 32-bit Cygwin (which is unsupported but should be possible, though I didn't test multilib sysroots)? Or are you trying to cross-compile to 32-bit MinGW (that should absolutely work)? One of the failed tests that needed investigation was mingw sysroot trying to use /usr when it shouldn't, maybe this is what's going on here? -- 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