Re: "Bad CPU type" when building on G4
Re: "Bad CPU type" when building on G4
- Subject: Re: "Bad CPU type" when building on G4
- From: John Zorko <email@hidden>
- Date: Tue, 21 Aug 2007 11:45:09 -0700
Terry,
Thanks for the response!
You are probably building both Intel and PPC as 64 bit, and you are
lucking out on the Core 2 Duo being a 64 bit CPU and not noticing.
Normally you have to specifically ask for 64 bit via -arch ppc64 -
arch x86_64; if you are doing this, then you probably also want -
arch i386 -arch plc
ppc to build it 4-way universal (if you need it to be 64 bit for
the address space on 64 bit machines, or to get twice as many
registers for the compiler to use on Intel for performance reasons,
etc,.).
Actually, I fixed it just by specifying -mcpu=G4, but I suspect that
this is a lowest-common-denominator approach (at least across PPC --
I was surprised to see that -mcpu=G4 didn't have any adverse effect
on the Intel Core2 Duo build, though I also suspect that I might have
the same issues if I tried to build it on a Core Duo / Solo).
I'll try adding all of those arches, and see if I can come up with
one binary image that works on G4 / G4 / Core / Core2 :-)
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden