Wed 07 May 2003 10:00:44 AM UTC, comment #3:
I re-tested two different builds of GNU Make 3.79.1 and
found that the one in the stock MinGW distro turns out
to be very subtly broken. The one distributed with
MSYS runs cleanly through the problematic section of a
configure script that MinGW chokes on.
The short version of what's happening:
> eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
> sh: unexpected EOF while looking for matching `"'
> sh: syntax error: unexpected end of file
and
> eval `${MAKE-make} -f conftestmake`
> sh: unexpected EOF while looking for matching `"'
> sh: syntax error: unexpected end of file
MinGW's make chokes when it hits this line in conftestmake:
> @echo 'ac_maketemp="${MAKE}"'
Somehow the sequence =" is not being parsed properly.
Note the original command with no space, here:
> $ cat conftestmake.SAV
> all:
> @echo 'ac_maketemp="${MAKE}"'
>
> $ ${MAKE-make} -f conftestmake.SAV
> ac_maketemp=\c:/Dev-Cpp/bin/make.exe"
>
> $ ^^^^ it eats the quote
versus a tweaked command with a space, here:
> $ cat conftestmake.SAV
> all:
> @echo 'ac_maketemp= "${MAKE}"'
>
> $ ${MAKE-make} -f conftestmake.SAV
> ac_maketemp= "c:/Dev-Cpp/bin/make.exe"
>
> $
For reference:
*BAD* MINGW /mingw/bin/mingw32-make.exe:
$ /mingw/bin/mingw32-make.exe --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for mingw32 ...
*GOOD* MSYS 1.0.8 /bin/make.exe:
$ /bin/make.exe --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i686-pc-msys ...
f97b4a805d7ec4c63ad829c822c4c42b */mingw/bin/mingw32-make.exe
74669d64322783e14b8b3b1ed697f855 */bin/make.exe
-rwxr-xr-x 124416 Sep 7 2002 /mingw/bin/mingw32-make.exe
-rwxr-xr-x 1125488 Dec 9 07:57 /bin/make.exe
|