delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/18/08:46:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3BA74211.8020907@milohedge.com>
Date: Tue, 18 Sep 2001 13:46:09 +0100
From: Robert Bogomip <bob DOT bogo AT milohedge DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.3) Gecko/20010801
X-Accept-Language: en-us
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: "make -j _n_" hangs reproduceably in latest cygwin 1.3.3-2

uname -a: CYGWIN_NT-5.0 MACH 1.3.3(0.46/3/2) 2001-09-12 23:54 i686 unknown

Sigh, sad but true.

Consider this makefile which will create 50 independent targets, taking
one second elapsed for each file:

   files:=$(addsuffix .t,$(foreach j,0 1 2 3 4,$(foreach i,0 1 2 3 4 5 6 7 8 9,${j}${i})))

   .PHONY: test
   test: ${files}
   	@echo test complete

   .PHONY: clean
   clean:
   	rm -f ${files}

   %.t:
   	sleep 1
   	touch $@

If you run with "make -j10" this should complete in 5 seconds(-ish).
Unfortunately it invariably hangs on my machine (Dual PIII 733, Win2000)
after the second set of sleeps. Strangely, "make -j _n_" works for all
values of _n_ < 9.

Take out the sleep and it works fine.

Replace the sleep with some other dodgy delay,

   a=`date`; while [ x"$$a" = x"`date`" ]; do :; done

causes it to hang for different values of _n_.

Go back to the previous version of the cygwin dll, 1.3.2-1 and it works fine.
(uname -a: CYGWIN_NT-5.0 PANG 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown)

Hope this helps.
-- 
Robert Bogomip /// mailto:bob dott bogo att milohedge.com
Milo Hedge Ltd, OCFI, Mill Street, Oxford, OX2 0JX /// tel:+44 1865 799400


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019