"Bad CPU type" when building on G4
"Bad CPU type" when building on G4
- Subject: "Bad CPU type" when building on G4
- From: John Zorko <email@hidden>
- Date: Mon, 20 Aug 2007 15:28:37 -0700
Hello, all ...
I'm working on an application that runs on Intel / PPC Macs (OSX) as
well as Windows. When I build this app on my MacBook (Core2 Duo) or
G5 (2.3ghz 970MP at work, dual 2.7ghz at home), the app runs.
However, when I try to build and run it on a G4, it builds, but does
not run. The error returned is "Bad CPU type for executable." The
issue seems to be 64-bit vs. 32-bit.
I've googled around and found references to --disable-multilib, but
these references were always with respect to bootstrapping gcc. I'm
not trying to build a new gcc, I just want to use the one that comes
with OSX (Apple's gcc4.0.1). Will just passing "-m32" in the gcc
parameters fix this? I'm trying this now, but this app takes hours
to build on a G4 (1.33ghz 12" PowerBook), and I figure I might get an
answer here before it's finished :-)
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