delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/17/09:46:08

X-Spam-Check-By: sourceware.org
Message-Id: <6.2.3.4.2.20060817090639.0a662c40@pop.nycap.rr.com>
X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4
Date: Thu, 17 Aug 2006 09:43:30 -0400
To: Eli Zaretskii <eliz AT gnu DOT org>
From: "William A. Hoffman" <billlist AT nycap DOT rr DOT com>
Subject: Re: change in behavior of make from 3.80 to 3.81
Cc: cygwin AT cygwin DOT com
In-Reply-To: <E1GDdID-0001Dt-F9@fencepost.gnu.org>
References: <17632 DOT 65094 DOT 528377 DOT 623813 AT segfault DOT lan> <009a01c6bfff$934e8480$a501a8c0 AT CAM DOT ARTIMI DOT COM> <6 DOT 2 DOT 0 DOT 14 DOT 2 DOT 20060814213115 DOT 093f2a40 AT pop DOT nycap DOT rr DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0608142225030 DOT 13215 AT access1 DOT cims DOT nyu DOT edu> <20060815031725 DOT GB18949 AT trixie DOT casa DOT cgf DOT cx> <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20060815083334 DOT 07ab5470 AT pop DOT nycap DOT rr DOT com> <20060815210221 DOT GB4783 AT trixie DOT casa DOT cgf DOT cx> <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20060816092323 DOT 0b449ad0 AT pop DOT nycap DOT rr DOT com> <E1GDdID-0001Dt-F9 AT fencepost DOT gnu DOT org>
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

At 04:31 AM 8/17/2006, Eli Zaretskii wrote:
>> Date: Wed, 16 Aug 2006 09:34:36 -0400
>> From: "William A. Hoffman" <billlist AT nycap DOT rr DOT com>
>> 
>> Actually no, MinGW make is not working for what used to work with cygwin
>> make.   It has a nasty habit of changing cl's command line arguments
>> like /GZ into c:/msys/1.0/GZ.
>
>I think this is the MSYS Make, not what I call ``the MinGW Make''.
>The latter is produced by building the original Make 3.81 sources with
>the MinGW compiler via the build_w32.bat batch file included in the
>source tarball.  If you look in the official Make sources, you will
>not find any code that changes /GZ into something else; in fact, the
>native Windows build doesn't change anything in the command-line
>options of the command being invoked, IIRC.

You are correct.  MSYS Make is the one that has that problem.
My earlier test must have found the wrong make.  However, the mingw
make when correctly in the PATH does not like the makefiles that
have forward / and does not launch processes very well if sh.exe is
in your path.   I can only get it to work from a dos shell with dos
style paths.   CMake can generate dos path makefiles for MinGW Make,
but I usually run from a cygwin shell and create makefiles with unix
style forward /, and this seems not to work.  This may be the wrong
list for this, but since MinGW was recommend as an alternative in
the announcement for make 3.81 it should be fair game to point out
the problems with that suggestion.

I have not dug into the problem yet, but:

Here is a run with the MinGW make, from a cygwin shell:

$ ./make
[ 25%] Built target testc2
[ 50%] Built target testc1
Linking
C
executable
conly.exe
cl : Command line warning D4024 : unrecognized source file type 'CMakeFiles/conl
y.dir/conly.obj CMakeFiles/conly.dir/foo.obj ', object file assumed
LINK : fatal error LNK1104: cannot open file 'CMakeFiles/conly.dir/conly.obj CMa
keFiles/conly.dir/foo.obj'
make.exe[2]: *** [conly.exe] Error 2
make.exe[1]: *** [CMakeFiles/conly.dir/all] Error 2
c:\hoffman\My Builds\CMakeDev\Tests\COnly\b\make.exe: *** [all] Error 2


Here is a run in the same directory with the 3.81 make that I patched:
(also works fine for cygwin 3.80 make)

Hoffman AT VOGON ~/My Builds/CMakeDev/Tests/COnly/b
$ /cygdrive/c/Downloads/make-3.81-build/make
[ 25%] Built target testc2
[ 50%] Built target testc1
Linking C executable conly.exe
[100%] Built target conly


-Bill


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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