Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: building a kernel "the old way"
I've also tried to use the "tools", it fails, too, but a bit differently:
------
[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
making sure the compat library is up to date...
nbmake[1]: cannot open ../../../../../../compat/common/Makefile.
nbmake[1]: stopped in
/local/netbsd-src/obj/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC/lib/compat
*** Failed target:
/local/netbsd-src/obj/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC/lib/compat/libcompat.a
*** Failed command: cd
/local/netbsd-src/obj/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC/lib/compat
&& /local/netbsd-src/tools/bin/nbmake -f
../../../../../../compat/common/Makefile
COMPATDIR=../../../../../../compat/common
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\ \ \
AS=/local/netbsd-src/tools/bin/powerpc--netbsd-as AFLAGS=\ \ \
-D_NOREGNAMES\ -D_LOCORE\ -Wa,--fatal-warnings\ \
AR=/local/netbsd-src/tools/bin/powerpc--netbsd-ar
NM=/local/netbsd-src/tools/bin/powerpc--netbsd-nm
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
RANLIB=/local/netbsd-src/tools/bin/powerpc--netbsd-ranlib
LD=/local/netbsd-src/tools/bin/powerpc--netbsd-ld LDFLAGS=\
--sysroot=/local/netbsd-src/dest
STRIP=/local/netbsd-src/tools/bin/powerpc--netbsd-strip MACHINE=macppc
MACHINE_ARCH=powerpc COMPATCPPFLAGS=--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 LINTFLAGS=-bcehnxzFS
libcompat.a
*** 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]$
------
Still, problem seems to be that there is no "lib/compat" subdir.
So, with people stating that it works for them, maybe the custom source
directory (/local/netbsd-src/src) instead of /usr/src could be the
problem? I don't have space on this system to copy the source to
/usr/src. Btw., there is a symlink from /usr/src to /local/netbsd-src/src:
-----
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC]$ ls
-l /usr
total 148
drwxr-xr-x 8 root wheel 512 May 3 20:14 X11R7/
drwxr-xr-x 2 root wheel 8192 May 4 23:29 bin/
drwxr-xr-x 17 chris chris 1024 Feb 21 00:50 chris/
drwxr-xr-x 3 root wheel 1024 May 4 23:22 games/
drwxr-xr-x 59 root wheel 5120 May 4 23:20 include/
drwxr-xr-x 7 root wheel 35840 May 4 08:44 lib/
drwxr-xr-x 6 root wheel 512 May 3 20:14 libdata/
drwxr-xr-x 5 root wheel 1536 May 4 23:29 libexec/
drwxr-xr-x 2 root wheel 512 Jul 18 2013 local/
drwxr-xr-x 2 root wheel 512 May 4 08:45 mdec/
lrwxr-xr-x 1 root wheel 21 Jul 17 2013 obj@ ->
/local/netbsd-src/obj
lrwxr-xr-x 1 root wheel 10 Jul 17 2013 pkg@ -> /local/pkg
lrwxr-xr-x 1 root wheel 24 Jul 17 2013 pkgsrc@ ->
/local/netbsd-src/pkgsrc
drwxr-xr-x 2 root wheel 6144 May 4 23:21 sbin/
drwxr-xr-x 33 root wheel 512 May 3 20:14 share/
lrwxr-xr-x 1 root wheel 21 Jul 17 2013 src@ ->
/local/netbsd-src/src
drwxr-xr-x 24 root wheel 512 May 4 08:56 tests/
lrwxr-xr-x 1 root wheel 22 Jul 17 2013 xsrc@ ->
/local/netbsd-src/xsrc
[muc-twinppc:/local/netbsd-src/src/sys/arch/macppc/compile/GENERIC]$
-----
But I can try to mount /local under /usr/src, and try again....
regards,
chris
Home |
Main Index |
Thread Index |
Old Index