bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cygwin make (GNU make v3.79.1) incompatibility with Tornado2.2 ccppc


From: Paul D. Smith
Subject: Re: cygwin make (GNU make v3.79.1) incompatibility with Tornado2.2 ccppc
Date: Tue, 20 Jul 2004 11:35:38 -0400

%% "Zhang Yu" <address@hidden> writes:

  zy> I hit a weird error when cygwin make (GNU make v3.79.1 built for
  zy> i686-pc-cygwin)

Please be aware that the Cygwin version of GNU make is not identical to
the version provided by the FSF; this list only supports versions
provided by the FSF.  You may have to contact a Cygwin mailing list for
support for your version of GNU make.

  zy> is used together with Tornado2.2 ccppc. "ccppc -M" to build the
  zy> dependencies for a source file will cause make to return Error 1
  zy> without error message.

This error code is simply the exit code of the program that make runs.
Make doesn't know what it means: it figures out whether the command it
invoked passes or fails through the exit code.  In standard UNIX fashion
an exit code of 0 means success, any other code means failure.

  zy> d:/Tornado2.2/host/x86-win32/bin/ccppc -M z.c > z.x 
  zy> make: *** [all] Error 1 

This merely means that the ccppc program exited with an error code of 1
instead of 0.  That's nothing to do with make, and everything to do with
ccppc.

  zy> Now execute the ccppc line directly in cygwin, succeed with z.x
  zy> correctly generated: 

  zy> %d:/Tornado2.2/host/x86-win32/bin/ccppc -M z.c > z.x 

If you were to look at the exit code here I'm sure it would be 1, and
not 0.  I don't know how to see the exit code of the last command in
Windows though.  In a UNIX Bourne shell you would use "echo $?".  I
think in a UNIX C shell it's "echo $status".


Anyway, this isn't an issue with make.  Good luck!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]