bug-make
[Top][All Lists]
Advanced

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

[bug #31110] infinit loop with double-colon rules


From: gregory
Subject: [bug #31110] infinit loop with double-colon rules
Date: Thu, 23 Sep 2010 14:10:19 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100908 Red Hat/3.6-2.el5 Firefox/3.6.9

URL:
  <http://savannah.gnu.org/bugs/?31110>

                 Summary: infinit loop with double-colon rules
                 Project: make
            Submitted by: poisson
            Submitted on: Thu 23 Sep 2010 02:10:16 PM GMT
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: POSIX-Based
           Fixed Release: None
           Triage Status: None

    _______________________________________________________

Details:

GNU Make 3.81
This program built for x86_64-redhat-linux-gnu

$ cat A.make


-include A.d

A.d : A.x
        touch $@

A.o : A.x
        touch $@

A :: A.o 
        @echo $@ made from $?

A ::
        @echo $@ done

When file A.x does not exist
$ make -f A.make A
never finishes.
$ make -f A.make A -d > A.debug
then A.debug has

...
    No implicit rule found for `A.x'.
    Finished prerequisites of target file `A.x'.
   Must remake target `A.x'.
   Failed to remake target file `A.x'.
  Finished prerequisites of target file `A.d'.
 Giving up on target file `A.d'.
...
Updating goal targets....
Considering target file `A'.
 File `A' does not exist.
  Considering target file `A.o'.
   File `A.o' does not exist.
    Pruning file `A.x'.
   Finished prerequisites of target file `A.o'.
  Giving up on target file `A.o'.
 Finished prerequisites of target file `A'.
Giving up on target file `A'.
Pruning file `A'.
Considering target file `A'.
Recently tried and failed to update file `A'.
Pruning file `A'.
Considering target file `A'.
...

I think this a bug as Make should not go into an infinit loop.
Many thanks.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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