Re: Infinite loop bug with parallel make

2013-02-23 Thread Ian Lynagh
On Sat, Feb 23, 2013 at 03:45:59PM -0500, Paul Smith wrote: > > I've never really been clear on the purpose and use of .SECONDARY; the > comments in both the GNU make manual and in the code seem odd to me. I > would really appreciate anyone out there who is using this (either for > specific targe

Re: Infinite loop bug with parallel make

2013-02-23 Thread Ian Lynagh
Hi Shachar, On Sat, Feb 23, 2013 at 06:57:27AM +0200, Shachar Shemesh wrote: > > What I'm also interested in is why .SECONDARY made everything slow. I've put a cut-down makefile demonstrating this here: http://urchin.earth.li/~ian/tmp/Makefile First run $ make setup (which creates some

Re: Infinite loop bug with parallel make

2013-02-23 Thread Ian Lynagh
On Sat, Feb 23, 2013 at 01:50:38PM +, Ian Lynagh wrote: > On Fri, Feb 22, 2013 at 09:38:22PM -0500, Paul Smith wrote: > > On Sat, 2013-02-23 at 02:32 +0000, Ian Lynagh wrote: > > > The problem was that our compiler generates 2 output files (foo.o and > > > foo.hi

Re: Infinite loop bug with parallel make

2013-02-23 Thread Ian Lynagh
On Fri, Feb 22, 2013 at 09:38:22PM -0500, Paul Smith wrote: > On Sat, 2013-02-23 at 02:32 +0000, 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 > >

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 pro

Infinite loop bug with parallel make

2013-02-21 Thread Ian Lynagh
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 touch A.dyn_hi sleep 2 touch A.o A.dyn_o $ make

Re: make goes into an infinite loop

2013-01-08 Thread Ian Lynagh
On Tue, Jan 08, 2013 at 08:52:59AM -0800, David Boyce wrote: > On Tue, Jan 8, 2013 at 8:37 AM, Ian Lynagh wrote: > > Well, ideally I'd like to find a solution that doesn't require all the > > users to install a newer make. But I'll do some more diagnosis and see >

Re: make goes into an infinite loop

2013-01-08 Thread Ian Lynagh
Hi David, On Tue, Jan 08, 2013 at 07:13:18AM -0800, David Boyce wrote: > > You don't mention a platform so I will assume Linux. Ah, sorry; the log was from OS X, but I had the same problem on Linux/amd64. > GNU make 3.81 dates from 2006, and 3.82 was released in 2010. That's a lot > of bugfixe

make goes into an infinite loop

2013-01-07 Thread Ian Lynagh
Hi all, I've got a makefile for a large project which appears to send make into an infinite loop. I wonder if anyone could help me work out what is going wrong, and how to fix it, please? Unfortunately, it does so after about 30mins of compiling with parallel make (using e.g. -j5), and making a

[bug #28456] Expansion of $$< is incorrect

2009-12-31 Thread Ian Lynagh
URL: Summary: Expansion of $$< is incorrect Project: make Submitted by: igloo Submitted on: Fri Jan 1 01:37:37 2010 Severity: 3 - Normal Item Group: Bug

[bug #28426] make parses dependencies incorrectly

2009-12-28 Thread Ian Lynagh
URL: Summary: make parses dependencies incorrectly Project: make Submitted by: igloo Submitted on: Mon 28 Dec 2009 12:23:51 GMT Severity: 3 - Normal Item Group: Bug

[bug #28425] Literal HTML markup on webpage

2009-12-28 Thread Ian Lynagh
URL: Summary: Literal HTML markup on webpage Project: make Submitted by: igloo Submitted on: Mon 28 Dec 2009 12:15:53 GMT Severity: 3 - Normal Item Group: None