Subject: Re: Re2: Which file should I use to configure the kernel for O2 ?
To: None <r17413@email.sps.mot.com>
From: Rafal Boni <rafal.boni@eDial.com>
List: port-sgimips
Date: 03/01/2002 08:32:42
In message <3C7F1682.5795442D@email.sps.mot.com>, you write: 

-> Thank you very much Boni-san.

Thanks for the honor, but just Rafal is fine 8-)

-> After I updated my config command, true Makefile seemed to be created. 
-> But when I executed "make depend", error message appeared.
-> 
-> What is wrong ?
-> 
-> 
-> # echo $PATH
-> /usr/pkg/cross/mipseb-netbsd/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/bin:
-> /usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
-> # echo $MACHINE
-> sgimips
-> # echo $MACHINE_ARCH
-> mipseb
-> # echo $MACHINE_CPU
-> mips
-> #
-> 
-> # pwd
-> /src/sys/arch/sgimips/conf
-> # cp -p INDY INDY0
-> # config INDY0
-> Don't forget to run "make depend"
-> # 
-> # cd ../compile/INDY0
-> # make depend
-> depending the kern library objects
-> no ARCHSUBDIR for mipseb nor
-> *** Error code  1

This error message comes from src/sys/lib/libkern/Makefile, from the following
bit of code:

#	$NetBSD: Makefile,v 1.63 2001/12/12 01:50:04 tv Exp $

LIB=	kern
NOPIC=	# defined

.include <bsd.own.mk>

.if defined(MACHINE_ARCH) && !empty(MACHINE_ARCH) && \
    exists(${KERNDIR}/arch/${MACHINE_ARCH})
ARCHSUBDIR=     ${MACHINE_ARCH}
.elif defined(MACHINE_CPU) && !empty(MACHINE_CPU) && \
    exists(${KERNDIR}/arch/${MACHINE_CPU}) 
ARCHSUBDIR=     ${MACHINE_CPU}
.else
.BEGIN:
	@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
	@false
.endif
[...]

So it seems either you are having some make/.mk file problem (why isn't
MACHINE_CPU printed in that message?) or you don't have sys/arch/mips also
checked out.  As a sanity check, you may want to try a `make MACHINE=
sgimips depend' on the command line (the make machinery should figure 
out the other two) or if that doesn't work a `make MACHINE=sgimips 
MACHINE_ARCH=sgimips MACHINE_CPU=mips'.

Finally, I'd look in current-users or tech-toolchain archives, as I do
recall others asking about similar failure (can't look now as I have to
run to an appointment).

--rafal

----
Rafal Boni                                              rafal.boni@eDial.com
 PGP key C7D3024C, print EA49 160D F5E4 C46A 9E91  524E 11E0 7133 C7D3 024C
   Need to get a hold of me?  http://http.eiab.edial.com/800.edial/rafal