bug-make
[Top][All Lists]
Advanced

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

[bug #40610] gmake 4.0 loops rebuilding included makefiles


From: Paul D. Smith
Subject: [bug #40610] gmake 4.0 loops rebuilding included makefiles
Date: Sun, 17 Nov 2013 20:18:13 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

Follow-up Comment #1, bug #40610 (project make):

Odd.  I'm not aware of anything off the top of my head that changed between
3.82 and 4.0 that might cause this.  Also, I can't reproduce it on the Linux
tmpfs implementation I have here.

I'll need some help debugging.  When it loops forever, what commands does it
run?  Does it re-run the rebuild of objdir/depend.mk every time?  I assume so.
 Does it re-run the mkdir -p objdir every time?

Also if you rewrite the makefile so that the mkdir is in the same rule as the
echo, does it work properly?  I'm not saying this is a solution, I'm just
trying to work out what's going on.


objdir/depend.mk:
        rm -f objdir/depend.mk
        mkdir -p objdir
        echo 'foo: bar' > objdir/depend.mk


Does it reproduce if you enable debugging mode (-d)?  If it's really
timing-sensitive that might be enough to avoid the problem.  If so, try using
"--debug=m" to restrict the debugging output.  If it still won't reproduce
we'll maybe need to add some targeted debugging statements.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40610>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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