Bug 37640 - [Android] AOT support fails on Android using the ARMv7s ABI, works properly with x86. "AOT: module App64.dll.so is unusable: compiled against LLVM."
Summary: [Android] AOT support fails on Android using the ARMv7s ABI, works properly w...
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 6.0.0
Hardware: PC Mac OS
: Highest normal
Target Milestone: ---
Assignee: João Matos
Depends on:
Reported: 2016-01-13 02:27 UTC by Kent Green [MSFT]
Modified: 2016-02-11 16:41 UTC (History)
5 users (show)

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

Sample and logs from customer (84.81 KB, application/zip)
2016-01-13 02:27 UTC, Kent Green [MSFT]

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:

Description Kent Green [MSFT] 2016-01-13 02:27:26 UTC
Created attachment 14566 [details]
Sample and logs from customer

## Overview
From this enterprise desk case:

## Customer Description
AOT support is not working anymore on Android using the areabi-v7a ABI, while it works properly with x86. Changing the LLVM build option does not change anything. Tested as not working with the latest 4.0 Stable (attached version log) and the latest Alpha, using Visual Studio.

Running the package on an ARM device will show the following in the logs:
> 01-12 14:06:36.129: D/Mono(9987): AOT: module App64.dll.so is unusable: compiled against LLVM.

The environment file in the APK contains the following flags:
- mono.llvm=true
- mono.aot=normal

This feature is critical to make applications relevant in the marketplace, in terms of performance.

## Observations
I was not able to reproduce the issue in my tests, however I was also not able to replicate all the customer's conditions precisely. I tested the issue in a LG Volt running API 19, as well as on some similar devices in Test Cloud.

The user reported the issue by testing on Android Visual studio simulator (x86) and a Galaxy Note 3 (ARMv7s running Android 5.0). I was unable to find a precise match for the Galaxy Note 3 running Android 5.0; the closest I found where Note 3 devices running Android 4.4.2 & 4.3; and Galaxy S5s running Android 5.0: https://testcloud.xamarin.com/test/app64_311aebe3-24da-4d27-91f0-726f37716e29/?step=0_0_0 

## Build Information
Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA979
Microsoft Architecture and Modeling Tools
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-80000-00000-AA979
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA979
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA979
Microsoft Visual C++ 2015

Visual F# 2015   00322-80000-00000-AA979
Microsoft Visual F# 2015

Windows Phone SDK 8.0 - ENU   00322-80000-00000-AA979
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11106.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Team Foundation Server 2015 Power Tools   14.0
Power Tools that extend the Team Foundation Server integration with Visual Studio.

Microsoft Visual Studio Process Editor   1.0
Process Editor for Microsoft Visual Studio Team Foundation Server

NuGet Package Manager   3.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Syntax Visualizer   1.0
An extension for visualizing Roslyn SyntaxTrees.

TypeScript for Microsoft Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.24720.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin (1390b70)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (d300845)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (ea30b32)
Visual Studio extension to enable development for Xamarin.iOS.

## Additional Info
Adding logs and test case from user.
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2016-01-13 03:25:06 UTC
Just to make sure the precise status is mentioned here for reference, the AOT feature on Android is currently classified as "experimental" [1].

[1] https://developer.xamarin.com/releases/android/xamarin.android_5/xamarin.android_5.1/#Experimental_Features

Xamarin Customer Support
Comment 5 João Matos 2016-01-14 21:47:54 UTC
Thanks for the report, I'll take a closer look at this.