NetBSD Problem Report #48728

From www@NetBSD.org  Wed Apr  9 02:18:04 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 041E3A5806
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  9 Apr 2014 02:18:04 +0000 (UTC)
Message-Id: <20140409021802.A96E7A5816@mollari.NetBSD.org>
Date: Wed,  9 Apr 2014 02:18:02 +0000 (UTC)
From: dhgutteridge@sympatico.ca
Reply-To: dhgutteridge@sympatico.ca
To: gnats-bugs@NetBSD.org
Subject: The make file at the top of the src tree can no longer be used directly
X-Send-Pr-Version: www-1.0

>Number:         48728
>Category:       toolchain
>Synopsis:       The make file at the top of the src tree can no longer be used directly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 09 02:20:01 +0000 2014
>Closed-Date:    Wed Apr 09 06:14:12 +0000 2014
>Last-Modified:  Wed Apr 09 12:00:00 +0000 2014
>Originator:     David H. Gutteridge
>Release:        Current sources
>Organization:
>Environment:
n/a
>Description:
The make file in /src can no longer be invoked directly with any
targets, e.g. "cleandir" or "obj". I'm assuming this isn't an
intentional change, as I don't see anything about it in BUILDING.
(That said, I'm not sure how big a deal this is, given build.sh can
be used instead. But the documentation doesn't match the behaviour.)

Instead, I get:

make: "/usr/builds/netbsd-current/src/share/mk/bsd.sys.mk" line 8: Malformed conditional (!empty(.INCLUDEDFROMFILE:MMakefile*))
make: Fatal errors encountered -- cannot continue
>How-To-Repeat:
Go to /src and run make, e.g. "make cleandir".
>Fix:
Undo the commit that changed this or update the docs.

>Release-Note:

>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, toolchain-manager@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: toolchain/48728: The make file at the top of the src tree can no longer be used directly
Date: Tue, 8 Apr 2014 23:13:06 -0400

 On Apr 9,  2:20am, dhgutteridge@sympatico.ca (dhgutteridge@sympatico.ca) wrote:
 -- Subject: toolchain/48728: The make file at the top of the src tree can no 

 | make: "/usr/builds/netbsd-current/src/share/mk/bsd.sys.mk" line 8: Malformed conditional (!empty(.INCLUDEDFROMFILE:MMakefile*))
 | make: Fatal errors encountered -- cannot continue
 | >How-To-Repeat:
 | Go to /src and run make, e.g. "make cleandir".
 | >Fix:
 | Undo the commit that changed this or update the docs.


 You must be using an old version of make with new .mk system files.

 christos

From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/48728: The make file at the top of the src tree can no longer be used directly
Date: Tue, 8 Apr 2014 22:24:42 -0400

 I just tested the the netbsd-6 branch, and found there are issues
 doing the same there, though not with that file itself, but rather
 with other files that are called by it. I'm guessing then that direct
 use of the file isn't really expected anymore.

From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/48728: The make file at the top of the src tree can no longer be used directly
Date: Tue, 8 Apr 2014 23:21:40 -0400

 On 2014-04-08, at 11:15 PM, Christos Zoulas wrote:
 > The following reply was made to PR toolchain/48728; it has been noted =
 by GNATS.
 >=20
 > From: christos@zoulas.com (Christos Zoulas)
 > To: gnats-bugs@NetBSD.org, toolchain-manager@netbsd.org,=20
 > 	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 > Cc:=20
 > Subject: Re: toolchain/48728: The make file at the top of the src tree =
 can no longer be used directly
 > Date: Tue, 8 Apr 2014 23:13:06 -0400
 >=20
 > On Apr 9,  2:20am, dhgutteridge@sympatico.ca =
 (dhgutteridge@sympatico.ca) wrote:
 > -- Subject: toolchain/48728: The make file at the top of the src tree =
 can no=20
 >=20
 > | make: "/usr/builds/netbsd-current/src/share/mk/bsd.sys.mk" line 8: =
 Malformed conditional (!empty(.INCLUDEDFROMFILE:MMakefile*))
 > | make: Fatal errors encountered -- cannot continue
 > | >How-To-Repeat:
 > | Go to /src and run make, e.g. "make cleandir".
 > | >Fix:
 > | Undo the commit that changed this or update the docs.
 >=20
 >=20
 > You must be using an old version of make with new .mk system files.
 >=20
 > christos

 Aha, yes, that's it. So this is a trap for the unwary rather than a
 bug. If I run the make command found in the tooldir it works fine.

 Dave

From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/48728: The make file at the top of the src tree can no longer be used directly
Date: Wed, 9 Apr 2014 00:58:47 -0400

 This can be closed.

 Dave

State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Wed, 09 Apr 2014 06:14:12 +0000
State-Changed-Why:
Submitter reports problem can be closed.


From: David H.Gutteridge <dhgutteridge@sympatico.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: toolchain/48728: The make file at the top of the src tree can no longer be used directly
Date: Wed, 9 Apr 2014 01:48:06 -0400

 ... And the documentation covers this right here... Palm to forehead.

 Makefile       The main Makefile for NetBSD; should only be run for
                     native builds with an appropriately up-to-date =
 version of
                     NetBSD make(1).  (For building from out-of-date =
 systems or
                     on a non-native host, see the build.sh shell =
 script.)=

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, toolchain-manager@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org, 
	dhgutteridge@sympatico.ca
Cc: 
Subject: Re: toolchain/48728: The make file at the top of the src tree can no longer be used directly
Date: Wed, 9 Apr 2014 07:58:11 -0400

 On Apr 9,  3:25am, dhgutteridge@sympatico.ca ("David H. Gutteridge") wrote:
 -- Subject: Re: toolchain/48728: The make file at the top of the src tree can

 |  I just tested the the netbsd-6 branch, and found there are issues
 |  doing the same there, though not with that file itself, but rather
 |  with other files that are called by it. I'm guessing then that direct
 |  use of the file isn't really expected anymore.

 This is what the directive is trying to protect against.

 christos

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