Bug 3243 - mcs from 2.11 fails to build MonoDevelop master
Summary: mcs from 2.11 fails to build MonoDevelop master
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2012-02-06 18:01 UTC by Jeffrey Stedfast
Modified: 2012-02-27 05:25 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 NOT_REPRODUCIBLE

Description Jeffrey Stedfast 2012-02-06 18:01:13 UTC
here's the error I'm getting:


Making all in mdhost
/Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/build-root/_install/bin/dmcs -debug -codepage:utf8 ./src/AssemblyInfo.cs ./src/mdhost.cs  -r:System.Runtime.Remoting -r:/Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/build-root/_install/lib/pkgconfig/../../lib/mono/mono-addins/Mono.Addins.dll   -r:Mono.Posix -r:../../../build/bin/MonoDevelop.Core.dll -out:../../../build/bin/mdhost.exe

Unhandled Exception: System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds
  at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00000] in <filename unknown>:0 
  at System.Array.CopyTo (System.Array array, Int32 index) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AssemblyReferencesLoader`1[IKVM.Reflection.Assembly].LoadReferencesCore (Mono.CSharp.ModuleContainer module, IKVM.Reflection.Assembly& corlib_assembly, System.Collections.Generic.List`1& loaded) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.StaticLoader.LoadReferences (Mono.CSharp.ModuleContainer module) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds
  at System.Array.Copy (System.Array sourceArray, Int32 sourceIndex, System.Array destinationArray, Int32 destinationIndex, Int32 length) [0x00000] in <filename unknown>:0 
  at System.Array.CopyTo (System.Array array, Int32 index) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.AssemblyReferencesLoader`1[IKVM.Reflection.Assembly].LoadReferencesCore (Mono.CSharp.ModuleContainer module, IKVM.Reflection.Assembly& corlib_assembly, System.Collections.Generic.List`1& loaded) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.StaticLoader.LoadReferences (Mono.CSharp.ModuleContainer module) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 
make[4]: *** [../../../build/bin/mdhost.exe] Error 1
Comment 1 Jeffrey Stedfast 2012-02-06 18:02:18 UTC
[fejj@localhost monodevelop]$ dmcs --version
Mono C# compiler version 2.11.0.0
[fejj@localhost monodevelop]$ mono --version
Mono JIT compiler version 2.11 (master/257adf6 Mon Feb  6 17:27:13 EST 2012)
Copyright (C) 2002-2011 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       normal
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            Included Boehm (with typed GC)
Comment 2 Marek Safar 2012-02-07 04:09:22 UTC
I cannot reproduce it.

Are you sure dmcs is same as /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/build-root/_install/bin/dmcs ?

Secondly my compiler command line is quite different when building mdhost

/home/marek/mono/bin/dmcs -debug -codepage:utf8 ./src/AssemblyInfo.cs ./src/mdtool.cs  -r:/home/marek/mono/lib/pkgconfig/../../lib/mono/mono-addins/Mono.Addins.dll   -r:/home/marek/mono/lib/pkgconfig/../../lib/mono/mono-addins/Mono.Addins.Setup.dll -r:/home/marek/mono/lib/pkgconfig/../../lib/mono/mono-addins/Mono.Addins.dll   -r:../../../build/bin/MonoDevelop.Core.dll /out:../../../build/bin/mdtool.exe
Comment 3 Jeffrey Stedfast 2012-02-07 11:13:15 UTC
[fejj@localhost mdhost]$ export MONO_OPTIONS=--debug
[fejj@localhost mdhost]$ /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/build-root/_install/bin/dmcs -debug -codepage:utf8 ./src/AssemblyInfo.cs ./src/mdhost.cs  -r:System.Runtime.Remoting -r:/Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/build-root/_install/lib/pkgconfig/../../lib/mono/mono-addins/Mono.Addins.dll   -r:Mono.Posix -r:../../../build/bin/MonoDevelop.Core.dll -out:../../../build/bin/mdhost.exe

Unhandled Exception: System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
  at System.Array.CopyTo (System.Array array, Int32 index) [0x0008d] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/class/corlib/System/Array.cs:2157 
  at Mono.CSharp.AssemblyReferencesLoader`1[IKVM.Reflection.Assembly].LoadReferencesCore (Mono.CSharp.ModuleContainer module, IKVM.Reflection.Assembly& corlib_assembly, System.Collections.Generic.List`1& loaded) [0x0007f] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/mcs/assembly.cs:1128 
  at Mono.CSharp.StaticLoader.LoadReferences (Mono.CSharp.ModuleContainer module) [0x00000] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/mcs/ikvm.cs:482 
  at Mono.CSharp.Driver.Compile () [0x001b1] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/mcs/driver.cs:274 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00052] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/mcs/driver.cs:139 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
  at System.Array.CopyTo (System.Array array, Int32 index) [0x0008d] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/class/corlib/System/Array.cs:2157 
  at Mono.CSharp.AssemblyReferencesLoader`1[IKVM.Reflection.Assembly].LoadReferencesCore (Mono.CSharp.ModuleContainer module, IKVM.Reflection.Assembly& corlib_assembly, System.Collections.Generic.List`1& loaded) [0x0007f] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/mcs/assembly.cs:1128 
  at Mono.CSharp.StaticLoader.LoadReferences (Mono.CSharp.ModuleContainer module) [0x00000] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/mcs/ikvm.cs:482 
  at Mono.CSharp.Driver.Compile () [0x001b1] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/mcs/driver.cs:274 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00052] in /Users/fejj/src/bockbuild/profiles/monodevelop-mac-dev-master/mono/mcs/mcs/driver.cs:139
Comment 4 Marek Safar 2012-02-13 04:47:40 UTC
I still cannot reproduce it
Comment 5 Marek Safar 2012-02-27 05:25:40 UTC
Closing.