OSX Build Issues gcc failed with exit code 1

OSX Build Issues gcc failed with exit code 1

Postby flagon » 04 Sep 2011, 03:00

Hello -

I am trying to build on OSX and getting the following error:
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1

That doesnt give me a whole lot of details.

I am running osx 10.7 and xcode 4.1

I unzipped the source tarball: SuperTuxKart 0.7.2 bzipped tarball
I had to get the Config.xcconfiig out of svn, and then i had to copy in SuperTuxKart-Info.plist, stk.icns from the binary release..

That got everything to apparently compile, then I get this generic error. I am totally unfamiliar with xcode so I dont even know where to look for more details (if they exist) on this generic error.. I am guessing a linker error maybe? But without any more specifics I am lost as what to do next..

Does anyone have any suggestions?

Thanks!
flagon
 
Posts: 2
Joined: 04 Sep 2011, 02:51

Re: OSX Build Issues gcc failed with exit code 1

Postby Auria » 04 Sep 2011, 03:15

flagon {l Wrote}:I am trying to build on OSX and getting the following error:
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1

That doesnt give me a whole lot of details.

I am running osx 10.7 and xcode 4.1

I unzipped the source tarball: SuperTuxKart 0.7.2 bzipped tarball
I had to get the Config.xcconfiig out of svn, and then i had to copy in SuperTuxKart-Info.plist, stk.icns from the binary release..


Oops, thanks! I created a ticket so we can fix the next source release

flagon {l Wrote}:That got everything to apparently compile, then I get this generic error. I am totally unfamiliar with xcode so I dont even know where to look for more details (if they exist) on this generic error.. I am guessing a linker error maybe? But without any more specifics I am lost as what to do next..

Does anyone have any suggestions?

Thanks!


We will indeed need more info. Try to expand the link step as shown here : https://projects.ardrone.org/attachment ... .01_PM.png
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: OSX Build Issues gcc failed with exit code 1

Postby flagon » 04 Sep 2011, 15:52

Hello -

I just checked out the tip from the repository, and everything builds correctly! So maybe something was missing in the tar? Anyways thanks for your response!
flagon
 
Posts: 2
Joined: 04 Sep 2011, 02:51

Re: OSX Build Issues gcc failed with exit code 1

Postby Auria » 04 Sep 2011, 19:10

Thanks, glad everything works
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: OSX Build Issues gcc failed with exit code 1

Postby oresmus » 23 Sep 2011, 02:14

I had a similar problem and found a different "solution" (really a workaround).

I too have Mac OS 10.7 and Xcode 4.1. I tried both the latest stable release sources (0.7.2) and the trunk (rev 9888), and in both cases Xcode complained that required SDKs were missing (Xcode 4 only comes with 10.6 and 10.7, whereas the STK project wanted to build against 10.4u and 10.5). Also, in both cases Xcode only offered a 64-bit build scheme (which is unlikely to work, since at least one of the framework dependency downloads only came with ppc and i386 architectures). I tried letting Xcode upgrade the project but this didn't help.

Fortunately I still had Xcode 3.2.6 around -- Apple's installer for Xcode 4.1 had moved /Developer to /Developer-3.2.6, inside which are the older Xcode and its older SDKs. So I reverted my system back to Xcode 3.2.6 (by moving /Developer-3.2.6 to /Developer), and this fixed the problem (at least for the trunk sources, I didn't retry the 0.7.2 sources) -- it built and ran without errors. Fortunately I don't need Xcode 4.1 for anything else at the moment.

(If other people have this problem, I suggest updating the Mac OS build instructions on the wiki to warn about it and suggest using Xcode 3.2.6 rather than Xcode 4.1, at least when building on Lion.)
oresmus
 
Posts: 1
Joined: 23 Sep 2011, 01:31

Re: OSX Build Issues gcc failed with exit code 1

Postby Auria » 24 Sep 2011, 00:39

Thanks for the clarifications. Unfortunately at this point it seems unlikely that I will be able to provide a project that works for both OSX 10.4 and OSX 10.7 (well I am working on 10.6 but still keeping 10.4 comaptibility)

And indeed I will update the instructions on the wiki
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Who is online

Users browsing this forum: No registered users and 1 guest