make-w32
[Top][All Lists]
Advanced

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

Re: w32 gmake: can't echo long strings (fwd)


From: Greg Chicares
Subject: Re: w32 gmake: can't echo long strings (fwd)
Date: Thu, 12 Sep 2002 08:31:11 -0400

Ted Phares wrote:
> 
> On Thu, 12 Sep 2002, Greg Chicares wrote:
> 
> > Ted Phares wrote:
> > >
> > > Using GNU make version 3.79.1 under win32:
> > >
> > > I notice that gmake chokes if a rule includes a command that attempts
> > > to echo a string > 94 characters long.
> > [snip testcase]
> > >
> > > Is this a known issue?
> >
> > It may depend on whatever operating system or
> > shell you're using. If you're using cmd.exe or,
> > worse, command.com, but are interested in a
> > different shell, I've found this one
>         ...
> 
> The build environment is Win2000.  The problem doesn't appear to be the
> shell's fault; cmd.exe has no problem executing the same command on its
> own.  Additionally, gmake exhibits the same behavior when told to use sh.
> 
> (For what it's worth, I'm using cmd.exe because I'm porting a bunch of
> makefiles that were previously used with Borland make & contain a lot of
> DOSisms.)

I cut and pasted your makefile--here, I'll
paste back from my copy to be sure:

---makefile begin---
FOO = 0---------1---------2---------3--------\
4---------5---------6---------7---------8---------9-----

.PHONY: fooout
fooout:
        @echo Im about to die
        @echo $(FOO)
---makefile ends---

and it works for me with this version of win2k:

  Microsoft Windows 2000 [Version 5.00.2195]
  (C) Copyright 1985-2000 Microsoft Corp.

  C:\tmp\ted>make
  Im about to die
  0---------1---------2---------3-------- 
4---------5---------6---------7---------
  8---------9-----

whereas you don't see $(FOO) echoed back.

Let's compare the output of

  C:\tmp\ted>make --version
  GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
  Built for mingw32
  Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
          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.

  Report bugs to <address@hidden>.

Note that line
  Built for mingw32
I've seen several different win32 ports of make-3.79.1
released as prebuilt .exe's; this one is apparently either
  http://prdownloads.sourceforge.net/mingw/make-3.79.1-20010722.tar.gz
or
  
ftp://ftp.franken.de/pub/win32/develop/gnuwin32/mingw32/porters/Mikey/make377-ming.tar.bz2
which you can confirm by matching the md5sum
  C:\tmp\ted>md5sum \usr\bin\make.exe
  f97b4a805d7ec4c63ad829c822c4c42b  \\usr\\bin\\make.exe

Here's another one that works; it's from mingw.org,
and I'm not sure it's intended for use with CMD.EXE
(it may be specially adapted for this environment:
  http://www.mingw.org/msys.shtml
) but anyway

  C:\tmp\ted>md5sum \usr\bin\make.exe
  f97b4a805d7ec4c63ad829c822c4c42b  \\usr\\bin\\make.exe

  C:\tmp\ted>md5sum \msys\1.0\bin\make.exe
  f703d8e1d5e669d202b25af0b78c5632  \\msys\\1.0\\bin\\make.exe

  C:\tmp\ted>\msys\1.0\bin\make.exe --version
  GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
  Built for i686-pc-msys
  Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
          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.

  Report bugs to <address@hidden>.


  C:\tmp\ted>\msys\1.0\bin\make
  Im about to die
  0---------1---------2---------3-------- 
4---------5---------6---------7---------
  8---------9-----

If one of those works for you, then the problem is
your make.exe . Otherwise...console settings? I dunno.




reply via email to

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