bugmake - Bugs: bug #31400, Make 3.82 incorrectly handles...

 
 

bug #31400: Make 3.82 incorrectly handles circular dependency chains (3.81 regression)

Submitter:  None
Submitted:  Thu 21 Oct 2010 07:08:10 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.82 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 10 Sep 2012 02:52:19 AM UTC, comment #1: 

This bug is no longer present in the current CVS build of GNU make.

Paul D. Smith <psmith>
Group administrator
Thu 21 Oct 2010 07:08:10 PM UTC, original submission:  

I have a makefile library which contains a large number of circular dependencies of the form

%.flac : %.wav
...
%.wav : %.flac
...

The idea being that if I have a file e.g. 'test.tta', and run 'make test.flac', it will pick the series of rules %.wav : %.tta followed by %.flac : %.wav

This used to work in Make 3.81; it stopped working in 3.82. I have put together a simple test case:

Makefile:

%.testc : %.testb
        test -f "$<" && touch "$@"
%.testb : %.testc
        test -f "$<" && touch "$@"
%.testb : %.testa
        test -f "$<" && touch "$@"


Commands:

$ touch file.testa
$ make file.testc
make: Circular test.testb <- test.testc dependency dropped.
test -f "" && touch "test.testb"
make: *** [test.testb] Error 1


The corresponding output with make 3.81 is

$ make file.testc
test -f "test.testa" && touch "test.testb"
test -f "test.testb" && touch "test.testc"
rm test.testb


Anonymous

 

(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 kepstin
  •  

    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
    2012-09-10 psmith StatusNone Duplicate
        Open/ClosedOpen Closed
    2010-10-21 kepstin Carbon-Copy- Added kepstin

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code