Bug 42006 - [iOS] Linksdk gives an AOT error on enabling incremental builds.
Summary: [iOS] Linksdk gives an AOT error on enabling incremental builds.
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 9.8 (tvOS / C7)
Hardware: PC Mac OS
: High normal
Target Milestone: 10.0.0 (C8)
Assignee: Sebastien Pouliot
URL:
: 42005 ()
Depends on:
Blocks:
 
Reported: 2016-06-20 15:59 UTC by GouriKumari
Modified: 2016-06-30 21:43 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:
VERIFIED FIXED

Description GouriKumari 2016-06-20 15:59:26 UTC

    
Comment 1 GouriKumari 2016-06-20 16:03:18 UTC
## Steps to reproduce:

UPdate System to Xamarin.iOS c7sr0 build, Version: 9.8.1.3 (Xamarin Business)
Hash: 422d7d4
Build linksdk tests on enabling incremental builds in Debug mode.

## Actual Behaviour:
MTOUCH: error MT3001: Could not AOT the assembly '/Users/gouri/GitRepo/maccore/tests/link sdk/obj/iPhone/Debug/mtouch-cache/Build/link sdk.exe'
	

## Logs:
Build Log: https://gist.github.com/GouriKumari/bb63d989d2b171342a48d0c7e8d4043d

## Supplemental Info:
I haven't tested linksdk with incremental builds enabled before, hence it doesn't seem to be a regression. I will test and confirm.

## TEst Env:=== Xamarin Studio Business ===

Version 6.0.1 (build 6)
Installation UUID: fafd3486-1aec-4f9c-ab77-08bf4a000708
Runtime:
	Mono 4.4.0 (mono-4.4.0-branch-c7sr0/a19399e) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000188

=== Xamarin.Profiler ===

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

=== Apple Developer Tools ===

Xcode 7.3.1 (10188.1)
Build 7D1014

=== Xamarin.Mac ===

Version: 2.8.0.323 (Xamarin Business)

=== Xamarin.iOS ===

Version: 9.8.1.3 (Xamarin Business)
Hash: 422d7d4
Branch: c7sr0
Build date: 2016-06-17 13:21:02-0400

=== Build Information ===

Release ID: 600010006
Git revision: 3ea718ee98e217cc1d3f870443425bcafe8afc03
Build date: 2016-06-17 15:52:05-04
Xamarin addins: a9252e6df4851fbbed1f9c6228e7b6dd1b475ac5
Build lane: monodevelop-lion-cycle7-sr0

=== Operating System ===

Mac OS X 10.11.5
Comment 2 GouriKumari 2016-06-20 16:24:01 UTC
*** Bug 42005 has been marked as a duplicate of this bug. ***
Comment 3 GouriKumari 2016-06-20 21:55:44 UTC
I verified this issue with our current stable builds and could reproduce the same issue, hence this bug is not a regression.

## Logs:
Build Log:https://gist.github.com/GouriKumari/4e4e51a56150048198ef624efe184414

## Test Env:=== Xamarin Studio Business ===

Version 6.0 (build 5174)
Installation UUID: fafd3486-1aec-4f9c-ab77-08bf4a000708
Runtime:
	Mono 4.4.0 (mono-4.4.0-branch-c7-baseline/5995f74) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000182

=== Xamarin.Profiler ===

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

=== Xamarin.Android ===

Version: 6.1.0.71 (Xamarin Business)
Android SDK: /Users/gouri/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
		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.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.3.1 (10188.1)
Build 7D1014

=== Xamarin.iOS ===

Version: 9.8.0.323 (Xamarin Business)
Hash: 39ebb77
Branch: cycle7
Build date: 2016-06-01 21:23:15-0400

=== Xamarin.Mac ===

Version: 2.8.0.323 (Xamarin Business)

=== Build Information ===

Release ID: 600005174
Git revision: 694a75f040b7f2309bc43d4f78a3a6572ca898bf
Build date: 2016-06-01 17:28:08-04
Xamarin addins: 33f406fa2dcf214012c78cb846585f062b2e1d24
Build lane: monodevelop-lion-cycle7-baseline

=== Operating System ===

Mac OS X 10.11.5
Comment 4 Rolf Bjarne Kvinge [MSFT] 2016-06-21 10:35:16 UTC
We're not quoting something:

		/Applications/Xcode73.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -framework Foundation -framework UIKit /Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.1.3/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libmonosgen-2.0.dylib /Library/Frameworks/Xamarin.iOS.framework/Versions/9.8.1.3/SDKs/MonoTouch.iphoneos.sdk/usr/lib/libxamarin-debug.dylib -lz -isysroot /Applications/Xcode73.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -Qunused-arguments -miphoneos-version-min=8.0 -arch armv7 -shared -read_only_relocs suppress -install_name @executable_path/liblink sdk.exe.dylib -fapplication-extension -o "/Users/gouri/GitRepo/maccore/tests/link sdk/obj/iPhone/Debug/mtouch-cache/link sdk.exe.armv7.dylib" -x assembler "/Users/gouri/GitRepo/maccore/tests/link sdk/obj/iPhone/Debug/mtouch-cache/link sdk.exe.armv7.s" -DDEBUG
		clang: error: no such file or directory: 'sdk.exe.dylib'
Comment 5 Sebastien Pouliot 2016-06-28 15:50:12 UTC
https://github.com/xamarin/xamarin-macios/pull/303
Comment 7 GouriKumari 2016-06-30 21:43:06 UTC
Verified with Xamarin-macios master, Version: 9.9.2.131 (Visual Studio Enterprise)
Hash: cf2d43e. linksdk classic and unified build successfully with incremental builds enabled.

## Logs:
Build Log: 
https://gist.github.com/GouriKumari/3bfa8a3932b83853e3af248aca22c13b
https://gist.github.com/GouriKumari/f11d08a867857b1ec2eeabadb3b6a219

Test Env:
https://gist.github.com/GouriKumari/d9710498d39e5a5d9119b363a494dfa8