Re: __CAST_DOWN_CHECK compiler errors
Re: __CAST_DOWN_CHECK compiler errors
- Subject: Re: __CAST_DOWN_CHECK compiler errors
- From: Shantonu Sen <email@hidden>
- Date: Sat, 17 Nov 2007 15:06:12 -0800
Mac OS X uses a 32-bit kernel on both 32-bit and 64-bit capable
processors. You should set your ARCHS build setting to "ppc i386" to
deliver a universal kext.
The Generic Kernel Extension template may be incorrect. Try IOKit
Kernel Extension.
Shantonu Sen
On Nov 17, 2007, at 10:10 AM, Dave B. Sharp wrote:
This would be much easier if I had a makefile to
work from. I am using the default project setting
generated by xcode 3.0 for the generic driver. Can’t
seem to generated a makefile. From what I can see from
the IDE the relevant option are: the optimization is
oo, target architecture is ppc64, instruction
scheduling is G5, warnings are set for pointer sign
comparison, mismatched return types. I was assuming
the defaults created by xcode to be correct. Not sure
where the 64b is from.
This is the first time with OSX kernel code, done
Linux, Solaris, Windows and hpux. If can help with the
makefile part, it would be much appreciated.
Regards
Dave
--- Shawn Erickson <email@hidden> wrote:
On Nov 17, 2007, at 6:38 AM, Dave B. Sharp wrote:
Thanx sorry,
The error was:
"error: size of array'__CAST_DOWN_CHECK is
negative"
What about the compile line? It seems like you are
building is 64b.
What is passed for -arch when you see this error?
-Shawn
Be smarter than spam. See how smart SpamGuard is at giving junk
email the boot with the All-new Yahoo! Mail. Click on Options in
Mail and switch to New Mail today or register for free at http://mail.yahoo.ca
_______________________________________________
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
_______________________________________________
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