> Hi all,
> I'm trying to build a MusicKit/SndKit example-app called 'Spectro', and
> XCode (v2.4, MacOSX 10.4.8, Intel) gives me this error: 'gcc-3.3:
> installation problem, cannot exec `cc1obj': No such file or directory'
You are attempting to use gcc3 to build i386 binaries. However, Apple only
provides gcc3 that produces ppc binaries. The error you see results from
Xcode (or whoever it is) looking for 'cc1obj' (the thing that actually
does all the work) in the i386 directory but not finding one.
The fix is to use gcc4, at least for i386 builds. Unless you need
compatibility with 10.2 or below, then you might as well use it for ppc
too.

Signature
Michael Ash
Rogue Amoeba Software
harry vs - 28 Dec 2006 22:11 GMT
> You are attempting to use gcc3 to build i386 binaries. However, Apple only
> provides gcc3 that produces ppc binaries. The error you see results from
[quoted text clipped - 4 lines]
> compatibility with 10.2 or below, then you might as well use it for ppc
> too.
Thanks Michael; just wanted the demo-app Spectro to build and run
locally, eventually to use MusicKit/SndKit itself (the error comes from
a file in the project-sources, not of any used frameworks). I tried to
set usage of gcc4 in the project/active project settings, as well as
other combinations (like using the Universal SDK), to no avail. It
seems the jam build-script insists on using gcc-3.3; I get this same
error-message with every combination of XCode-settings I tried, so I
guess it is time to look at the scripts in the build-directory ... ?
Michael Ash - 28 Dec 2006 22:29 GMT
>> You are attempting to use gcc3 to build i386 binaries. However, Apple only
>> provides gcc3 that produces ppc binaries. The error you see results from
[quoted text clipped - 13 lines]
> error-message with every combination of XCode-settings I tried, so I
> guess it is time to look at the scripts in the build-directory ... ?
Ah yes, jam also cannot be used to build for i386. (Well, it probably can,
but old Project Builder targets can't, at least not that I know of.)
Upgrade your target to a native Xcode target and you should be in a bunch
better situation.

Signature
Michael Ash
Rogue Amoeba Software
harry vs - 29 Dec 2006 08:09 GMT
> Ah yes, jam also cannot be used to build for i386. (Well, it probably can,
> but old Project Builder targets can't, at least not that I know of.)
> Upgrade your target to a native Xcode target and you should be in a bunch
> better situation.
It turned out that changing GCC Compiler Settings in the Simple View of
the Active Target Settings, like setting it to GCC v4.0, didn't change
anything; I found out by opening the Expert View, which showed CC and
CPLUSPLUS still on 3.3; changing them here (into 4.0) did work!