Darwinbuild 10.6.x build procedure?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com So has anybody managed to build a 10.6.x version of the kernel via darwinbuild? I've tried various things and can build it outside of darwinbuild (just first build cxxfilt, dtrace, kext_tools, bootstrap_cmds) but when I try within darwinbuild it fails (in fact most projects fail) with various random errors. If I build with -nochroot it works (no surprise there) but I want to build inside the darwinbuild environment for 10J869. I suspect that the list of dependencies is wrong and to solve the problem I need to darwinbuild (and -load) some extra tools first, but I cant figure out which ones; the obvious ones (listed above) also wont build within darwinbuild. As an example, the errors I get from building cxxfilt are: 2011-06-02 14:13:48.453 xcodebuild[53138:607] Warning: SDK name collision for name 'macosx0.0': SDK at path '/Developer/SDKs/MacOSX10.5.sdk' being superceded by SDK at path '/Developer/SDKs/MacOSX10.6.sdk'. .... configure: error: installation or configuration problem: C compiler cannot create executables. make: *** [/Users/cooper/Documents/Dev/darwin/darwinbuild/10J869/BuildRoot/private/var/tmp/cxxfilt/cxxfilt-9.obj/configure-stamp] Error 1 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ BUILD TIME: 0h 0m 7s EXIT STATUS: 2 so, perhaps darwinbuild is missing some build tools, lets try cctools ... nope that fails with: /SourceCache/cctools/cctools-750/libstuff/../include/stuff/bytesex.h:43:36: error: mach/ppc/thread_status.h: No such file or directory ... lipo: can't open input file: /var/tmp//ccP3HJzI.out (No such file or directory) make[3]: *** [arch.o] Error 1 make[2]: *** [static] Error 2 make[1]: *** [install_tools] Error 1 make: *** [install] Error 2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ BUILD TIME: 0h 0m 1s EXIT STATUS: 2 humm. When I actually try to build xnu or some other tools further down the chain I get the SDK error (above) plus loads of these: Looking up with ''/Developer/usr/bin/xcodebuild' -sdk '/Users/cooper/Documents/Dev/darwin/darwinbuild/10J869/BuildRoot' -find 'relpath'' 2011-06-02 14:24:17.684 xcodebuild[53612:607] Warning: SDK name collision for name 'macosx0.0': SDK at path '/Developer/SDKs/MacOSX10.5.sdk' being superceded by SDK at path '/Developer/SDKs/MacOSX10.6.sdk'. /Developer/usr/bin/xcodebuild fails with 11 - Resource deadlock avoided make: execvp: /Users/cooper/Documents/Dev/darwin/darwinbuild/10J869/BuildRoot/SourceCache/xnu/xnu-1504.9.37: Permission denied make: execvp: /Users/cooper/Documents/Dev/darwin/darwinbuild/10J869/BuildRoot/SourceCache/xnu/xnu-1504.9.37: Permission denied Now I suspect from my investigation that the resource deadlock/permission denied errors are a result of an incomplete compiler/build tool chain in my darwinbuin buildroot (as is suggested by the error message I got from cxxfilt) but I've run out of ideas about how to solve this. Can anyone help, or should I just give up and raise a issue? Rich _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
R J Cooper