bug-make
[Top][All Lists]
Advanced

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

Re: False warning about a circular dependency


From: Paul Smith
Subject: Re: False warning about a circular dependency
Date: Wed, 07 Mar 2007 00:20:57 -0500

On Mon, 2007-03-05 at 18:41 +0100, Johannes Hölzl wrote:

> VPATH := ../dir/
> all: a
> .SECONDARY:
> a: b b
>     @echo "compile"
> ../dir/b:

> $ 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.

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

Please file a bug against GNU make at the Savannah project site so we
can track this issue:

    https://savannah.gnu.org/projects/make/

If you don't have a Savannah account and you file this bug anonymously,
be sure to add yourself to the CC list so you'll get updated when a fix
is available.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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