Re: Error compiling darwin kernel
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi list, Search the list archives for details. -- Terry _______________________________________________ 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... On Jun 4, 2007, at 8:52 AM, Billy Lau wrote: I encountered this error while compiling the kernel using "make all". I obtained the xnu source code from the darwin source code website. /Users/xxx/darwin2/xnu-792.17.14/iokit/Kernel/IOWorkLoop.cpp: In member function 'virtual bool IOWorkLoop::init()': /Users/xxx/darwin2/xnu-792.17.14/iokit/Kernel/IOWorkLoop.cpp:79: error: converting from `IOReturn (IOWorkLoop::*)(void*, void*, void*, void*)' to `IOReturn (*)(OSObject*, void*, void*, void*, void*)' in a kext. Use OSMemberFunctionCast() instead. /Users/xxx/darwin2/xnu-792.17.14/iokit/Kernel/IOWorkLoop.cpp:93: warning: invalid conversion from 'void (*)(void*, wait_result_t)' to 'void (*)(void*)' /Users/xxx/darwin2/xnu-792.17.14/iokit/Kernel/IOWorkLoop.cpp:93: warning: initializing argument 1 of 'thread* IOCreateThread(void (*)(void*), void*)' make[6]: *** [IOWorkLoop.cpo] 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 Does anyone know what is the problem and how to solve it? THank you very much Yeah, you are compiling PPC kernel sources with the gcc 4.0 compiler instead of the gcc 3.3 compiler, or using the Intel kernel sources, which compile for both the PPC and Intel platforms with the gcc 4.0 compiler (but which is not a supported configuration for PPC on not Mac OS X server platforms at this time). This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert