Re: Infinite loop bug with parallel make

2013-02-22 Thread Shachar Shemesh
On 02/23/2013 04:38 AM, Paul Smith wrote: > On Sat, 2013-02-23 at 02:32 +, Ian Lynagh wrote: >> The problem was that our compiler generates 2 output files (foo.o and >> foo.hi) when compiling one source file, and we had thus ended up with >> a bunch of rules like >> %.hi: %.o ; > The right

Re: Infinite loop bug with parallel make

2013-02-22 Thread Paul Smith
On Sat, 2013-02-23 at 02:32 +, Ian Lynagh wrote: > The problem was that our compiler generates 2 output files (foo.o and > foo.hi) when compiling one source file, and we had thus ended up with > a bunch of rules like > %.hi: %.o ; The right way to declare a rule that generates multiple tar

Re: Infinite loop bug with parallel make

2013-02-22 Thread Ian Lynagh
Hi Sebastian, On Sat, Feb 23, 2013 at 12:24:11AM +0100, Sebastian Pipping wrote: > On 22.02.2013 03:31, Ian Lynagh wrote: > > > Also, is there a way to tell make not to treat any file as intermediate? > > I think that it's possible that this would work around the problem. > > If that's not possi

Re: Infinite loop bug with parallel make

2013-02-22 Thread Sebastian Pipping
On 22.02.2013 03:31, Ian Lynagh wrote: > > Hi all, > > The attached Makefile causes an infinite loop with parallel make when > using make 3.81 (on amd64/Linux): > > $ make setup > touch B.hs A.hs > sleep 2 > touch B.hi B.dyn_hi > sleep 2 > touch B.o B.dyn_o > sleep 2