X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 69FB23858291 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1708585291; bh=i5bzZdp80Z9pacl7k48utQqkag1VZUy5kSTJIy4Btpc=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=DwCODCAgbiygwtKb1vTeoTkfwUiSYV0svwDWFLEAqonTfSjcTlOmKmvDnQ6duUsMQ 8KVa3h9qz0NByXS9SuUK1Efw2fv49x8nO2EQcJ4n9wnWXlFsrdynn5PFYZ9ZS1Ul6n 5QfU+EeWNe/cIWQ5CMC1XXY5JM8Ypzy0KFl8R/V4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5AF33385828D ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5AF33385828D ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708585267; cv=none; b=LCnZuVrlVjPefJkxWlQoFSllqK+ZnHbxTiln47WxK+hdh60W1DAV5vlE1Afv88UK11ju58lhdwEKlTiCiN2YW1dDUecz7I4yOCFoHpgdWccG5z2Nexr45nT0pLsOsqQn0EiEkdi6HV3I6pegv2cNScIhF5mwsBRWnBQ05tC//5k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708585267; c=relaxed/simple; bh=Piwf8JOkOeM8fRAHRRya8W2xtIvf9Y2Sn027xVP1O4k=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=xN6gaUqBpFKMbxNM9YQC/ipi3Auoj7Y4ySzaeRrTtIOaFd8RRI5ix5AnODeoV6WSfTpSn+kUH+Jvhp21JTdFrlkQR/1G1ANSydx/JKLV/C2fDZO1+P66aeX7ie4T+lsdyUhneNNuoiWC7NfRaMjJ1e8m4fgfTM4jON+pHPoJsS0= ARC-Authentication-Results: i=1; server2.sourceware.org X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfggtgesthdtredttddtvd enucfhrhhomhepufgrthhishhhuceurghlrgihuceosggrlhgrhiesfhgrshhtmhgrihhl rdhfmheqnecuggftrfgrthhtvghrnhepudefledvleeiheevtdejhfegtdfflefhleegle ejgfdthfelieektdelgeehuedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepsggrlhgrhiesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Feedback-ID: ic12341ac:Fastmail Date: Thu, 22 Feb 2024 11:46:39 +0530 (IST) To: cygwin AT cygwin DOT com Subject: cl: on failure - there is no shell error code returned with cygwin-3.5.0-1 Message-ID: MIME-Version: 1.0 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Satish Balay via Cygwin Reply-To: Satish Balay Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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 ======================================== -- 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