NetBSD Problem Report #4469

Received: (qmail 13407 invoked from network); 11 Nov 1997 21:16:08 -0000
Message-Id: <199711112116.NAA17879@nooksack.ldc.cs.wwu.edu>
Date: Tue, 11 Nov 1997 13:16:05 -0800 (PST)
From: dogcow@umich.edu
To: gnats-bugs@gnats.netbsd.org
Subject: config(8) doesn't set MACHINE, MACHINE_ARCH, or NM in generated Makefiles
X-Send-Pr-Version: www-1.0

>Number:         4469
>Category:       toolchain
>Synopsis:       config(8) doesn't set MACHINE, MACHINE_ARCH, or NM in generated Makefiles
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 11 13:20:02 +0000 1997
>Closed-Date:    Tue Mar 05 14:11:51 +0000 2002
>Last-Modified:  Tue Mar 05 14:11:51 +0000 2002
>Originator:     Tom Spindler
>Release:        1.3_ALPHA
>Organization:
University of Michigan
>Environment:
SunOS raiden.us.itd.umich.edu 5.5.1 Generic_103640-08 sun4u sparc SUNW,Ultra-1


>Description:
When cross-compiling kernels, the fact that the generate Makefile does
not set MACHINE or MACHINE_ARCH screws up some of the `make depend` output,
and also produces wrong behaviour when compiling lib/kern .

This could arguably be deemed a <bsd.mk> local installation error or a
"the person doing the cross compiler is a ninny" error instead of a source
error. However, it would be helpful for the Makefile to point out that
those values are actually used further down the line in other Makefiles.

>How-To-Repeat:
../../../../usr.sbin/config/config GENERIC
note that MACHINE and MACHINE_ARCH and NM are not set in the Makefile.

>Fix:
Change config(8) to emit those additional symbols in the generated Makefile.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tv 
State-Changed-When: Tue Mar 5 06:10:33 PST 2002 
State-Changed-Why:  
* MACHINE and MACHINE_ARCH can't be set in a Makefile; they must be set in the 
process environment. 
* A cross environment should be setting all these values properly.  (In the case 
of NM, this is now provided by the TOOLDIR overrides in bsd.own.mk.) 
>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.