Re: Error compiling darwin kernel
Re: Error compiling darwin kernel
- Subject: Re: Error compiling darwin kernel
- From: Terry Lambert <email@hidden>
- Date: Mon, 4 Jun 2007 20:05:56 -0700
On Jun 4, 2007, at 8:52 AM, Billy Lau wrote:
Hi list,
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).
Search the list archives for details.
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden