Re: Problems building xnu-792
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com - Kevin On May 7, 2005, at 10:23 PM, Jake Luck wrote: _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... You've made it to the linking phase, which is half the battle. Correct, you should be using gcc 3.3 to compile most bits of the OS. Did you do a "make clean" between your attempts to build with gcc 4.0 and gcc 3.3? I also suggest redirecting stdout and stderr to a log file so you can go back and look for errors that may contribute to the absence of these symbols. Got further with the 792 build. It turns out that xnu doesn't like the default gcc 4.0, you need to switch to 3.3 using "gcc_select". It is nearly working with the compiler binary tool posted here yesterday. Good luck. jake /usr/bin/gcc-3.3 -c -static -g -nostdinc -nostdlib -no-cpp-precomp - fno-builtin -finline -fno-keep-inline-functions -msoft-float - fsigned-bitfields -arch ppc -Dppc -DPPC -D__PPC__ -DPAGE_SIZE_FIXED -O2 -mcpu=750 -mmultiple -fschedule-insns -DAPPLE -DNeXT -DKERNEL - DKERNEL_PRIVATE -DXNU_KERNEL_PRIVATE -DPRIVATE -D__MACHO__=1 - Dvolatile=__volatile -I. -I/Src/xnu-792/. -I/Src/xnu-792/BUILD/obj/ EXPORT_HDRS/. -I/Src/xnu-792/BUILD/obj/EXPORT_HDRS/osfmk -I/Src/ xnu-792/BUILD/obj/EXPORT_HDRS/bsd -I/Src/xnu-792/BUILD/obj/ EXPORT_HDRS/iokit -I/Src/xnu-792/BUILD/obj/EXPORT_HDRS/pexpert -I/ Src/xnu-792/BUILD/obj/EXPORT_HDRS/libkern -I/Src/xnu-792/BUILD/obj/ EXPORT_HDRS/libsa -I/Src/xnu-792/BUILD/obj/EXTERN_HDRS -I/Src/ xnu-792/EXTERNAL_HEADERS -I/Src/xnu-792/EXTERNAL_HEADERS/bsd /Src/ xnu-792/BUILD/obj/RELEASE_PPC/version.c -o /Src/xnu-792/BUILD/obj/ RELEASE_PPC/version.o /usr/bin/g++-3.3 -nostdlib -static -force_cpusubtype_ALL -Wl,- e,__start -Wl,-segalign,0x1000 -Wl,-sectalign,__TEXT,__text,0x1000 - Wl,-sectalign,__DATA,__common,0x1000 -Wl,-sectalign,__DATA,__bss, 0x1000 -Wl,-sectcreate,__PRELINK,__text,/dev/null -Wl,- sectcreate,__PRELINK,__symtab,/dev/null -Wl,- sectcreate,__PRELINK,__info,/dev/null -arch ppc -Wl,- segaddr,__VECTORS,0x0 -Wl,-segaddr,__HIB,0x7000 -Wl,-segaddr,__TEXT, 0xe000 /Src/xnu-792/BUILD/obj/RELEASE_PPC/./osfmk/RELEASE/osfmk.o / Src/xnu-792/BUILD/obj/RELEASE_PPC/./bsd/RELEASE/bsd.o /Src/xnu-792/ BUILD/obj/RELEASE_PPC/./iokit/RELEASE/iokit.o /Src/xnu-792/BUILD/ obj/RELEASE_PPC/./pexpert/RELEASE/pexpert.o /Src/xnu-792/BUILD/obj/ RELEASE_PPC/./libkern/RELEASE/libkern.o /Src/xnu-792/BUILD/obj/ RELEASE_PPC/./libsa/RELEASE/libsa.o /Src/xnu-792/BUILD/obj/ RELEASE_PPC/version.o -o /Src/xnu-792/BUILD/obj/RELEASE_PPC/./ mach_kernel.sys -lcc_kext; \ /usr/bin/strip -S -x /Src/xnu-792/BUILD/obj/RELEASE_PPC/./ mach_kernel.sys -o /Src/xnu-792/BUILD/obj/RELEASE_PPC/./mach_kernel; ld: Undefined symbols: _OSCompareAndSwap _OSDequeueAtomic _OSEnqueueAtomic make[2]: *** [do_build_mach_kernel] Error 1 make[1]: *** [build_all] Error 2 make: *** [all] Error 2 This email sent to site_archiver@lists.apple.com
participants (1)
-
Kevin Van Vechten