Port-macppc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: building a kernel "the old way"
On 05/25/17 03:07, Valery Ushakov wrote:
Move your /etc/mk.conf out of the way temporarily. I suspect you
might be running into some obscure corner cases of objdir handling.
See (emphasis mine):
nbmake[1]: stopped in /local/netbsd-src/OBJ/.../compile/GENERIC/lib/kern
while
nbmake[1]: cannot open ../../../../../../lib/libkern/Makefile.
seems to indicate it assumes you are running inside the src tree (not
in an objdir).
Yes, I'm running inside the src tree (I thought that was clear from my
posted command sequences).
But this answer (and the other answer to run "make obj" before) put me
on the right track.
Moving mk.conf out of the way didn't help either. Error message now
indicated a missing directory in the /usr/obj tree.
I have
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC]$ ls
-l /usr/obj
lrwxr-xr-x 1 root wheel 21 Jul 17 2013 /usr/obj@ ->
/local/netbsd-src/obj
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC]$
After moving /usr/obj away, it works now:
-----
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/conf]$ config GENERIC
Build directory is ../compile/GENERIC
Don't forget to run "make depend"
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/conf]$ cd
../compile/GENERIC/
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC]$
make depend
depending the kern library objects
# create kern/__main.d
mkdep -f __main.d.tmp -- -std=gnu99
-I../../../../../../lib/libkern/arch/powerpc -Dmacppc=macppc -I../../.
-I../../../../../../../common/lib/libx86emu
-I../../../../../../../common/include -I../../../../../../arch
-I../../../../../.. -nostdinc -DZS_CONSOLE_ABORT -DFORCE_FUNCTION_KEYS
-D_KERNEL -D_KERNEL_OPT -std=gnu99
-I../../../../../../lib/libkern/../../../common/lib/libc/quad
-I../../../../../../lib/libkern/../../../common/lib/libc/string
-I../../../../../../lib/libkern/../../../common/lib/libc/arch/powerpc/string
-I../../../../../../external/bsd/ipf
-I../../../../../../external/isc/atheros_hal/dist
-I../../../../../../external/isc/atheros_hal/ic
-I../../../../../../lib/libkern/../../../common/lib/libc/quad
-I../../../../../../lib/libkern/../../../common/lib/libc/string
-I../../../../../../lib/libkern/../../../common/lib/libc/arch/powerpc/string
-I../../../../../../lib/libkern/../../../common/include
../../../../../../lib/libkern/__main.c && mv __main.d.tmp __main.d
# create kern/absvdi2.d
mkdep -f absvdi2.d.tmp -- -std=gnu99
-I../../../../../../lib/libkern/arch/powerpc -Dmacppc=macppc -I../../.
-I../../../../../../../common/lib/libx86emu
-I../../../../../../../common/include -I../../../../../../arch
-I../../../../../.. -nostdinc -DZS_CONSOLE_ABORT -DFORCE_FUNCTION_KEYS
-D_KERNEL -D_KERNEL_OPT -std=gnu99
-I../../../../../../lib/libkern/../../../common/lib/libc/quad
-I../../../../../../lib/libkern/../../../common/lib/libc/string
-I../../../../../../lib/libkern/../../../common/lib/libc/arch/powerpc/string
-I../../../../../../external/bsd/ipf
-I../../../../../../external/isc/atheros_hal/dist
-I../../../../../../external/isc/atheros_hal/ic
-I../../../../../../lib/libkern/../../../common/lib/libc/quad
-I../../../../../../lib/libkern/../../../common/lib/libc/string
-I../../../../../../lib/libkern/../../../common/lib/libc/arch/powerpc/string
-I../../../../../../lib/libkern/../../../common/include
-Wno-missing-prototypes -Wno-old-style-definition
-Wno-strict-prototypes -Wno-uninitialized
/local/netbsd-src/src/sys/external/bsd/compiler_rt/dist/lib/builtins/absvdi2.c
&& mv absvdi2.d.tmp absvdi2.d
# create kern/absvsi2.d
....
-----
The subsequent "make" run successfully built a kernel.
Thanks all for your help.
Is there some default, that if /usr/obj exists, it's automatically used?
regards,
chris
Home |
Main Index |
Thread Index |
Old Index