gmake -r -p -n problem on fast computers: erroneous thread activa tion

Rolf Campbell thats.unpossible@gmail.com
Fri Feb 18 10:29:00 GMT 2005


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/



More information about the Cygwin mailing list