Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Nov 1998 08:51:14 +0100
From:      Andreas Klemm <andreas@klemm.gtn.com>
To:        current@FreeBSD.ORG
Subject:   ${MACHINE_ARCH} is still a show stopper in make aout-to-elf-build
Message-ID:  <19981105085114.A1125@klemm.gtn.com>

next in thread | raw e-mail | index | archive | help
The upgrade process still doesn't work, because MACHINE_ARCH
isn't defined in -STABLE ;-)

root{540} /usr/src time make aout-to-elf-build | & tee make.log

--------------------------------------------------------------
 Doing an aout buildworld to get an up-to-date set of tools
--------------------------------------------------------------
"Makefile.inc1", line 755: Need an operator
"Makefile.inc1", line 1000: 1 open conditional
make: fatal errors encountered -- cannot continue
*** Error code 1

Stop.
*** Error code 1

I "merged" this locally from -current, but it didn't help:

--- bsd.own.mk.orig	Thu Nov  5 08:45:54 1998
+++ bsd.own.mk	Thu Nov  5 08:46:06 1998
@@ -116,6 +116,10 @@
 #
 # INCLUDEDIR	Base path for standard C include files [/usr/include]
 
+# This is only here for bootstrapping and is not officially exported
+# from here.  It has normally already been defined in sys.mk.
+MACHINE_ARCH?=  i386 
+
 # Binaries
 BINOWN?=	bin
 BINGRP?=	bin
--- sys.mk.orig	Thu Nov  5 08:46:44 1998
+++ sys.mk	Thu Nov  5 08:47:14 1998
@@ -94,6 +94,12 @@
 YFLAGS		?=	-d
 .endif
 
+# FreeBSD/i386 as traditionally been built with a version of make
+# which knows MACHINE, but not MACHINE_ARCH. When building on other
+# architectures, assume that the version of make being used has an
+# explicit MACHINE_ARCH setting and treat a missing MACHINE_ARCH# as an i386 architecture.
+MACHINE_ARCH    ?=      i386
+
 # For tags rule.
 GTAGSFLAGS=	-se
 HTAGSFLAGS=

Even a 
	make -DMACHINE_ARCH=i386 aout-to-elf-build
doesn't work.

Well, where have these magic runes to go in ???

Sorry no time left, have to go to work.

	Andreas ///

-- 
Andreas Klemm                                http://www.FreeBSD.ORG/~andreas
     What gives you 90% more speed, for example, in kernel compilation ?
          http://www.FreeBSD.ORG/~fsmp/SMP/akgraph-a/graph1.html
             "NT = Not Today" (Maggie Biggs)      ``powered by FreeBSD SMP''

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981105085114.A1125>