Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cross-compile PPC kernel on Intel?



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:
http://lists.apple.com/mailman/options/darwin-kernel/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.