Bug 29327 - [iOS] MT3001 Could not aot the assembly error is thrown while building monotouch samples with Release+llvm
Summary: [iOS] MT3001 Could not aot the assembly error is thrown while building monoto...
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: master
Hardware: Macintosh Mac OS
: High blocker
Target Milestone: Untriaged
Assignee: Zoltan Varga
URL:
: 29361 ()
Depends on:
Blocks:
 
Reported: 2015-04-22 17:12 UTC by Dylan Kelly
Modified: 2015-04-23 20:34 UTC (History)
3 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 FIXED

Description Dylan Kelly 2015-04-22 17:12:44 UTC
Steps to reproduce:
Install Xamarin.iOS cee8090ff85f20881717d93e2c271dbf8aa3b715
Open any monotouch-sample project
Enable the checkbox "Use LLVM optimizing compiler" under iOS Build -> Advanced in project options
Build project for Release|iPhone

Actual Result: An error is thrown building
MTOUCH: error MT3001: Could not AOT the assembly '/Users/xamarinqa/GitRepo/monotouch-samples/HelloWorld_iPhone/obj/iPhone/Release/mtouch-cache/32/Build/Xamarin.iOS.dll'

Expected Result: project builds and deploys on device

Supplemental info: Xamarin.iOS bff596c9a00943be13f242799d395dee974108c1 works as expected
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-04-23 04:53:14 UTC
@Zoltan, can you have a look?

I can reproduce this in maccore/master by executing "make build-dev-monotouch-test CONFIG=Release" in maccore/tests:

> Mono Ahead of Time compiler - compiling assembly /work/maccore/master/maccore/tests/monotouch-test/obj/iPhone/ReleaseX/mtouch-cache/32/Build/Xamarin.iOS.dll
> * Assertion: should not be reached at ../../../../../mono/mono/mini/mini-llvm.c:1077
> %"System.Collections.Generic.KeyValuePair`2<TKey_REF, TValue_REF>" zeroinitializer
Comment 2 Zoltan Varga 2015-04-23 18:45:32 UTC
Fixed by the mono bump in mt master 6b8d015687b746d2332ac70a60037b67502eda61.
Comment 3 Sebastien Pouliot 2015-04-23 20:34:33 UTC
*** Bug 29361 has been marked as a duplicate of this bug. ***