Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 for Bug 41291 on
Developer Community or GitHub if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
An executable named "Xamarin_iOS.exe" causes this:
MTOUCH: error MT5212: Native linking failed, duplicate symbol: '_mono_aot_module_Xamarin_iOS_info'.
MTOUCH: error MT5213: Duplicate symbol in: [...]/iOS/obj/iPhone/Release/mtouch-cache/Xamarin_iOS.exe.arm64.o (Location related to previous error)
MTOUCH: error MT5213: Duplicate symbol in: [...]/iOS/obj/iPhone/Release/mtouch-cache/Xamarin.iOS.dll.arm64.o (Location related to previous error)
We already have a check for assemblies named as the executable, but it looks like the underscore is circumventing that check.
Maybe we should keep a list of the mono_aot_module_* symbol names generated, and detect duplicates there (and show the corresponding error).
> and detect duplicates there
Not sure what you mean by "there".
AOT time ? It's too late to fail a build for something we can detect a lot earlier. Even more since such app could have been working for quite a while in the JIT/simulator.
We should apply the same transforms (there's likely many other characters too) as the AOT compiler before doing the duplicate comparison.
Yeah, you're right, it's best to detect this as soon as possible, and not at AOT time.