Bug 13043 - User cannot build with 5.0.4 (No gcc compiler found)
Summary: User cannot build with 5.0.4 (No gcc compiler found)
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 5.0
Hardware: PC Mac OS
: --- minor
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-07-03 15:51 UTC by Pierce Boggan [MSFT]
Modified: 2013-07-03 17:04 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description Pierce Boggan [MSFT] 2013-07-03 15:51:02 UTC
Description of Issue: Customer is trying to use an old MonoTouch license (latest build: 5.0.4) to build apps. However, he receives a "no gcc compiler found" error when building. He has attempted using old Xcodes + old MonoDevelops, but to no avail. 

Build Error:
/Developer/MonoTouch/usr/bin/mtouch --nomanifest --nosign -sim
"/Users/Johan/Documents/dev/Code/MonoTouch.Dialog/Sample/bin/iPhoneSimulator/Debug/Sample.app"
-r
"/Users/Johan/Documents/dev/Code/MonoTouch.Dialog/MonoTouch.Dialog/bin/iPhoneSimulator/Debug/MonoTouch.Dialog.dll"
-r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r
"/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r
"/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r
"/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -r
"/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.Linq.dll" -debug -nolink
-sdk "6.1" -targetver "5.0" --armv7 "--nostrip"
"/Users/Johan/Documents/dev/Code/MonoTouch.Dialog/Sample/bin/iPhoneSimulator/Debug/Sample.exe"
No gcc compiler found!
mtouch exited with code 1

Xamarin Studio Information:
User also tried Xcode 4.4
=== Xamarin Studio ===

Version 4.0.9 (build 12)
Installation UUID: 384e27a2-a023-4887-8ed5-6ab368ad7bd8
Runtime:
Mono 2.10.12 (mono-2-10/c9b270d)
GTK 2.24.16
GTK# (2.12.0.0)
Package version: 210120000

=== Apple Developer Tools ===

Xcode 4.6.3 (2068)
Build 4H1503

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.Android ===

Not Installed

=== Xamarin.iOS ===

Version: 5.0.4

=== Build Information ===

Release ID: 400090012
Git revision: f9c5c24e88417feb0319953db6d5fc650d416608
Build date: 2013-06-21 17:34:16+0000
Xamarin addins: 898d8afaabb160c025e21656f1490fa149397bff

=== Operating System ===

Mac OS X 10.8.4
Darwin guitar.local 12.4.0 Darwin Kernel Version 12.4.0
Wed May 1 17:57:12 PDT 2013
root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64

Additional Information:
My OS X version is 10.8.4
I have XCode 4.6.3 (4H1503)
With installed command line tools
IOS Simulator 6.0
IOS Simulator 5.0

My mtouch version is mtouch 5.0.4.1323439791

I noticed that there is no command line switches for selecting sdkroot on
my mtouch executable

Tried MonoDevelop 3.1.1:
MonoDevelop 3.1.1
Installation UUID: f406ba8a-4841-4bbb-bfa1-f1abe8827cf5
Runtime:
Mono 2.10.12 (mono-2-10/c9b270d)
GTK 2.24.16
GTK# (2.12.0.0)
Package version: 210120000
Apple Developer Tools:
Xcode 4.6.3 (2068)
Build 4H1503
Xamarin.Mac: Not Installed
Monotouch: 5.0.4
Mono for Android: Not Installed

Build information:
Release ID: 30101000
Git revision: 5d928ec4f9d5864b4db04a1301b8a8649b43fb9d
Build date: 2012-12-14 19:11:30+0000
Xamarin addins: 80f2dcc8fe4ed316b3e77dde496fc33d90305047
Operating System:
Mac OS X 10.8.4
Darwin guitar.local 12.4.0 Darwin Kernel Version 12.4.0
Wed May 1 17:57:12 PDT 2013
root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64
Comment 2 Sebastien Pouliot 2013-07-03 17:04:47 UTC
That version is very old. IIRC you'll need Xcode 4.2 which install into /Developer (only available for Snow Leopard and Lion). That's where the `gcc` compiler is being looked for.

> Mac OS X 10.8.4

Sadly this release cannot be installed on Mountain Lion. IIRC Apple had versions checks inside the installer.

Also this version of MT won't produce binaries that works with recent iOS versions. E.g. You'll hit the "stdout" issue [1] when running on iOS 5.1 (or later). However they will work on a device that has been provisioned for development.

[1] http://spouliot.wordpress.com/2012/03/13/ios-5-1-vs-stdout/

> I noticed that there is no command line switches for selecting sdkroot on my mtouch executable

No, that came later once Apple moved Xcode to the /Applications/Xcode.app directory (and we needed to support both locations).