X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type; q=dns; s=default; b=IkWBl nufVDroRI5UY16iTjLNm+AqDD8SB33BoboaGwqQMbElL+2C+LeOh+7atL8TpXUF2 EFYu6uI47NwUzVuscOz19XIgHi1hX7qbmzf/pmV+Wch8oXtzRw86UBmgwg6uwyvD 6+qoFqKjBqu0Zjh93aJiyVsbeCiUCW6WnSGdLU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:in-reply-to:message-id :references:mime-version:content-type; s=default; bh=drBTTpyjeVI TDY2WDOnfFTuRph0=; b=TFu0ANNncSRXuLH+ZNU+cggeq13uHpsMuk3ppchs+jw NYsl3VhrNw5K36mGqbpjd2ZArq6X7Bk/729Z9XQxyiMH1KX8XZgT/jY8HsKDImcU mjcy6S6336McZXdgWhwcC2j2JekWvPaA2PduV74y0G/EhhywXtcBNecSjFUV8ycU = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Date: Thu, 23 May 2013 10:26:52 -0500 (CDT) From: Satish Balay To: cygwin AT cygwin DOT com Subject: Re: make, PATH & "Win32 error 487" In-Reply-To: Message-ID: References: User-Agent: Alpine 2.03 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 23 May 2013, Satish Balay wrote: > Hi, > > I'm seeing the following behavior with make, PATH on cygwin. Google > brought up a related post [with PATH and same error] > http://comments.gmane.org/gmane.os.cygwin/137168 with reference to > http://cygwin.com/acronyms/#BLODA as the issue - but I don't > understand how this would apply to this case. Hence this post. Looks like my search was not exhaustive. I see another similar report http://sourceware.org/ml/cygwin/2011-02/msg00416.html Satish > > Attaching a makefile that demonstrates this problem. The following are > my observations. > > - The breakage is observable - when I have 2 commands invoked via 'make' > either as 'cmd1|cmd2' or 'cmd1; cmd2'. The same command executed directly > by a shell script runs fine. Or single command from make runs fine as well. > - It appears to be related to the huge length of one of the commands - and > length of PATH > - I tried it on 3 different machines [with differences in default installed software] > win2008/x64 - breaks when PATH is over 1.5K chars > win2003/x32 - breaks when PATH is over 2K chars > win7/x32 - breaks when PATH is over 20K chars. > > Any ideas on how to debug this further to better understand the issue > - or workarrounds? This is with latest cygwin [and rebaseall done > correctly] > > [Note: I won't have control over cygwin-registery or user env such as > PATH - but I will have control over what I can add to makefile which I > distribute] > > BTW: wrt BLODA - I'm increasing the PATH length with: 'export > PATH=$PATH:$PATH' - so the "Big List Of Dodgy Apps" should be the same > in both cases? > > thanks, > Satish > > ---------------- > > balay AT msnehalem2 ~ > $ echo $PATH > /usr/local/bin:/usr/bin:/cygdrive/c/Program Files/Microsoft HPC Pack 2012/Bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/MPICH2/bin:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/c/Program Files/Microsoft Windows Performance Toolkit:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/90/Tools/binn:/cygdrive/c/Program Files (x86)/Intel/Compiler/Fortran/10.1.019/EM64T/Lib:/cygdrive/c/Program Files/Mellanox/WinMFT:/cygdrive/c/Program Files/Mellanox/MLNX_VPI/IB/Tools:/usr/lib/lapack > > balay AT msnehalem2 ~ > $ echo $PATH |wc -c > 765 > > balay AT msnehalem2 ~ > $ ./test.sh > 30621 > > balay AT msnehalem2 ~ > $ make -f test.mk > 30621 > > balay AT msnehalem2 ~ > $ export PATH=$PATH:$PATH > > balay AT msnehalem2 ~ > $ echo $PATH |wc -c > 1530 > > balay AT msnehalem2 ~ > $ ./test.sh > 30621 > > balay AT msnehalem2 ~ > $ make -f test.mk > 0 [main] sh 6952 child_info_fork::abort: can't commit memory for stack 0x28A000(90112), Win32 error 487 > /bin/sh: fork: retry: Resource temporarily unavailable > 0 [main] sh 7580 child_info_fork::abort: can't commit memory for stack 0x28A000(90112), Win32 error 487 > /bin/sh: fork: retry: Resource temporarily unavailable > 0 [main] sh 10048 child_info_fork::abort: can't commit memory for stack 0x28A000(90112), Win32 error 487 > /bin/sh: fork: retry: Resource temporarily unavailable > 0 [main] sh 3000 child_info_fork::abort: can't commit memory for stack 0x28A000(90112), Win32 error 487 > /bin/sh: fork: retry: Resource temporarily unavailable > 0 [main] sh 5380 child_info_fork::abort: can't commit memory for stack 0x28A000(90112), Win32 error 487 > /bin/sh: fork: Resource temporarily unavailable > test.mk:2: recipe for target `all' failed > make: *** [all] Error 254 > > balay AT msnehalem2 ~ > $ -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple