make-w32
[Top][All Lists]
Advanced

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

Bug in the expansion of $(MAKE) in GNU make 3.81


From: Benoit Sigoure
Subject: Bug in the expansion of $(MAKE) in GNU make 3.81
Date: Thu, 16 Nov 2006 12:42:49 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.0.2)

Hello people,

I am under cygwin and compiled my own GNU make 3.81 from source with this patch
applied:
http://thread.gmane.org/gmane.comp.gnu.make.windows/2058/focus=2147

$ uname -a
CYGWIN_NT-5.1 bf-winxp 1.5.21(0.156/4/2) 2006-07-30 14:21 i686 Cygwin
$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-cygwin
$ cat Makefile
all:
        echo $(MAKE)
        $(MAKE) foo

foo:
        echo foo

Calling make with an absolute UNIX path works as expected:
$ /usr/local/bin/make
echo /usr/local/bin/make
/usr/local/bin/make
/usr/local/bin/make foo
make[1]: Entering directory `/tmp/mk/3'
echo foo
foo
make[1]: Leaving directory `/tmp/mk/3'

However if the absolute path is Windows-style, something very weird happens:

$ C:/cygwin/usr/local/bin/make
echo /tmp/mk/3/C:/cygwin/usr/local/bin/make
/tmp/mk/3/C:/cygwin/usr/local/bin/make
/tmp/mk/3/C:/cygwin/usr/local/bin/make foo
make: /tmp/mk/3/C:/cygwin/usr/local/bin/make: Command not found
make: *** [all] Error 127

where "/tmp/mk/3" is the current working directory.

In case you'd need it, I put the output of make --debug=a @
http://www.tsunanet.net/~tsuna/gnu_make_3.81_bug.log

Cheers,

-- 
SIGOURE Benoit aka Tsuna
   _____
  /EPITA\ Promo 2008, LRDE





reply via email to

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