We've encountered another AOT bug with Xamarin iOS.
1. Build Log
2. Environment Details
3. mtouch-cache folder
This issue has been failing since April. Your advice then was to keep using April's version until it was resolved in August. Here we are in September and in iOS 9, and the issue is still occurring.
Since we have a production site currently down (due to iOS 9) we need to urgently rebuild the app, are you able to expedite this?
I am XI, XA & XM Professional subscriber and I am requesting priority support on this issue please.
Created attachment 13005 [details]
Created attachment 13006 [details]
@Herman, I do not recall that specific error. There was a bug causing MT3001 errors (AOT compiler crash) a few months ago but it was resolved. Do you recall your bug number ?
Also did you try to build without LLVM ?
Your logs are from XI 9.2 (alpha), did you get the same error with 9.0 (stable) ?
note: priority support request are handled by support (see yellow banner on top of bugzilla pages).
AOT Compilation exited with code 1, command:
MONO_PATH=/Users/Developer/Documents/Development/5D/SH2/SH2.Mobile.iOS/obj/iPhone/Release/mtouch-cache/64/Build /Library/Frameworks/Xamarin.iOS.framework/Versions/126.96.36.199/bin/arm64-darwin-mono-sgen --debug --llvm -O=gsharedvt -O=-float32 --aot=mtriple=arm64-ios,full,static,asmonly,direct-icalls,nodebug,dwarfdebug,llvm-path=/Library/Frameworks/Xamarin.iOS.framework/Versions/188.8.131.52/LLVM/bin/,outfile=/Users/Developer/Documents/Development/5D/SH2/SH2.Mobile.iOS/obj/iPhone/Release/mtouch-cache/FluentSync.iOS.dll.arm64.s,llvm-outfile=/Users/Developer/Documents/Development/5D/SH2/SH2.Mobile.iOS/obj/iPhone/Release/mtouch-cache/FluentSync.iOS.dll.arm64-llvm.o "/Users/Developer/Documents/Development/5D/SH2/SH2.Mobile.iOS/obj/iPhone/Release/mtouch-cache/64/Build/FluentSync.iOS.dll"
PHINode should have one entry for each predecessor of its parent basic block!
%139 = phi %System.Guid* [ %10, %BB15 ], [ %7, %BB17 ]
LLVM ERROR: Broken function found, compilation aborted!
@Zoltan, have you seen this one before ?
I can reproduce this.
Should be fixed by mono master 6fb7ac2cb2df3d75f1fee054fbcd5413196121e9.
As a workaround, disable LLVM or disable the obfuscation on FluentSync.iOS.dll if possible.
maccore/master caccada22b07d4b3b8af5603fda25c974831d7ad has the mono bump.
Backport to C6 is tracked in https://trello.com/c/Xrrz0w4T/155-xi-34147-aot-problem
I am able to reproduce this issue mentioned in comment 4
Steps followed to reproduce this issue :
1.Create a Xamarin.iOS single view application.
2.Add refrence of FluentSync.iOS from 64/Build/FluentSync.iOS.dll from comment 3 attchment.
Using FluentSync.Core in ViewController.cs
4.Implement following code in ViewController.cs
public override void ViewDidLoad ()
DefaultPrimaryKeyResolver dpkr = new DefaultPrimaryKeyResolver ();
var abc = dpkr.DefaultStrategy;
// Perform any additional setup after loading the view, typically from a nib.
5.Attach device to mac machine
5.Set Supported architecture from Project ->Option->iOS Build->Supported Architecture to ARMv7 + ARMv7s +ARM64
6.Linker Behaviour to Dont Link Project ->Option->iOS Build.
7.Checked Use the LLVM and Use thumb2 option
8.Build the application in Debug/iPhone configuration.
I have verified this issue with XI 184.108.40.206 with above reproducible steps and also add System.Data to refrence of project.
Build Output: https://gist.github.com/Arpit360/ba9a660ba1b3bf0283f7
Environment Info: https://gist.github.com/Arpit360/510be7fe6a6ff98d741e
An update to comment 9:
Build for Reproducing this issue:
Mono : MonoFramework-MDK-220.127.116.11.macos10.xamarin.x86_328e048e15fc27500b549e6b5fbfb3b4bc06e72d
XI : monotouch-18.104.22.168_6121d434710754ffb137fa5c6dcabcb34f876f2f
I have checked this issue with Cycle 6 latest build and observed that this issue is working fine.
Environment: === Xamarin Studio ===
Version 5.10 (build 815)
Installation UUID: 3d25a767-a003-4a7d-9f5e-e57987cf6cf0
Mono 4.2.1 (explicit/d8b68fd)
GTK+ 2.24.23 (Raleigh theme)
Package version: 402010069
=== Xamarin.Profiler ===
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Apple Developer Tools ===
Xcode 7.0 (8227)
=== Xamarin.iOS ===
Version: 22.214.171.124 (Business Edition)
Build date: 2015-10-09 16:01:44-0400
=== Xamarin.Android ===
Version: 126.96.36.199 (Business Edition)
Android SDK: /Users/mac360_xamarin/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
4.1 (API level 16)
4.4 (API level 19)
4.4.87 (API level 20)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
SDK Tools Version: 24.4
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
=== Xamarin Android Player ===
Location: /Applications/Xamarin Android Player.app
=== Xamarin.Mac ===
Version: 188.8.131.52 (Business Edition)
=== Build Information ===
Release ID: 510000815
Git revision: 1f1910169d5433415cac632094c57272080ef9df
Build date: 2015-10-08 14:39:26-04
Xamarin addins: a44901897f3e0c6a25c0f12b6a5fcd892faecdbc
Build lane: monodevelop-lion-cycle6
=== Operating System ===
Mac OS X 10.10.5
Darwin mac360-xamarins-Mac-mini.local 14.5.0 Darwin Kernel Version 14.5.0
Wed Jul 29 02:26:53 PDT 2015