From owner-freebsd-questions Sun Aug 29 8:57:11 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 2517215235 for ; Sun, 29 Aug 1999 08:57:04 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id LAA04928 for freebsd-questions@FreeBSD.ORG; Sun, 29 Aug 1999 11:58:30 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199908291558.LAA04928@cc942873-a.ewndsr1.nj.home.com> Subject: make aout-to-elf-build Failing To: freebsd-questions@FreeBSD.ORG (FreeBSD Questions) Date: Sun, 29 Aug 1999 11:58:29 -0400 (EDT) Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It's a lazy Sunday afternoon, and I am finally thinking of doing the 2.2.8-STABLE to 3.2-STABLE upgrade. I have upgraded within a major release several times (a number of 2.2.7 to 2.2.8 and 3.1 to 3.2 systems), but never done the a.out to ELF thing before. However, I really do not think this has anything to do with my problem. I _just_ sucked down 3.2 using cvsup, went into /usr/src, and after reading /usr/src/Makefile about 50 times, finally typed, # make aout-to-elf-build And things flew right on by in the window, until: -------------------------------------------------------------- >>> Cleaning up the aout obj tree -------------------------------------------------------------- . [cut many, many successful 'rm -f' lines] . . ===> lib/libc "/usr/src/lib/libc/../libc/gen/Makefile.inc", line 32: Could not find /usr/src/lib/libc/../libc/unknown/gen/Makefile.inc "/usr/src/lib/libc/../libc/net/Makefile.inc", line 22: Could not find /usr/src/lib/libc/../libc/unknown/net/Makefile.inc "/usr/src/lib/libc/../libc/stdlib/Makefile.inc", line 23: Could not find /usr/src/lib/libc/../libc/unknown/stdlib/Makefile.inc "/usr/src/lib/libc/../libc/string/Makefile.inc", line 16: Could not find /usr/src/lib/libc/../libc/unknown/string/Makefile.inc "/usr/src/lib/libc/../libc/sys/Makefile.inc", line 16: Could not find /usr/src/lib/libc/../libc/unknown/sys/Makefile.inc make: fatal errors encountered -- cannot continue *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. *** Error code 1 Stop. Looking up what is failing in each of these 'Makefile.inc's, I find a line like the following (from '/usr/src/lib/gen/Makefile.inc') in each, # machine-dependent gen sources .include "${.CURDIR}/../libc/${MACHINE_ARCH}/gen/Makefile.inc" Somehow the variable MACHINE_ARCH is getting set to 'unknown.' However, the only place I can find MACHINE_ARCH being set is in /usr/src/share/mk/sys.mk, and it is always set to 'i386'. I cannot locate where it might be set 'unknown' or why this is happening; it's never happened to me before. Thanks for any help... Oh, yeah, and still looking for a good 'How To' for the 2.2.8 to 3.x upgrade so I get it all done with the least amount of headaches. Thanks again. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message