Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MT3001: Could not AOT the assembly ... Elcometer.Core.dll #5898

Closed
elcometer opened this Issue Apr 15, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@elcometer
Copy link

elcometer commented Apr 15, 2019

Steps to Reproduce

  1. Download https://www.elcometer.com/downloads/crossplatformsdk.zip
  2. Unzip and open solution in Visual Studio for Mac 2019
  3. Switch to Release > iPhone
  4. Build either Elcometer.Demo.iOS or Elcometer.Demo.Xamarin.Forms.iOS project.

Expected Behavior

It should compile.

Actual Behavior

It fails with AOT error - it used to work on Visual Studio for Mac 2017

Environment

=== Visual Studio Professional 2019 for Mac ===

Version 8.0.2 (build 23)
Installation UUID: e05bace0-2f38-430c-a35f-7623af353198
	GTK+ 2.24.23 (Raleigh theme)
	Xamarin.Mac 5.6.0.2 (d16-0 / 040682909)

	Package version: 518010003

=== Mono Framework MDK ===

Runtime:
	Mono 5.18.1.3 (2018-08/fdb26b0a445) (64-bit)
	Package version: 518010003

=== NuGet ===

Version: 4.8.2.5835

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	2.1.9
	2.1.2
	2.0.5
	2.0.0
SDK: /usr/local/share/dotnet/sdk/2.1.505/Sdks
SDK Versions:
	2.1.505
	2.1.302
	2.1.4
	2.0.0
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.9
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 10.1 (14460.46)
Build 10B61

=== Xamarin.Android ===

Version: 9.2.0.5 (Visual Studio Professional)
Android SDK: /Users/davidd/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		5.0 (API level 21)
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)
		8.0 (API level 26)

SDK Tools Version: 25.2.5
SDK Platform Tools Version: 25.0.5
SDK Build Tools Version: 25.0.3

Build Information: 
Mono: mono/mono/2018-08-rc@5ad371dab1b
Java.Interop: xamarin/java.interop/d16-0@c987483
LibZipSharp: grendello/LibZipSharp/master@44de300
LibZip: nih-at/libzip/rel-1-5-1@b95cf3f
MXE: xamarin/mxe/xamarin@b9cbb535
ProGuard: xamarin/proguard/master@905836d
SQLite: xamarin/sqlite/3.26.0@325e91a
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-0@0a7edd6

=== Microsoft Mobile OpenJDK ===

Java SDK: /Users/davidd/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android Device Manager ===

Version: 1.2.0.14
Hash: 86df26f
Branch: remotes/origin/d16-0
Build date: 2019-04-05 16:58:56 UTC

=== Xamarin.Mac ===

Version: 5.8.0.0 (Visual Studio Professional)
Hash: 0aa84521
Branch: d16-0
Build date: 2019-04-02 16:01:19-0400

=== Xamarin.iOS ===

Version: 12.6.0.25 (Visual Studio Professional)
Hash: 50f75273
Branch: d16-0
Build date: 2019-03-05 11:50:33-0800

=== Xamarin Inspector ===

Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

=== Xamarin Designer ===

Version: 4.17.4.418
Hash: 3d086e814
Branch: remotes/origin/d16-0
Build date: 2019-04-01 09:20:10 UTC

=== Build Information ===

Release ID: 800020023
Git revision: c576bb008dfe54cdcf596237e09564ebd2da4343
Build date: 2019-04-06 10:06:46+00
Build branch: master
Xamarin extensions: 2c996830618e7cb8e8be97984d643eb86f122e8d

=== Operating System ===

Mac OS X 10.13.6
Darwin 17.7.0 Darwin Kernel Version 17.7.0
    Fri Nov  2 20:43:16 PDT 2018
    root:xnu-4570.71.17~1/RELEASE_X86_64 x86_64

Build Logs

 Mono Ahead of Time compiler - compiling assembly /Users/davidd/Downloads/crossplatformsdk/Xamarin.Native/Elcometer.Demo.iOS/obj/iPhone/Release/mtouch-cache/64/3-Build/Elcometer.Core.dll
    AOTID F6EB5953-59F0-77AD-FF45-77444D6B631E
    * Assertion at /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mono/mini/decompose.c:1469, condition `cfg->cbb == first_bb' not met
    
    
    AOT Compilation exited with code 134, command:
    MONO_PATH=/Users/davidd/Downloads/crossplatformsdk/Xamarin.Native/Elcometer.Demo.iOS/obj/iPhone/Release/mtouch-cache/64/3-Build /Library/Frameworks/Xamarin.iOS.framework/Versions/12.6.0.25/bin/arm64-darwin-mono-sgen --debug -O=gsharedvt -O=-float32  --aot=mtriple=arm64-ios,data-outfile=/Users/davidd/Downloads/crossplatformsdk/Xamarin.Native/Elcometer.Demo.iOS/obj/iPhone/Release/mtouch-cache/arm64/Elcometer.Core.aotdata.arm64,static,asmonly,direct-icalls,full,nodebug,dwarfdebug,msym-dir=/Users/davidd/Downloads/crossplatformsdk/Xamarin.Native/Elcometer.Demo.iOS/obj/iPhone/Release/mtouch-cache/64/3-Build/Msym,outfile=/Users/davidd/Downloads/crossplatformsdk/Xamarin.Native/Elcometer.Demo.iOS/obj/iPhone/Release/mtouch-cache/arm64/Elcometer.Core.dll.s "/Users/davidd/Downloads/crossplatformsdk/Xamarin.Native/Elcometer.Demo.iOS/obj/iPhone/Release/mtouch-cache/64/3-Build/Elcometer.Core.dll"
    Mono Ahead of Time compiler - compiling assembly /Users/davidd/Downloads/crossplatformsdk/Xamarin.Native/Elcometer.Demo.iOS/obj/iPhone/Release/mtouch-cache/64/3-Build/Elcometer.Core.dll
    AOTID F6EB5953-59F0-77AD-FF45-77444D6B631E
    * Assertion at /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mono/mini/decompose.c:1469, condition `cfg->cbb == first_bb' not met

Example Project (If Possible)

https://www.elcometer.com/downloads/crossplatformsdk.zip

@chamons

This comment has been minimized.

Copy link
Member

chamons commented Apr 15, 2019

Thanks for the steps to reproduce. I've been able to reproduce your issue.

Simplified steps to reproduce:

  • Download3-Build.zip
  • Unzip
  • cd 3-Build
  • MONO_PATH=. /Library/Frameworks/Xamarin.iOS.framework/Versions/12.8.0.0/bin/arm-darwin-mono-sgen --debug -O=gsharedvt -O=-float32 --aot=mtriple=armv7-ios,data-outfile=foo.out,static,asmonly,direct-icalls,full,soft-debug,dwarfdebug,no-direct-calls,outfile=Elcometer.Core.dll.s Elcometer.Core.dll
Mono Ahead of Time compiler - compiling assembly /Users/donblas/Desktop/3-Build/Elcometer.Core.dll
AOTID FB718798-DE15-9984-FD0D-7A2DD5BBEE4D
* Assertion at /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mono/mini/decompose.c:1469, condition `cfg->cbb == first_bb' not met
@chamons

This comment has been minimized.

Copy link
Member

chamons commented Apr 15, 2019

This issue was moved to mono/mono#14066

@chamons chamons closed this Apr 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.