Cross-compile PPC kernel on Intel?
Cross-compile PPC kernel on Intel?
- Subject: Cross-compile PPC kernel on Intel?
- From: "Michael Crawford" <email@hidden>
- Date: Wed, 29 Aug 2007 03:55:56 -0700
I'm trying to build the 10.4.8 PowerPC kernel and some of its drivers
on an Intel Mac. I've used gcc_select to set the gcc version to 3.3.
The kernel build command line I use is:
make ARCH_CONFIGS=PPC KERNEL_CONFIGS=DEBUG all
the make runs for quite a while then gives the following error:
/usr/bin/cc -o makedis /Users/mike/Kernel/Build/xnu-792.12.6/osfmk/ddb/makedis.c
cc: installation problem, cannot exec `cc1': No such file or directory
make[6]: *** [makedis] Error 1
note that cc wasn't given the "-arch ppc" flag; it's trying to compile
to Intel code, but gcc 3.3 doesn't support Intel - it was trying to
exec a 3.3 cc1 for Intel and there isn't one.
So I try using gcc 4.01 (against the advice of the kernel build
instructions) and I get:
/Users/mike/Kernel/Build/xnu-792.12.6/iokit/Kernel/IOWorkLoop.cpp: In
member function 'virtual bool IOWorkLoop::init()':
/Users/mike/Kernel/Build/xnu-792.12.6/iokit/Kernel/IOWorkLoop.cpp:81:
error: converting from `IOReturn (IOWorkLoop::*)(void*, void*, void*,
void*)' to `IOReturn (*)(OSObject*, void*, void*, void*, void*)' in a
kext. Use OSMemberFunctionCast() instead.
Any tips for me?
The reason I'm trying to do this is that I've got a bug in a kernel
extension on a PowerPC machine, and I only have one PowerPC machine.
I want to build the kernel and the relevant drivers on an Intel Mac
that I'll be using as a debug host.
Thanks for your help,
Mike
--
Michael David Crawford
mdcrawford at gmail dot com
Enjoy my art, photography, music and writing at
http://www.geometricvisions.com/
--- Free Music Downloads ---
_______________________________________________
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