make-w32
[Top][All Lists]
Advanced

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

Re: pipe read hang on Win 2000


From: Rob Tulloh
Subject: Re: pipe read hang on Win 2000
Date: Wed, 14 Nov 2001 21:37:45 -0600

Well, I am using an older version of GNU make and we have our own port
of GNU bash. I don't see any hang. I will try again with cmd.exe to see if I can
make this happen.

Rob


> C:/temp> cat mkf
>
> CWD:=$(shell pwd)
> PKGDIR = $(shell echo this.is.a.test | sed 's:\.:/:g')
>
> all:
>         echo $(PKGDIR)
> C:/temp> make -f mkf
> echo this/is/a/test
> this/is/a/test
> C:/temp> uname -a
> Windows_NT TULLOHR 5.0 2195+Service_Pack_2 Pentium_Pro
> C:/temp> make -v
> GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
> Built for Windows32
> Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
>         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 .
>
"J.B." wrote:

> Here's a problem I've encountered recently ...
>
> Using the Win32 port of GNU make 3.79.1 on Windows 2000 with either the 
> Cygwin shell, or the MKS sh.exe, or even the Windows cmd.exe I get a hang 
> when running the following makefile:
>
> CWD:=$(shell pwd)
> PKGDIR = $(shell echo this.is.a.test | sed 's:\.:/:g')
>
> all :
>   echo $(CWD)
>   echo $(PKGDIR)
>   echo Done.
>   cd testdir2 && $(MAKE)
>
> The hang appears to be on a pipe read.  Due to my lack of Win32 experience, 
> that's all I can tell.  In addition, this makefile must be in a recursive 
> make, nested about 5 or 6 directories deep, so simply create the following 
> directory directory structure and put a copy of the makefile in each 
> directory and run make at the top level:  
> c:/testdir2/testdir2/testdir2/testdir2/testdir2/testdir2/testdir2
>
> The line of the makefile that causes the problem is the one with the $(shell 
> ...) command.  I can work around the problem by breaking the $(shell ) 
> command into two shell commands, storing the intermediate result in a file 
> and redirecting I/O rather than using a pipe between echo.exe and sed.exe.  
> Also, I've ruled out these two programs as the culprit.  I can use other 
> programs besides echo and sed and get the hang. Also, the problem doesn't 
> happen on Win NT 4.0.
>
> Any help in getting this fixed would be greatly appreciated.
>
> -JB
>
> _______________________________________________
> Make-w32 mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/make-w32

Attachment: tulloh.vcf
Description: Card for Rob Tulloh


reply via email to

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