[darwinbuild-dev] Missing Availability.h with 9G55
William Siegrist
wsiegrist at apple.com
Tue Apr 28 11:55:58 PDT 2009
On Apr 28, 2009, at 11:40 AM, Craig Setera wrote:
> I feel like I'm *so close* doing this via darwinbuild, but I'm still
> hitting problems. I will do some more digging on the troubleshooting
> page to see if I can resolve the issues I'm seeing now. I tried to
> specify the target and it complained that that target didn't exist,
> so I'm not sure what is going on there.
>
> It looks like some of this may be failing when trying to build for
> PPC. I really only care about intel, so I'm not sure if there is an
> easy way to disable targeting PPC?
>
You can use the following to edit the project data in your build
environment:
$ darwinxref edit 9G55 ppp
You want to enter:
environment = {
RC_ARCHS = i386;
};
... and then save/quit.
You can verify the archs are set with:
$ darwinxref environment ppp
> Mig /SourceCache/ppp/ppp-314.0.1/Controller/pppcontroller.defs
> mkdir "/private/var/tmp/ppp/ppp-314.0.1.obj/ppp.build/pppd
> (Tool).build/DerivedSources"
> cd /SourceCache/ppp/ppp-314.0.1
> /XCD/loper/usr/bin/mig -header "/private/var/tmp/ppp/
> ppp-314.0.1.obj/ppp.build/pppd (Tool).build/DerivedSources/
> pppcontroller.h" -user "/private/var/tmp/ppp/ppp-314.0.1.obj/
> ppp.build/pppd (Tool).build/DerivedSources/pppcontrollerUser.c" -
> sheader /dev/null -server /dev/null -I/private/var/tmp/ppp/
> ppp-314.0.1.sym/BuiltProducts/include -I../../Family -I/private/var/
> tmp/ppp/ppp-314.0.1.root/usr/include /SourceCache/ppp/ppp-314.0.1/
> Controller/pppcontroller.defs
> dyld: Library not loaded: /System/Library/Frameworks/
> Foundation.framework/Versions/C/Foundation
> Referenced from: /usr/bin/arch
> Reason: image not found
This is a known problem of arch linking to Foundation. It looks like
you just need an arch that spits out "i386" or whatever, you can
replace it with a shell script that runs "uname -m". Look for arch
under the BuildRoot directory and replace it with the script.
-Bill
More information about the darwinbuild-dev
mailing list