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/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to