NetBSD Problem Report #5370

Received: (qmail 22223 invoked from network); 28 Apr 1998 15:18:55 -0000
Message-Id: <199804281516.AAA24550@sibyl.chez-dall.org.au>
Date: Wed, 29 Apr 1998 00:46:31 +0930 (CST)
From: ian.dall@dsto.defence.gov.au
Reply-To: ian.dall@dsto.defence.gov.au
To: gnats-bugs@gnats.netbsd.org
Subject: Make adds dependencies from implicit rules even when there is an explicit rule
X-Send-Pr-Version: 3.95

>Number:         5370
>Category:       toolchain
>Synopsis:       Make adds dependencies from implicit rules even when there is an explicit rule
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 28 08:20:01 +0000 1998
>Closed-Date:    
>Last-Modified:  Tue Feb 12 08:52:19 +0000 2002
>Originator:     Ian Dall
>Release:        1.3
>Organization:

>Environment:

System: NetBSD sibyl.chez-dall.org.au 1.3E NetBSD 1.3E (SIBYL) #4: Tue Apr 21 00:41:00 CST 1998 ian@sibyl.chez-dall.org.au:/usr3/netbsd-1.2/lsrc/sys/arch/pc532/compile/SIBYL pc532


>Description:

If there is an implicit make rule which could make a target from a dependant,
that dependant gets added to .ALLSRC and .OODATE even when there is
an explicit rule. This is more aggressive than other makes and can cause
problems.

>How-To-Repeat:


Create a Makefile:

foo.o:	bar.c
	@echo Transforming $? to foo.o

Then:

touch foo.c bar.c.
make

Produces:

Transforming bar.c foo.c to foo.o

Whereas with gnu make:

gmake

Produces:

Transforming bar.c to foo.o

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->toolchain-manager 
Responsible-Changed-By: gnats 
Responsible-Changed-When: Tue Feb 12 00:52:16 PST 2002 
Responsible-Changed-Why:  
There is now a "toolchain-manager" which is the proper default role 
account for handling problem reports in the toolchain category. 

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.