NetBSD Problem Report #47240

From martin@aprisoft.de  Fri Nov 23 22:45:31 2012
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 579D263E8F4
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 23 Nov 2012 22:45:31 +0000 (UTC)
Message-Id: <20121123224520.EA78BED0E4A@emmas.aprisoft.de>
Date: Fri, 23 Nov 2012 23:45:20 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: bsd.sys.mk uses undefined ACTIVE_CC
X-Send-Pr-Version: 3.95

>Number:         47240
>Category:       toolchain
>Synopsis:       bsd.sys.mk uses undefined ACTIVE_CC
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 23 22:50:01 +0000 2012
>Closed-Date:    Fri Nov 23 22:51:40 +0000 2012
>Last-Modified:  Fri Nov 23 22:51:40 +0000 2012
>Originator:     Martin Husemann
>Release:        NetBSD 6.0
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD emmas.aprisoft.de 6.0 NetBSD 6.0 (EMMAS) #11: Mon Oct 15 22:52:05 CEST 2012 martin@emmas.aprisoft.de:/usr/src-6/sys/arch/i386/compile/EMMAS i386
Architecture: i386
Machine: i386
>Description:

bsd.sys.mk sometimes references ACTIVE_CC without checking wether the variable
is defined. This leads to make errors

>How-To-Repeat:

Do something like:

./build.sh -u -m sparc64 -O /nelly/usr/obj -D /nelly -T /usr/tools -x -j 3 tools
cd /usr/src/sys/sys
/usr/tools/bin/nbmake-sparc64 -VWARNS

see make complain:

nbmake: Bad conditional expression `defined(NOGCCERROR) || ( == "clang" && defined(NOCLANGERROR))' in defined(NOGCCERROR) || ( == "clang" && defined(NOCLANGERROR))?yes:no
nbmake: Bad conditional expression ` == "no" ' in  == "no" ?-Werror:


>Fix:
n/a

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Fri, 23 Nov 2012 22:51:40 +0000
State-Changed-Why:
dup of 47241


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