Bug 40500 - monolite-138 crashes when building mono-4.2.0-branch-c6sr4
Summary: monolite-138 crashes when building mono-4.2.0-branch-c6sr4
Status: RESOLVED FIXED
Alias: None
Product: Installers
Classification: Mono
Component: General ()
Version: 4.2.0 (C6)
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Jo Shields
URL:
Depends on:
Blocks:
 
Reported: 2016-04-19 01:31 UTC by Alexander Köplinger [MSFT]
Modified: 2016-04-19 11:52 UTC (History)
1 user (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 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:
Status:
RESOLVED FIXED

Description Alexander Köplinger [MSFT] 2016-04-19 01:31:37 UTC
When building the C6SR4 with monolite it crashes with the following error.

@Jo: This seems to be an issue with the specific monolite-138 we have on the server. If I use system Mono to build and create a new monolite, then it builds fine with that one. Can we replace the file?

> mkdir -p -- ../class/lib/basic/
> ./../jay/jay: 8 shift/reduce conflicts.
> MCS     [basic] basic.exe
> warning CS8001: SDK path could not be resolved
> warning CS1685: The predefined type `System.Security.Permissions.HostProtectionAttribute' is defined multiple times. Using definition from `mscorlib.dll'
> /Users/alexander/dev/mono-4.2/mcs/class/lib/monolite/mscorlib.dll (Location of the symbol related to previous warning)
> /Users/alexander/dev/mono-4.2/mcs/class/lib/monolite/System.dll (Location of the symbol related to previous warning)
> 
> Unhandled Exception:
> System.InvalidCastException: Arg_InvalidCastException
>   at System.Collections.Generic.EnumEqualityComparer`1[T].Equals (T x, T y) <0x110192b40 + 0x00056> in <filename unknown>:0
>   at System.Collections.Generic.List`1[T].Contains (System.Collections.Generic.T item) <0x110191e40 + 0x000a7> in <filename unknown>:0
>   at Mono.CSharp.TypeDefinition.CheckPairedOperators () <0x1101917d0 + 0x0016f> in <filename unknown>:0
>   at Mono.CSharp.TypeDefinition.DoDefineMembers () <0x10d8e8c30 + 0x00d7c> in <filename unknown>:0
>   at Mono.CSharp.ClassOrStruct.DoDefineMembers () <0x10d8e8710 + 0x00278> in <filename unknown>:0
>   at Mono.CSharp.Class.DoDefineMembers () <0x10d8e7f90 + 0x0071e> in <filename unknown>:0
>   at Mono.CSharp.TypeDefinition.Define () <0x10d8e7f30 + 0x0002c> in <filename unknown>:0
>   at Mono.CSharp.TypeContainer.Define () <0x10d8e7e20 + 0x00062> in <filename unknown>:0
>   at Mono.CSharp.TypeContainer.Define () <0x10d8e7e20 + 0x00062> in <filename unknown>:0
>   at Mono.CSharp.TypeContainer.Define () <0x10d8e7e20 + 0x00062> in <filename unknown>:0
>   at Mono.CSharp.ModuleContainer.Define () <0x10d8c92b0 + 0x0002f> in <filename unknown>:0
>   at Mono.CSharp.Driver.Compile () <0x10a3d2000 + 0x0077c> in <filename unknown>:0
>   at Mono.CSharp.Driver.Main (System.String[] args) <0x10a2f5e40 + 0x001ed> in <filename unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Arg_InvalidCastException
>   at System.Collections.Generic.EnumEqualityComparer`1[T].Equals (T x, T y) <0x110192b40 + 0x00056> in <filename unknown>:0
>   at System.Collections.Generic.List`1[T].Contains (System.Collections.Generic.T item) <0x110191e40 + 0x000a7> in <filename unknown>:0
>   at Mono.CSharp.TypeDefinition.CheckPairedOperators () <0x1101917d0 + 0x0016f> in <filename unknown>:0
>   at Mono.CSharp.TypeDefinition.DoDefineMembers () <0x10d8e8c30 + 0x00d7c> in <filename unknown>:0
>   at Mono.CSharp.ClassOrStruct.DoDefineMembers () <0x10d8e8710 + 0x00278> in <filename unknown>:0
>   at Mono.CSharp.Class.DoDefineMembers () <0x10d8e7f90 + 0x0071e> in <filename unknown>:0
>   at Mono.CSharp.TypeDefinition.Define () <0x10d8e7f30 + 0x0002c> in <filename unknown>:0
>   at Mono.CSharp.TypeContainer.Define () <0x10d8e7e20 + 0x00062> in <filename unknown>:0
>   at Mono.CSharp.TypeContainer.Define () <0x10d8e7e20 + 0x00062> in <filename unknown>:0
>   at Mono.CSharp.TypeContainer.Define () <0x10d8e7e20 + 0x00062> in <filename unknown>:0
>   at Mono.CSharp.ModuleContainer.Define () <0x10d8c92b0 + 0x0002f> in <filename unknown>:0
>   at Mono.CSharp.Driver.Compile () <0x10a3d2000 + 0x0077c> in <filename unknown>:0
>   at Mono.CSharp.Driver.Main (System.String[] args) <0x10a2f5e40 + 0x001ed> in <filename unknown>:0
> make[7]: *** [../class/lib/basic/basic.exe] Error 1
> make[6]: *** [do-all] Error 2
> make[5]: *** [all-recursive] Error 1
> make[4]: *** [profile-do--basic--all] Error 2
> make[3]: *** [profiles-do--all] Error 2
> make[2]: *** [all-local] Error 2
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
Comment 1 Jo Shields 2016-04-19 10:13:20 UTC
I've dropped 123cd63 in.
Comment 2 Jo Shields 2016-04-19 10:13:38 UTC
Can you check whether that works better?
Comment 3 Alexander Köplinger [MSFT] 2016-04-19 11:52:33 UTC
That one works fine, thanks.