delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/02/22:31:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 02 Aug 2002 19:33:58 -0700
From: Andrew Kalman <aek AT pumpkininc DOT com>
Subject: Re: make problem -- does not terminate on error
X-Sender:
To: cygwin AT cygwin DOT com
Message-id: <4.3.2.7.2.20020802192704.00ab2e80@wheresmymailserver.com>
MIME-version: 1.0

Randall Shulz wrote:

>Have you tried running the command that fails (in the same way that "make" 
>runs it under the circumstances in question) in a shell and seeing what 
>error status it reports back? Is it indeed reporting a non-zero exit 
>status (in addition to printing an error diagnostic)?

Good idea. I did:

$ c:/Progra~1/AQ430/aq430.exe +s -D__AQCOMPILER__ -DOSMAKE_LIBRARY 
-DOSLIBRARY_TYPE=OSF -DOSLIBRARY_CONFIG=OSA -I../inc/ 
-Ic:/Progra~1/AQ430/include/ -link license.c
002 Pumpkin, Inc. and its" "Licensor(s). All Rights Reserved.";
                                                              |
"license.c", line 33: Character string too long (> 510 characters)
1 fatal error
aq430: aq430c error return -1 -- processing terminated
$ echo $?
0

 From what I just read on google groups :-), I believe this is a correct 
way to obtain aq430.exe's return code in this case. I also tried:

$ rm file.does.not.exist
rm: cannot remove 'file.does.not.exist': No such file or directory
$ echo $?
1

Just to be sure ...

So, it looks like for whatever reason, aq430.exe returns a 0 in this case 
in the Cygwin environment, but a proper error code (I presume -1) in mingw. 
Therefore it's not a make issue, but rather has something to do with the 
way aq430.exe is interacting with the shell ... Very odd.

Regards,







---------------------------------------------------------------
Andrew E. Kalman, Ph.D.      aek AT pumpkininc DOT com

Pumpkin, Inc.
home of Salvo, The RTOS that runs in tiny places.(TM)
http://www.pumpkininc.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019