site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Am 10.05.2005 um 19:54 schrieb Kevin Van Vechten: On May 8, 2005, at 7:37 AM, Markus Hitter wrote: I succeeded compiling anyways ;-) It's a harmless patch as small as: Thanks, Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ _______________________________________________ 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... to join the party, I'm trying to compile xnu-792 from Mac OS X 10.3.9 with Xcode 1.5 installed. The default compiler is gcc 3.3 (gcc version 3.3 20030304 (Apple Computer, Inc. build 1671)). Compiling xnu-792 on anything but Tiger will present a unique set of problems. In this case, it looks like xnu-792 uses some assembly that is not supported by the Panther assembler. diff -r xnu-792/osfmk/ppc/mappings.h xnu/osfmk/ppc/mappings.h 152c152,156 < #define GV_HPAGE_SHIFT (GV_PGIDX_SZ_LG2 - GV_GRPS_PPG_LG2) ---
//Markus: This is a 5-bit parameter and evaluates to -1
//Markus The gcc 3.3 coming with Xcode 1.5 doesn't like negative
//Markus values, so set it to 31, the positive equivalent.
//Markus#define GV_HPAGE_SHIFT (GV_PGIDX_SZ_LG2 - GV_GRPS_PPG_LG2)
#define GV_HPAGE_SHIFT 31 Plus, you have to disable a bunch of -Werror's. Some automatically generated sources complain about unused parameters. I'm using the set of compile tools (relpath, seg_hack, libkld.a) I'm using for ages now. Appears to work so far.
I'm also slightly concerned about using a libkld.a that is not from the same era as xnu. You are right, there are symbols in the final link stage missing. I'll have to upgrade. Hopefully, I'll get a bigger HD for my iBook next week, so I can set up a test partition on an actually supported system. Getting the thing work on the PowerMac 7600 will probably have a bunch of additional issues ... This email sent to site_archiver@lists.apple.com