X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0C1B3858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1708585978; bh=pg6vExNuckAVPgnL2fksPp5ldUKr7oNMQB7SmKyyMR0=; 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=hVZGPYS2Egdg2jJ3GzzaoM+3ml3R4+UBIoq1qHwI5U8exfb2fDYOXAMr5nLjh8BnF AF4ebt50AJgNhLDAfu/C87m4ntm/NmFxvMgoIE0KDCng5a8w5tGLqoxuC1lgtn/cRt Pzo2QFwcu2Qh5OxZ2F8ueO00Txb2reTe4ERAuiQM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E1F143858CD1 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E1F143858CD1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708585957; cv=none; b=ddMhhPQjSDKIDbTnQCHWV3gkBCwIStObCX1SG2xpByy7tPGttYSRKWVB8zPcBS8xUhkvumlDcyHsm3lDajgdGRNFt7hAFDlwbw86SqvQ5Qg7rLJ6R/VaBGh3cYCKLPryjYfRio0h1A7nnCsFSxK8z8MoF0Kpj+Ob5CtxcFEj8rI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708585957; c=relaxed/simple; bh=46dKyYBt2YAI0hisBxo8BVhjZ3k155oNn2+8nzphp2w=; h=Date:From:To:Subject:Message-Id:Mime-Version; b=pLXCGQsC2o4osx6gAmYKmLyBedtkk+LYwMZmVSJCLac4gGUviYutD3iSvwSU9szm6tdKFWPFCEDWj46CJvtLjM/1LamTsAeE9MbYoyfAzGRBsBnPGdlP8rXMRLX57tBy1gNUNkWWV1lPlt4CqMUUB50Y1M+eOxn/5LeXjpSZE/U= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Thu, 22 Feb 2024 16:12:31 +0900 To: Cc: Satish Balay Subject: Re: cl: on failure - there is no shell error code returned with cygwin-3.5.0-1 Message-Id: <20240222161231.f7590eebd87f42c62281af04@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, KAM_ASCII_DIVIDERS, KAM_DMARC_STATUS, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: Takashi Yano via Cygwin Reply-To: Takashi Yano Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Thu, 22 Feb 2024 11:46:39 +0530 (IST) Satish Balay wrote: > Usage: Invoke 'cl' from cygwin/bash. i.e: > > - run 'Visual Studio CMD' to setup MS compilers in dos shell > - run 'c:\cygwin64\cygwin.bat' [or 'c:\cygwin64\bin\bash --login'] > - run 'cl /c test.c' > > With cygwin upgrade to 3.5.0-1 - I'm not seeing "error return codes" on compile failures. > > However - this works again after downgrading to 3.4.10-1. > > Note: This works with 3.5.0-1 - if I use 'mintty' - instead of 'cygwin.bat' or 'bash --login' from 'Compiler CMD' > > Perhaps a bug in current cygwin release? > > thanks, > Satish > > ======================================== > C:\Program Files\Microsoft Visual Studio\2022\Community>\cygwin64\bin\bash --login > > balay AT ps5 ~ > $ uname -a > CYGWIN_NT-10.0-22631 ps5 3.5.0-1.x86_64 2024-02-01 11:02 UTC x86_64 Cygwin > > balay AT ps5 ~ > $ cat test.c > error > > balay AT ps5 ~ > $ cl /c test.c > Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33134 for x64 > Copyright (C) Microsoft Corporation. All rights reserved. > > test.c > test.c(2): fatal error C1004: unexpected end-of-file found > > balay AT ps5 ~ > $ echo $? > 0 > ======================================== > C:\Program Files\Microsoft Visual Studio\2022\Community>\cygwin64\bin\bash --login > > balay AT ps5 ~ > $ uname -a > CYGWIN_NT-10.0-22631 ps5 3.4.10-1.x86_64 2023-11-29 12:12 UTC x86_64 Cygwin > > balay AT ps5 ~ > $ cl test.c > Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33134 for x64 > Copyright (C) Microsoft Corporation. All rights reserved. > > test.c > test.c(2): fatal error C1004: unexpected end-of-file found > > balay AT ps5 ~ > $ echo $? > 2 > ======================================== Thanks for the report. This bug has already has been fixed in current git head and will be fixed in 3.5.1. https://cygwin.com/pipermail/cygwin-patches/2024q1/012612.html -- Takashi Yano -- 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