Bug 48444 - Roslyn compiler throws exception on big endian systems
Summary: Roslyn compiler throws exception on big endian systems
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: Other Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2016-11-30 18:33 UTC by Neale Ferguson
Modified: 2016-11-30 19:57 UTC (History)
2 users (show)

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 GitHub or Developer Community 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 Neale Ferguson 2016-11-30 18:33:46 UTC
When building from master on a big-endian system the build fails with:

[ERROR] FATAL UNHANDLED EXCEPTION: System.PlatformNotSupportedException: Little-endian architecture required.
  at Microsoft.CodeAnalysis.CommonReferenceManager`2[TCompilation,TAssemblySymbol].ResolveMetadataReferences (TCompilation compilation, System.Collections.Generic.Dictionary`2[TKey,TValue] assemblyReferencesBySimpleName, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.MetadataReference]& references, System.Collections.Generic.IDictionary`2[Roslyn.Utilities.ValueTuple`2[System.String,System.String],Microsoft.CodeAnalysis.MetadataReference]& boundReferenceDirectiveMap, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.MetadataReference]& boundReferenceDirectives, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.CommonReferenceManager`2+AssemblyData[TCompilation,TAssemblySymbol]]& assemblies, System.Collections.Immutable.ImmutableArray`1[Microsoft.CodeAnalysis.PEModule]& modules, Microsoft.CodeAnalysis.DiagnosticBag diagnostics) [0x001a5] in <f38570e9df6d467f8e736052478db39b>:0
Comment 1 Miguel de Icaza [MSFT] 2016-11-30 19:57:48 UTC
This has been fixed in Roslyn 2.0, which we will adopt at some point.

In the meantime, we added auto-detection to configure to pick MCS for builds on Big Endian systems.