bug-make
[Top][All Lists]
Advanced

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

Re: [patch] parallel make bug with failing commands


From: psmith
Subject: Re: [patch] parallel make bug with failing commands
Date: Sun, 7 Aug 2005 22:30:56 -0400

Hi Michael;

Thanks for a most excellent bug report!  I was able to easily follow the
path you described and see the bug.  I used essentially your fix (with a
few minor syntactic tweaks).

FYI, following your notes I was able to produce a makefile which is
guaranteed to show the bug every time, regardless of # of CPUs or other
factors.  The trick is to use sleep to ensure that the various targets
complete in the proper order to display the bug; see below.

Thanks again!


.PHONY: all fail.1 fail.2 fail.3 ok
all: fail.1 ok fail.2 fail.3

fail.1 fail.2 fail.3:
        @sleep $(patsubst fail.%,%,$@)
        @echo Fail
        @exit 1

ok:
        @sleep 4
        @echo ok done
-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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