bugmake - Bugs: bug #31110, infinit loop with double-colon...

 
 

bug #31110: infinit loop with double-colon rules

Submitter:  gregory <poisson>
Submitted:  Thu 23 Sep 2010 02:10:16 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.81 Operating System:  POSIX-Based
Fixed Release:  3.82 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 24 Sep 2010 07:23:14 PM UTC, comment #2: 

Thank you very much indeed.
Apologies for not checking it first with the latest version.

gregory <poisson>
Thu 23 Sep 2010 04:57:59 PM UTC, comment #1: 

This bug is already addressed in the latest version of GNU make (3.82).  With that version your example results in:

make -f /tmp/x1.mk A
make: *** No rule to make target `A.x', needed by `A.o'.  Stop.


Paul D. Smith <psmith>
Group administrator
Thu 23 Sep 2010 02:10:16 PM UTC, original submission:  

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.

gregory <poisson>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by poisson (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-09-23 psmith StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 3.82

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code