Problems building xnu-517 or xnu-517.3.7
Has anyone successfully built the kernel for 10.3/10.3.1 or the kernel for 10.3.2? I have tried building both of them and end up with errors. (I'm following the instructions at: http://developer.apple.com/documentation/Darwin/Conceptual/ KernelProgramming and using 10.3.2/XCode 1.1 as my build system.) When I try and build xnu-517, I end up with the build ending with the following error: . . . cp /xnux/kgmacros /xnux/BUILD/obj/DEBUG_PPC/kgmacros [ building mach_kernel ] /xnux/BUILD/obj/DEBUG_PPC/kernel_newvers \ "`/bin/cat /xnux/osfmk/conf/kernelversion.major`" \ "`/bin/cat /xnux/osfmk/conf/kernelversion.minor`" \ "`/bin/cat /xnux/osfmk/conf/kernelversion.variant`"; \ /usr/bin/cc -static -g -nostdinc -nostdlib -no-cpp-precomp -fno-builtin -finline -fno-keep-inline-functions -msoft-float -fsigned-bitfields -Wpointer-arith -arch ppc -Dppc -DPPC -D__PPC__ -DPAGE_SIZE_FIXED -O2 -mcpu=750 -mmultiple -fschedule-insns -DAPPLE -DNeXT -DKERNEL_PRIVATE -D__MACHO__=1 -Dvolatile=__volatile -c kernel_vers.c; \ /usr/bin/ld -static -force_cpusubtype_ALL -segalign 0x1000 -arch ppc -segaddr __VECTORS 0x0 -segaddr __TEXT 0x7000 -e __start -sectalign __TEXT __text 0x1000 -sectalign __DATA __common 0x1000 -sectalign __DATA __bss 0x1000 -sectcreate __PRELINK __text /dev/null -sectcreate __PRELINK __symtab /dev/null -sectcreate __PRELINK __info /dev/null /xnux/BUILD/obj/DEBUG_PPC/./osfmk/DEBUG/osfmk.o /xnux/BUILD/obj/DEBUG_PPC/./bsd/DEBUG/bsd.o /xnux/BUILD/obj/DEBUG_PPC/./iokit/DEBUG/iokit.o /xnux/BUILD/obj/DEBUG_PPC/./pexpert/DEBUG/pexpert.o /xnux/BUILD/obj/DEBUG_PPC/./libkern/DEBUG/libkern.o /xnux/BUILD/obj/DEBUG_PPC/./libsa/DEBUG/libsa.o kernel_vers.o -o /xnux/BUILD/obj/DEBUG_PPC/./mach_kernel.sys -lcc_kext; \ /usr/bin/strip -S /xnux/BUILD/obj/DEBUG_PPC/./mach_kernel.sys -o /xnux/BUILD/obj/DEBUG_PPC/./mach_kernel; [ /xnux/config/ ] make build_all config DEBUG PPC /xnux/BUILD/obj/DEBUG_PPC/config nm -gj /xnux/BUILD/obj/DEBUG_PPC/mach_kernel > /xnux/BUILD/obj/DEBUG_PPC/allsymbols /usr/local/bin/kextsymboltool \ -arch ppc \ -import /xnux/BUILD/obj/DEBUG_PPC/allsymbols \ -export /xnux/config/System6.0.exports \ -export /xnux/config/System6.0.ppc.exports \ -output /xnux/BUILD/obj/DEBUG_PPC/System6.0.symbolset; /bin/sh: line 1: /usr/local/bin/kextsymboltool: No such file or directory make[3]: *** [/xnux/BUILD/obj/DEBUG_PPC/System6.0.symbolset] Error 1 make[2]: *** [build_all] Error 2 make[1]: *** [build_all] Error 2 make: *** [all] Error 2 There are mach_kernel and a mach_kernel.sys files in the correct directories, but I don't know yet whether they are usable or not. When I try and build xnu-517.3.7, I get the following errors much earlier in the build process and no output files are generated. The exact errors I see are: . . . [ /xnu/osfmk/UserNotification/ ] make build_all osfmk RELEASE PPC /xnu/BUILD/obj/RELEASE_PPC/osfmk /usr/bin/cc -c -static -g -nostdinc -nostdlib -no-cpp-precomp -fno-builtin -finline -fno-keep-inline-functions -msoft-float -fsigned-bitfields -Wpointer-arith -arch ppc -Dppc -DPPC -D__PPC__ -DPAGE_SIZE_FIXED -O2 -mcpu=750 -mmultiple -fschedule-insns -DAPPLE -DNeXT -DKERNEL_PRIVATE -D__MACHO__=1 -Dvolatile=__volatile -DMACH -DMACH_KERNEL -DMACH_LOAD -DMACH_BSD -DIOKIT -DMACH_PE -DPOWERMAC -DMACH_KERNEL_PRIVATE -MD -I. -I/xnu/osfmk -I/xnu/BUILD/obj/EXPORT_HDRS/bsd -I/xnu/BUILD/obj/EXPORT_HDRS/iokit -I/xnu/BUILD/obj/EXPORT_HDRS/pexpert -I/xnu/BUILD/obj/EXPORT_HDRS/libkern -I/xnu/BUILD/obj/EXPORT_HDRS/libsa -I/xnu/BUILD/obj/EXTERN_HDRS -I/xnu/EXTERNAL_HEADERS -I/xnu/EXTERNAL_HEADERS/bsd -I/xnu/osfmk/libsa /xnu/osfmk/ppc/chud/chud_cpu.c In file included from /xnu/osfmk/ppc/chud/chud_cpu.c:26: /xnu/osfmk/ppc/chud/chud_spr.h:26:1: unterminated #ifndef /xnu/osfmk/ppc/chud/chud_cpu.c: In function `chudxnu_set_shadowed_spr': /xnu/osfmk/ppc/chud/chud_cpu.c:227: error: `chud_7400_msscr1' undeclared (first use in this function) /xnu/osfmk/ppc/chud/chud_cpu.c:227: error: (Each undeclared identifier is reported only once /xnu/osfmk/ppc/chud/chud_cpu.c:227: error: for each function it appears in.) /xnu/osfmk/ppc/chud/chud_cpu.c: In function `chudxnu_set_shadowed_spr64': /xnu/osfmk/ppc/chud/chud_cpu.c:263: error: `chud_970_hid0' undeclared (first use in this function) /xnu/osfmk/ppc/chud/chud_cpu.c:275: error: `chud_970_hid1' undeclared (first use in this function) /xnu/osfmk/ppc/chud/chud_cpu.c:287: error: `chud_970_hid4' undeclared (first use in this function) /xnu/osfmk/ppc/chud/chud_cpu.c:299: error: `chud_970_hid5' undeclared (first use in this function) /xnu/osfmk/ppc/chud/chud_cpu.c: In function `chudxnu_clear_cpu_rupt_counters': /xnu/osfmk/ppc/chud/chud_cpu.c:447: warning: passing arg 1 of `bzero' from incompatible pointer type make[6]: *** [chud_cpu.o] Error 1 make[5]: *** [build_all] Error 2 make[4]: *** [do_all] Error 2 make[3]: *** [build_all] Error 2 make[2]: *** [build_all] Error 2 make[1]: *** [build_all] Error 2 make: *** [all] Error 2 Thanks in advance for any help getting through this. Tim Standing SoftRAID, LLC _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Timothy Standing