Bug 18909 - AOT compile error invalid symbol redefinition
Summary: AOT compile error invalid symbol redefinition
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 7.2.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: 7.2.1
Assignee: Zoltan Varga
Depends on:
Reported: 2014-04-09 16:20 UTC by John Miller [MSFT]
Modified: 2014-05-13 06:04 UTC (History)
5 users (show)

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

Repro Project (7.43 MB, application/zip)
2014-04-09 16:20 UTC, John Miller [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 John Miller [MSFT] 2014-04-09 16:20:18 UTC
Created attachment 6543 [details]
Repro Project

The attached sample project receives the following error when compiling for a device:

error: invalid symbol redefinition

error MT3001: Could not AOT the assembly '/Users/John/Downloads/Apitron/Samples/IosSampleProject/obj/iPhone/Debug/mtouch-cache/Build/Apitron.PDF.Rasterizer.dll'
  at MonoTouch.CompileTask.Build () [0x00000] in <filename unknown>:0 
  at MonoTouch.BuildTask.Execute () [0x00000] in <filename unknown>:0 
  at MonoTouch.BuildTask.Execute () [0x00000] in <filename unknown>:0 
  at MonoTouch.Application.<Compile>m__1A (MonoTouch.BuildTask v) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Parallel+<ForEach>c__AnonStorey6`1[MonoTouch.BuildTask].<>m__0 (MonoTouch.BuildTask e, System.Threading.Tasks.ParallelLoopState s, System.Object l) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Parallel+<ForEach>c__AnonStorey5`2[MonoTouch.BuildTask,System.Object].<>m__0 () [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.TaskActionInvoker+ActionInvoke.Invoke (System.Threading.Tasks.Task owner, System.Object state, System.Threading.Tasks.Task context) [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <filename unknown>:0 
  at System.Threading.Tasks.Task.ThreadStart () [0x00000] in <filename unknown>:0 

Steps to Reproduce:

* Download the attached sample project
* Compile the project for an iOS Device


* Does not compile; Error messages above.

Expected Results:

* Compile successfully. 

Additional Info:

* I also attached the full build output for convenience.
Comment 2 Zoltan Varga 2014-04-10 04:56:35 UTC
This might be a dup of:
Could you try with the current 7.2.1 beta ?
Comment 3 Sadik Ali 2014-04-14 03:41:56 UTC
I have checked this issue. I followed steps mentioned in bug description and able to reproduce on below environments:

Build Log: https://gist.github.com/saurabh360/1a805f25b64ae308d4b9

Build Info:

=== Xamarin Studio === 
Version 4.2.3 (build 60)
Installation UUID: b1fc3b76-cf00-405e-a0a1-3839ac11fe6d
	Mono 3.4.0 ((no/9761a75)
	GTK+ 2.24.23 theme: Raleigh
	GTK# (
	Package version: 304000195

=== Apple Developer Tools ===
Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.iOS ===
Version: (Enterprise Edition)
=== Build Information ===
Release ID: 402030060
Git revision: 30c4afc300c2a39ec5300851357ce02e49dd217e
Xamarin addins: f8a9589b57c2bfab2ccd73c880e7ad81e3ecf044

=== Operating System ===
Mac OS X 10.9.3
Darwin Apples-iMac.local 13.2.0 Darwin Kernel Version 13.2.0
    root:xnu-2422.100.10~2/RELEASE_X86_64 x86_64

Also I have checked on Xamarin.iOS and noticed that application deployed successfully on iOS device
Screen cast: http://screencast.com/t/pQhAAk6QM
Comment 4 Sebastien Pouliot 2014-04-15 20:30:40 UTC
Builds and deploy fine with, closing.

@John, if there's an issue re-open with updated instructions.
Comment 5 Mohit Kheterpal 2014-05-13 06:04:21 UTC
I have checked this issue and now I am able to build and deploy the attached sample without any error.

Hence marking it as verified.

Environment info:
=== Xamarin Studio ===

Version 5.0 (build 861)
Installation UUID: 449f40dd-b3f1-4028-9a6b-cca0d1a2307d
	Mono 3.4.0 ((no/c3fc3ba)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000204

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 773c77c
Build date: 2014-04-18 15:39:16-0400

=== Xamarin.Android ===

Version: 4.12.4 (Trial Edition)
Android SDK: /Users/360logicaxamarinmacmini/Desktop/android-sdk-macosx
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.Mac ===


=== Build Information ===

Release ID: 500000861
Git revision: b50277ea043807e56d333f47dc089ef28d66b496
Build date: 2014-05-09 07:15:59-04
Xamarin addins: 503a5e5b4e5b374756568e8aa54268eff495d8d0

=== Operating System ===

Mac OS X 10.8.4
Darwin 360Logicas-Mac-mini.local 12.4.0 Darwin Kernel Version 12.4.0
    Sun Mar 10 18:01:10 PDT 2013
    root:xnu-2050.24.6~1/RELEASE_X86_64 x86_64