delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/17/14:38:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Rolf Campbell <thats DOT unpossible AT gmail DOT com>
Subject: Re: gmake -r -p -n problem on fast computers: erroneous thread activa tion
Date: Thu, 17 Feb 2005 14:37:46 -0500
Lines: 66
Message-ID: <cv2rkv$m5$1@sea.gmane.org>
References: <9587061CFA8BD511878400D0B7828EE610F6671F AT zfr11exm01 DOT ea DOT freescale DOT net>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: ottgw.tropicnetworks.com
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
In-Reply-To: <9587061CFA8BD511878400D0B7828EE610F6671F@zfr11exm01.ea.freescale.net>
X-Gmane-MailScanner: Found to be clean
X-Gmane-MailScanner: Found to be clean
X-MailScanner-From: goc-cygwin AT m DOT gmane DOT org
X-MailScanner-To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

Upgrade your cygwin to the newest snapshot, that has that problem fixed.

Guerte Yves-r57319 wrote:
>     Hi,
> I have problems with gmake on the new computers I use (and not with the same Cygwin version with older computers).
> I do gmake -r -p -n  and parse the output to get some variables content. The problem occurs when a variable is computed using the $(shell ...) command.
>  
> I shortened the makefile and wrote a small script that shows the problem.
> Use example (put test.mk and run_test_simple.csh at the same place):
>  
> run_test_simple.csh
> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
> 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
> 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
> 118 119 120 121 122       1 [exiting thread] gmake 1912 cygthread::stub: erroneous thread activation
> 
>  
> Thanks for your help.
> Best regards,
> Yves
>  
> -- run_test_simple.csh file ------------------------------------------------------------------------------------------
> #!/usr/bin/tcsh -f
>  
> # I create multiple empty files
> #
> mkdir -p test_src
> set i=0
> while ($i <= 363)
>   touch test_src/$i.c
>   @ i++
> end
>  
> # I build a gmake output reference file
> #
> gmake -f test.mk  -r -p -n | grep 'SRC_WITH_MAIN *:=' > liste_simple.ref
> set n=0
> set i=0
>  
> # And I repeat calling gmake
> #
> while ( $n == 0 )
>     # sleep 1
>     @ i++
>     echo -n "$i "
>     gmake -f test.mk -r -p -n | grep 'SRC_WITH_MAIN *:=' > liste_simple.txt
>     set n=`diff -wBq liste_simple.txt liste_simple.ref | wc -l`
> end
> cp liste_simple.txt liste-differ_simple.txt
> exit 0
>  
>  
> -- test.mk file -------------------------------------------------------------------------------------------------------
> SRC_DIR := test_src
>  
> C_EXT     = c
> CPP_EXT   = cpp
> SRC_EXTLIST = $(C_EXT) $(CPP_EXT)
>  
> SRC_FILES        := $(foreach EXT,$(SRC_EXTLIST),$(wildcard $(SRC_DIR)/*.$(EXT)))
> SRC_WITH_MAIN    := $(shell ls -1 $(SRC_FILES))
>  
> all : ; @printf '%s\n' $(SRC_WITH_MAIN)
> 
>  
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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