Bug 36247

Summary: MT3001 Invalid octal number when not using LLVM
Product: iOS Reporter: John Miller [MSFT] <john.miller>
Component: Mono runtime / AOT compilerAssignee: Zoltan Varga <vargaz>
Status: RESOLVED FIXED    
Severity: normal CC: d755319a, kumpera, mono-bugs+monotouch
Priority: ---    
Version: XI 9.2   
Target Milestone: Untriaged   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description John Miller [MSFT] 2015-11-25 09:48:03 UTC
**Overview:**

   While using a third-party library, an AOT error is thrown. 

**Steps to Reproduce:**

   1. Build the attached sample for iOS device in the Debug configuration

**Actual Results:**

   Multiple errors, including:

.../build-iphone8.1-9.1/mtouch-cache/EmptyKeys.UserInterface.dll.armv7.s:323753:10: error: invalid octal number
		        .asciz "00159*/"

.../build-iphone8.1-9.1/mtouch-cache/EmptyKeys.UserInterface.dll.armv7.s:317231:48: error: invalid character in input
		        .asciz "System_Collections_Generic_IEnumerator`1"

.../build-iphone8.1-9.1/mtouch-cache/EmptyKeys.UserInterface.dll.armv7.s:528295:1: error: assembler local symbol 'LTDIE_101_REFERENCE' not defined

MTOUCH: error MT3001: Could not AOT the assembly '.../build-iphone8.1-9.1/mtouch-cache/Build/EmptyKeys.UserInterface.dll'		                                                      

**Expected Results:**

   No AOT errors. 

**Build Date & Platform:**

   === Xamarin Studio ===

Version 5.10 (build 871)
Installation UUID: e01c3049-a2d2-4e0a-aad8-afe6fb627c4d
Runtime:
	Mono 4.2.1 (explicit/6dd2d0d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010102

=== Xamarin.Profiler ===

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

=== Apple Developer Tools ===

Xcode 7.1 (9079)
Build 7B91b

=== Xamarin.iOS ===

Version: 9.2.1.51 (Business Edition)
Hash: 3c0ec35
Branch: master
Build date: 2015-11-12 13:05:39-0500

=== Xamarin.Android ===

Version: 6.0.0.34 (Business Edition)
Android SDK: /Users/johnmiller/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: 2.4.0.109 (Business Edition)

=== Build Information ===

Release ID: 510000871
Git revision: 4e9c5abb5ffdae12ba02ac49da83f8b2011dbb88
Build date: 2015-11-12 06:02:54-05
Xamarin addins: 55007ed0e56436f385d8e26394a45be563abc7e8
Build lane: monodevelop-lion-cycle6

=== Operating System ===

Mac OS X 10.10.5

**Additional Information:**

   The developer of the library is not sure if it's their issue or a problem with Xamarin.iOS. 
   They did mention they use "random" unicode characters as private variable names in their code. 
   If LLVM is enabled, then the code will compile and no AOT errors are happening.
Comment 2 Zoltan Varga 2015-11-25 12:33:40 UTC
Fixed in mono master e901ed6c279de8c1d1f1100f755e117aa591d88e, maccore master
2f9df6f6e02a57cf48d05fc4828c850f671c45a3 contains a mono bump which picks up
the fix.