Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unknown opcode float_conv_to_i when building Xamarin.iOS project with FSharp.Core 5.0.0 dll #20533

@Liminiens

Description

@Liminiens

Steps to Reproduce

  1. Create a Fabulous Xamarin Forms app for an iOS.
  2. Upgrade FSharp.Core package version to 5.0.0 for an iOS and shared project.
  3. Try to build an iOS project

Current Behavior

_CompileToNative target fails with

Target _CompileToNative:
    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch @/Users/liminiens/Documents/Code/AotBug/AotBug.iOS/obj/iPhone/Release/response-file.rsp 
    Xamarin.iOS 14.2.0.12 (xcode12.1): e0ce49680 using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.1.sdk
    AOT Compilation exited with code 134, command:
    MONO_PATH=/Users/liminiens/Documents/Code/AotBug/AotBug.iOS/obj/iPhone/Release/mtouch-cache/3-Build /Library/Frameworks/Xamarin.iOS.framework/Versions/14.2.0.12/bin/arm64-darwin-mono-sgen --debug -O=gsharedvt -O=-float32 --aot=mtriple=arm64-ios,data-outfile=/Users/liminiens/Documents/Code/AotBug/AotBug.iOS/obj/iPhone/Release/mtouch-cache/arm64/FSharp.Core.aotdata.arm64,static,asmonly,direct-icalls,full,nodebug,dwarfdebug,msym-dir=/Users/liminiens/Documents/Code/AotBug/AotBug.iOS/obj/iPhone/Release/mtouch-cache/3-Build/Msym,outfile=/Users/liminiens/Documents/Code/AotBug/AotBug.iOS/obj/iPhone/Release/mtouch-cache/arm64/FSharp.Core.dll.s /Users/liminiens/Documents/Code/AotBug/AotBug.iOS/obj/iPhone/Release/mtouch-cache/3-Build/FSharp.Core.dll
    Mono Ahead of Time compiler - compiling assembly /Users/liminiens/Documents/Code/AotBug/AotBug.iOS/obj/iPhone/Release/mtouch-cache/3-Build/FSharp.Core.dll
    AOTID 728E5729-8461-56AD-E682-3A2B641329EE
    unknown opcode float_conv_to_i in mono_arch_output_basic_block()
    
    * Assertion: should not be reached at /Users/builder/jenkins/workspace/archive-mono/2020-02/ios/release/mono/mini/mini-arm64.c:4688
    
    MTOUCH : error MT3001: Could not AOT the assembly '/Users/liminiens/Documents/Code/AotBug/AotBug.iOS/obj/iPhone/Release/mtouch-cache/3-Build/FSharp.Core.dll'

Expected Behavior

Project builds

On which platforms did you notice this

[x] macOS
[ ] Linux
[ ] Windows

Version Used:

Mono JIT compiler version 6.12.0.93 (2020-02/620cf538206 Tue Aug 25 14:04:52 EDT 2020)

JetBrainsLog.ReSharperBuild_2020_10_30_14_50_12_5442.log

AotBug_sln.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions