[Mono-bugs] [Bug 682143] New: Adding -gcc_flags causes simulator build to fail with MonoTouch 3.99.13

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 23 21:22:08 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=682143

https://bugzilla.novell.com/show_bug.cgi?id=682143#c0


           Summary: Adding -gcc_flags causes simulator build to fail with
                    MonoTouch 3.99.13
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Tools
        AssignedTo: gnorton at novell.com
        ReportedBy: haakon at bertheussen.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16

If I add "-gcc_flags" to "Additional mtouch arguments" in my project settings,
building for the simulator fails. This is with MonoDevelop v2.4.2 and MonoTouch
v3.99.13

This can be reproduced by creating a new "Window-based project" in MonoDevelop,
and then opening the project settings and adding the following to "Additional
mtouch arguments":
-v -v -v -gcc_flags "-framework CoreGraphics"

I've pasted the build output below. Seems like mtouch is supplying gcc with the
"-arch" option twice, first with "i386" as the parameter, then "armv6".



Building: GccFlagsBug (Debug|iPhoneSimulator)

Performing main compilation...
/Developer/MonoTouch/usr/bin/smcs /noconfig
"/out:/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.exe"
"/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" /nologo /warn:4
/debug:+ /debug:full /optimize- /codepage:utf8 "/define:DEBUG"  /t:exe
"/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/MainWindow.xib.designer.cs"
"/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/Main.cs" 
Build complete -- 0 errors, 0 warnings

Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -sim
"/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.app"
"-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" -debug -nolink
"-sdk=4.3" -v -v -v -gcc_flags "-framework CoreGraphics"
"/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.exe"
Framework is:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
Copied
/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.exe
to
/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.app/GccFlagsBug.exe
Copied /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll to
/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.app/monotouch.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/mscorlib.dll to
/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.app/mscorlib.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.dll to
/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.app/System.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll to
/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.app/Mono.Security.dll
Copied /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll to
/Users/haakon/Projects/GccFlagsBug/GccFlagsBug/bin/iPhoneSimulator/Debug/GccFlagsBug.app/System.Core.dll
Generated
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch
i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2
-miphoneos-version-min=4.3 -arch armv6  -std=c99
-I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/include -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
-c /var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m -o
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.6.o
-DDEBUG

In file included from
/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/include/monotouch/monotouch.h:16,
                 from
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m:14:
/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/include/glib.h:111:1:
warning: "ABS" redefined
In file included from
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8,
                 from
/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/include/monotouch/gc.h:1,
                 from
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m:13:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:325:1:
warning: this is the location of the previous definition
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m: In
function 'main':
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m:1840:
warning: implicit declaration of function 'monotouch_enable_debug_tracking'
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m:1923:
warning: implicit declaration of function 'mini_get_debug_options'
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m:1927:
warning: implicit declaration of function 'mono_debugger_agent_parse_options'
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m:2069:
warning: cast from pointer to integer of different size
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m:2069:
warning: initialization makes pointer from integer without a cast
gcc-4.2: error trying to exec
'/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1':
execvp: No such file or directory
lipo: can't figure out the architecture type of:
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-//cc2asFo6.out
Process exited with code 255, command:
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch
i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2
-miphoneos-version-min=4.3 -arch armv6  -std=c99
-I/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/include -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
-c /var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.m -o
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.6.o
-DDEBUG
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch
i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2
-miphoneos-version-min=4.3 -arch armv6  -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.6.o -o
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/GccFlagsBug
-framework CFNetwork -framework AssetsLibrary -framework CoreTelephony
-framework EventKit -framework Foundation -framework CoreMotion -framework
GameKit -framework MapKit -framework MediaPlayer -framework MessageUI
-framework OpenGLES -framework StoreKit -framework UIKit -framework
AddressBookUI -framework iAd -framework SystemConfiguration -framework
AddressBook -framework AudioToolbox -framework AVFoundation -framework
QuartzCore -framework CoreFoundation -framework CoreGraphics -framework
CoreLocation -framework CoreVideo -framework ImageIO -framework Security
-framework CoreMedia -framework ExternalAccessory -framework EventKitUI
-framework QuickLook -framework AudioToolbox -lz -u _mono_pmip -u
_catch_exception_raise -u _CreateZStream -u _CloseZStream -u _Flush -u
_ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch
-L/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -framework
CoreGraphics

i686-apple-darwin10-gcc-4.2.1:
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.6.o: No
such file or directory
gcc-4.2: error trying to exec
'/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1':
execvp: No such file or directory
lipo: can't figure out the architecture type of:
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-//ccKfSVQD.out
Process exited with code 255, command:
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch
i386 -gdwarf-2 -fobjc-legacy-dispatch -fobjc-abi-version=2
-miphoneos-version-min=4.3 -arch armv6  -isysroot
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/main.6.o -o
/var/folders/JD/JDES4LivFwqM8x7qnFUdg++++TI/-Tmp-/tmp57c44cc7.tmp/GccFlagsBug
-framework CFNetwork -framework AssetsLibrary -framework CoreTelephony
-framework EventKit -framework Foundation -framework CoreMotion -framework
GameKit -framework MapKit -framework MediaPlayer -framework MessageUI
-framework OpenGLES -framework StoreKit -framework UIKit -framework
AddressBookUI -framework iAd -framework SystemConfiguration -framework
AddressBook -framework AudioToolbox -framework AVFoundation -framework
QuartzCore -framework CoreFoundation -framework CoreGraphics -framework
CoreLocation -framework CoreVideo -framework ImageIO -framework Security
-framework CoreMedia -framework ExternalAccessory -framework EventKitUI
-framework QuickLook -framework AudioToolbox -lz -u _mono_pmip -u
_catch_exception_raise -u _CreateZStream -u _CloseZStream -u _Flush -u
_ReadZStream -u _WriteZStream -liconv -lmono-2.0 -lmonotouch
-L/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib -framework
CoreGraphics

---------------------- Done ----------------------

Build: 1 error, 0 warnings



Reproducible: Always

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list