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 01:44, Robert Swindells wrote:
Christian Groessler <chris%groessler.org@localhost> wrote:
I should have a complete source tree. 'build.sh', at least, was able to
build the whole system without errors.
The file is there, but in ../../../../compat/common(so two ".."s less).
Like I've written,
It says, "make[1]: stopped in
/usr/obj/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC/lib/compat",
but there is no "lib/compat" directory there.
"make" thinks it's in the lib/compat dir, but there is no such dir....
If you guys/gals run "config"/"nbconfig", do you have a lib/compat dir
in the compile dir?
The lib/compat directory is created by "make depend".
I would delete your src/sys/arch/macppc/compile/GENERIC directory and
start again.
I have to admit, I had omitted the "depend" step in most of my tests.
I've always been removing the compile/GENERIC dir btw. my tests, but still:
--------
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/conf]$ rm -rf
../compile/GENERIC/
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/conf]$
/local/netbsd-src/tools/bin/nbconfig GENERIC
Build directory is ../compile/GENERIC
Don't forget to run "make depend"
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/conf]$ cd -
/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC]$
/local/netbsd-src/tools/bin/nbmake-macppc depend
depending the kern library objects
nbmake[1]: cannot open ../../../../../../lib/libkern/Makefile.
nbmake[1]: stopped in
/local/netbsd-src/obj/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC/lib/kern
*** Failed target: dependkernlib
*** Failed command: cd
/local/netbsd-src/obj/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC/lib/kern
&& /local/netbsd-src/tools/bin/nbmake -f
../../../../../../lib/libkern/Makefile
KERNDIR=../../../../../../lib/libkern
CC=/local/netbsd-src/tools/bin/powerpc--netbsd-gcc CFLAGS=\ \
-mno-strict-align\ \ \ -Wa,-maltivec\ \ \ -msdata=none\ \ -msoft-float\
\ -ffreestanding\ -fno-zero-initialized-in-bss\ \ -O2\
-fno-strict-aliasing\ -fno-common\ \ \ \ \ -std=gnu99\ \ \ -Werror\
-Wreturn-type\ -Wall\ -Wno-main\ -Wno-format-zero-length\
-Wpointer-arith\ -Wmissing-prototypes\ -Wstrict-prototypes\
-Wold-style-definition\ -Wswitch\ -Wshadow\ -Wcast-qual\
-Wwrite-strings\ -Wno-unreachable-code\ -Wno-pointer-sign\
-Wno-attributes\ -Wno-sign-compare\ \ \ CPUFLAGS=
AS=/local/netbsd-src/tools/bin/powerpc--netbsd-as AFLAGS=\ \ \
-D_NOREGNAMES\ -D_LOCORE\ -Wa,--fatal-warnings\ \
LORDER=NM=/local/netbsd-src/tools/bin/powerpc--netbsd-nm\
MKTEMP=/local/netbsd-src/tools/bin/nbmktemp\
/local/netbsd-src/tools/bin/nblorder
TSORT=/local/netbsd-src/tools/bin/nbtsort\ -q
LD=/local/netbsd-src/tools/bin/powerpc--netbsd-ld
STRIP=/local/netbsd-src/tools/bin/powerpc--netbsd-strip
AR=/local/netbsd-src/tools/bin/powerpc--netbsd-ar
NM=/local/netbsd-src/tools/bin/powerpc--netbsd-nm
RANLIB=/local/netbsd-src/tools/bin/powerpc--netbsd-ranlib
SIZE=/local/netbsd-src/tools/bin/powerpc--netbsd-size MACHINE=macppc
MACHINE_ARCH=powerpc KERNCPPFLAGS=--sysroot=/local/netbsd-src/dest\
-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/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC/../../../../lib/libkern/../../../common/lib/libc/quad\
-I/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC/../../../../lib/libkern/../../../common/lib/libc/string\
-I/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC/../../../../lib/libkern/../../../common/lib/libc/arch/powerpc/string\
-I../../../../../../external/bsd/ipf\
-I../../../../../../external/isc/atheros_hal/dist\
-I../../../../../../external/isc/atheros_hal/ic KERNMISCCPPFLAGS=
LINTFLAGS=-bcehnxzFS LIBKERN_ARCH= COMMON_MACHINE_ARCH= depend
*** Error code 2
Stop.
nbmake: stopped in /local/netbsd-src/src/sys/arch/macppc/compile/GENERIC
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC]$
find . -type d
.
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC]$
--------
regards,
chris
Home |
Main Index |
Thread Index |
Old Index