cs-make looks to have old Windows related "make -n" bug, any workaround?

Tom Evans tom_usenet at optusnet.com.au
Thu Jul 29 06:38:38 UTC 2010


I'm trying to run "cs-make -n" or "cs-make --dry-run" in order to get a 
list of all the commands in order to investigate a different problem.

This gives:

     "/cygdrive/c/Program Files/CodeSourcery/Sourcery G++
      Lite/bin/cs-make" -C system

     process_begin: CreateProcess(NULL, "", ...) failed.
     make (e=87): The parameter is incorrect.
     cs-make: *** [system/system.a] Error 87

You'll notice that the Makefile I'm using calls subsidiary Makes. It has 
targets like:

     usb/usb.a:
         $(MAKE) -C usb

     system/system.a:
         $(MAKE) -C system

     gui/gui.a:
         $(MAKE) -C gui

The "DETAILS" section details that this is a known bug in that version 
of Make.

Is there a workaround for this? Is there a newer build available 
incorporating the patches to fix this?

!! Gnu Make 3.82 was released YESTERDAY !!

This bug probably applies to all of the other distributions (ARM etc).


DETAILS
=======

I've been running this version of cs-make:

     $ cs-make --version
     GNU Make (Sourcery G++ Lite 4.3-208) 3.81

I've just upgraded to the latest to see if it fixed the problem:

     $ cs-make --version
     GNU Make (Sourcery G++ Lite 4.4-215) 3.81
     Copyright (C) 2006  Free Software Foundation, Inc.

It is still based on Make 3.81. It has the same bug as the previous one.

Google finds the following reports matching this from 2006 and 2008:

     http://savannah.gnu.org/bugs/?16362

     $ make --version
     GNU Make 3.81

     Sat May 27 13:09:45 2006, comment #3:

     The following patch fixes this bug:
     ...

Also:

     http://www.mail-archive.com/make-w32@gnu.org/msg01859.html

     Re: process_begin: CreateProcess(NULL, "", ...) failed
     Eli Zaretskii
     Mon, 17 Mar 2008 13:39:36 -0700
     > Date: Mon, 17 Mar 2008 14:34:06 +0100
     > From: Fabrice GIRARDOT <[EMAIL PROTECTED]>
     >
     > Using GNU Make 3.81 compiled for Win32, I got this error message
     > when I run Make with the "-n" option :
     >
     > process_begin: CreateProcess(NULL, "", ...) failed
     Yes, this is a known bug in Make 3.81.  If you can build Make
     from sources, please try the following two patches (apply
     them in order):

-- 
=========
Tom Evans





More information about the coldfire-gnu-discuss mailing list