Bug 11134 - MonoDevelop master doesn't compile with Mono 2.10.x
Summary: MonoDevelop master doesn't compile with Mono 2.10.x
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-03-13 17:02 UTC by Andres G. Aragoneses
Modified: 2013-03-13 22:13 UTC (History)
1 user (show)

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

full log (1.37 MB, text/plain)
2013-03-13 17:24 UTC, Andres G. Aragoneses

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 Andres G. Aragoneses 2013-03-13 17:02:18 UTC
I've heard that MonoDevelop should compile with mono < 3.0 (and if it wouldn't, then the configure script should warn about it), however I just tried this and got this error:

SoftDebuggerSession.cs(59,36): error CS0433: The imported type `Mono.CompilerServices.SymbolWriter.MonoSymbolFile' is defined multiple times

Running with stock mono of Ubuntu 12.10:
$ mono --version
Mono JIT compiler version (Debian
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            Included Boehm (with typed GC and Parallel Mark)
Comment 1 Andres G. Aragoneses 2013-03-13 17:24:23 UTC
Created attachment 3606 [details]
full log

Full log, with xbuild verbosity=detailed
Comment 2 Andres G. Aragoneses 2013-03-13 17:28:54 UTC
And I think the relevant part is:

Task "Csc"
		Using task Csc from Microsoft.Build.Tasks.Csc, Microsoft.Build.Tasks.v4.0, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
		Tool /usr/bin/dmcs execution started with arguments: /noconfig /codepage:65001 /debug:full /debug+ /keyfile:../../../core/Mono.Debugging/mono.debugging.snk /optimize- /out:obj/Debug/Mono.Debugging.Soft.dll ArrayAdaptor.cs FieldValueReference.cs PropertyValueReference.cs SoftDebuggerSession.cs VariableValueReference.cs SoftEvaluationContext.cs SoftDebuggerAdaptor.cs SoftDebuggerBacktrace.cs SoftDebuggerStartInfo.cs LoggingService.cs AssemblyInfo.cs StringAdaptor.cs /target:library /define:DEBUG /reference:/usr/lib/mono/4.0/System.dll /reference:/usr/lib/mono/4.0/System.Core.dll /reference:/home/andres1210/Code/system_mono/monodevelop/main/build/bin//Mono.Debugging.dll /reference:/home/andres1210/Code/system_mono/monodevelop/main/build/AddIns/MonoDevelop.Debugger.Soft//Mono.Debugger.Soft.dll /reference:/home/andres1210/Code/system_mono/monodevelop/main/external/cecil/bin/net_4_0_Debug//Mono.Cecil.dll /reference:/home/andres1210/Code/system_mono/monodevelop/main/external/cecil/bin/net_4_0_Debug//Mono.Cecil.Mdb.dll /reference:/usr/lib/mono/4.0/System.Xml.dll /reference:/usr/lib/mono/4.0/mscorlib.dll /reference:/home/andres1210/Code/system_mono/monodevelop/main/build/bin/ICSharpCode.NRefactory.CSharp.dll /reference:/home/andres1210/Code/system_mono/monodevelop/main/build/bin/ICSharpCode.NRefactory.dll /warn:4
SoftDebuggerSession.cs(59,36): error CS0433: The imported type `Mono.CompilerServices.SymbolWriter.MonoSymbolFile' is defined multiple times
		/home/andres1210/Code/system_mono/monodevelop/main/external/cecil/bin/net_4_0_Debug/Mono.Cecil.Mdb.dll (Location of the symbol related to previous error)
		/home/andres1210/Code/system_mono/monodevelop/main/build/bin/ICSharpCode.NRefactory.CSharp.dll (Location of the symbol related to previous error)
		Tool /usr/bin/dmcs execution finished.
	Task "Csc" execution -- FAILED
Comment 3 Andres G. Aragoneses 2013-03-13 17:37:56 UTC
woo! found a fix, pull request coming
Comment 4 Andres G. Aragoneses 2013-03-13 17:50:20 UTC
Comment 5 Mikayla Hutchinson [MSFT] 2013-03-13 19:44:29 UTC
2.108 is too old, you need 2.10.9.
Comment 6 Andres G. Aragoneses 2013-03-13 19:56:42 UTC
If I need 2.10.9, configure script should complain.

Anyway, Jeff merged my PR.
Comment 7 Andres G. Aragoneses 2013-03-13 20:31:53 UTC
Michael, do you mind pasting the .NET build error here?
Comment 8 Mikayla Hutchinson [MSFT] 2013-03-13 21:36:35 UTC
Jeff was wrong to merge the PR, it broke the build on .NET.

SoftDebuggerSession.cs(42,12): error CS0234: The type or namespace name 'CompilerServices' does not exist in the namespace 'Mono' (are you missing an assembly reference?) 

This is a Mono 2.10.8 bug, you need to upgrade to 2.10.9.
Comment 9 Andres G. Aragoneses 2013-03-13 22:13:16 UTC
Ok sorry about that, I've fixed the configure then, in this PR: