bugmake - Bugs: bug #19226, False warning about a circular...

 
 

bug #19226: False warning about a circular dependency

Submitter:  None
Submitted:  Wed 07 Mar 2007 09:28:44 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.81 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 14 Jun 2009 06:03:26 AM UTC, comment #1: 

This is a duplicate of bug #13529

Paul D. Smith <psmith>
Group administrator
Wed 07 Mar 2007 09:28:44 AM UTC, original submission:  

We are using make 3.81 under CygWin (Windows XP SP2).

I have the following makefile: "test.make":

------------------8<---------------------
VPATH := ../dir/

all: a

.SECONDARY:

a: b b
   @echo "compile"

../dir/b:

------------------8<---------------------

I am getting the following:

$ mkdir ../dir
$ touch ../dir/b
$ make -f test.make
make: Circular a <- b dependency dropped.
compile
$

Of course a depends on b, but why depends b on a?
When only one b is on the a line, the message isn't shown,
when the .SECONDARY: is missing it isn't shown and when
the b file is placed under ./dir the message is also not shown.

Paul Smith (psmith@gnu.org) confirmed this for Linux:
| I can confirm this on my Linux box.  It's even stranger
| if you look at the debug output, since make appears to
| try to build "b" right after it considers "all", without
| first considering "a" (according to the output).



Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #12138:  test.make added by None (86B - application/octet-stream)

 

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)
  •  

    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
    2009-06-14 psmith StatusNone Duplicate
        Open/ClosedOpen Closed
    2007-03-07 None Attached File- Added test.make, #12138

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code