#1238 mingw32-make 3.81 confused by quotes (sample Makefile)

OTHER
closed
nobody
make (27)
wont-fix
Known_Feature
2013-01-23
2009-01-15
Felix Kater
No

Hi,

mingw32-make.exe 3.81 gets confused by quotes.
Note: make.exe 3.71.1 works correctly.

Reproduced on w2k and xp.

Details:

Use the sample Makefile.

First run ONCE 'make create_file' (or 'mingw32-make create_file') to create the sample file test.dat.

This file will contain: abc\def

Now run the targets 'err1', 'err2', 'ok1', 'ok2', 'ok3' with 'make' and then with 'minw32-make'.

Target 'err1':
------------

var_err1=-D'MYVAR=\"$(shell sed -e 's/\\/_/g' test.dat)\"'

err1:
echo "$(var_err1)"

Results:

make.exe (ok): -D'MYVAR="abc_def"'
mingw32-make (err): -D'MYVAR="ab

Target 'err2':
------------

var_err2=MYVAR="$(shell sed -e 's/\\/_/g' test.dat)"

err2:
echo "$(var_err2)"

Results:

make.exe (ok): MYVAR=abc_def
mingw32-make (err): MYVAR=abc_de

Targets 'ok1', 'ok2', 'ok3'
-------------------------

var_ok=$(shell sed -e 's/\\/_/g' test.dat)

ok1:
echo "$(var_ok)"

ok2:
echo "$(var_err1)" > test2.dat

ok3:
echo "$(var_err2)" > test2.dat

make/mingw32-make (ok1): abc_def
make/mingw32-make (ok2): correct output into test2.dat
make/mingw32-make (ok3): correct output into test2.dat

Last but not least:

The output files test2.dat viewed with vim are ok,
however, 'cat.exe test2.dat' (coreutils 5.97) truncated the output similarily wrong to mingw32-make.

Hope someone can deal with this.
Thank You!

Felix

Discussion

  • Felix Kater
    Felix Kater
    2009-01-15

    sample Makefile

     
    Attachments
  • Felix Kater
    Felix Kater
    2009-01-15

    I hope the category 'MinGW' is correct.

    Some more version information: sed.exe is of version 4.1.5

    And these are the packages I took the binaries from:
    w32api-3.13-mingw32-dev.tar.gz
    binutils-2.19-mingw32-bin.tar.gz
    gcc-core-3.4.5-20060117-3.tar.gz
    gcc-g++-3.4.5-20060117-3.tar.gz
    gdb-6.8-mingw-3.tar.bz2
    mingw32-make-3.81-20080326-3.tar.gz
    mingwrt-3.15.2-mingw32-dll.tar.gz
    mingwrt-3.15.2-mingw32-dev.tar.gz
    mingw-utils-0.3.tar.gz
    MSYS-1.0.11-20071204.tar.bz2
    msysCORE-1.0.11-2007.01.19-1.tar.bz2
    grep-2.5.3-bin.zip
    grep-2.5.3-dep.zip
    sed-4.1.5-bin.zip
    sed-4.1.5-dep.zip

     
  • Earnie Boyd
    Earnie Boyd
    2009-01-15

    mingw32-make simply doesn't work with MSYS. Use the make that comes with MSYS when using MSYS. If you want more recent versions of make for MSYS then use the updates in the Technological Preview.

     
  • Earnie Boyd
    Earnie Boyd
    2009-01-15

    • milestone: --> Known_Feature
    • status: open --> closed-wont-fix
     
  • Earnie Boyd
    Earnie Boyd
    2013-01-23

    • labels: MinGW --> make
    • status: closed-wont-fix --> closed
    • resolution: --> wont-fix
    • category: --> Known_Feature
    • milestone: Known_Feature --> OTHER