Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 1999 11:58:29 -0400 (EDT)
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        freebsd-questions@FreeBSD.ORG (FreeBSD Questions)
Subject:   make aout-to-elf-build Failing
Message-ID:  <199908291558.LAA04928@cc942873-a.ewndsr1.nj.home.com>

next in thread | raw e-mail | index | archive | help
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




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