NetBSD Problem Report #4469

Received: (qmail 13407 invoked from network); 11 Nov 1997 21:16:08 -0000
Message-Id: <>
Date: Tue, 11 Nov 1997 13:16:05 -0800 (PST)
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
University of Michigan
SunOS 5.5.1 Generic_103640-08 sun4u sparc SUNW,Ultra-1

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

../../../../usr.sbin/config/config GENERIC
note that MACHINE and MACHINE_ARCH and NM are not set in the Makefile.

Change config(8) to emit those additional symbols in the generated Makefile.
State-Changed-From-To: open->closed 
State-Changed-By: tv 
State-Changed-When: Tue Mar 5 06:10:33 PST 2002 
* 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 

NetBSD Home
NetBSD PR Database Search

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