process_begin: CreateProcess(NULL, "", ...) failed

Fabrice GIRARDOT <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Organization Parkeon
Message-ID <[email protected]>
Hi all.

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

After some investigations, it is linked to a $(shell xxx)
command present in my Makefile.

Here is a small Makefile that shows the problem :

-------- Makefile ----------

SHELL := cmd.exe

MY_VAR := $(shell echo hello world)
$(info MY_VAR=$(MY_VAR))

.PHONY: all

all:
         @echo Doing target $@

-------- /Makefile ---------

and the corresponding output :

C:\my_dir>gnumake
MY_VAR=hello world
Doing target all

C:\my_dir>gnumake -n
process_begin: CreateProcess(NULL, "", ...) failed.
MY_VAR=
echo Doing target all

I had a look at the archive of this list, but could not find
any related topic.


Any ideas ?


For information, my gnumake is a out-of-the-box compilation
of make using "build_w32.bat".


Regards.

-- 
Fabrice GIRARDOT
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.