mono / sdb

A command line client for the Mono soft debugger.
https://www.mono-project.com
MIT License
117 stars 44 forks source link

Fails to build from the source #25

Closed mcepl closed 9 years ago

mcepl commented 9 years ago

With e6f697f and fresh update of submodules I get this.

matej@mitmanek: sdb (master)$ make
mkdir -p bin
cp LICENSE bin/LICENSE
mkdir -p bin
cp README.md bin/README
cd dep/debugger-libs && xbuild /verbosity:quiet /property:Configuration=net_4_0_Debug debugger-libs.sln
XBuild Engine Version 2.10.8.0
Mono, Version 2.10.8.0
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.
Editor/IDocument.cs(98,30): warning CS0419: Ambiguous reference in cref attribute `GetOffset'. Assuming `ICSharpCode.NRefactory.Editor.IDocument.GetOffset(int, int)' but other overloads including `ICSharpCode.NRefactory.Editor.IDocument.GetOffset(ICSharpCode.NRefactory.TextLocation)' have also matched
PatternMatching/INode.cs(51,37): warning CS1574: XML comment on `ICSharpCode.NRefactory.PatternMatching.PatternExtensions.Match(this ICSharpCode.NRefactory.PatternMatching.INode, ICSharpCode.NRefactory.PatternMatching.INode)' has cref attribute `PatternMatching.Match.Success' that could not be resolved
TextLocation.cs(35,23): warning CS0419: Ambiguous reference in cref attribute `Editor.IDocument.GetOffset'. Assuming `ICSharpCode.NRefactory.Editor.IDocument.GetOffset(int, int)' but other overloads including `ICSharpCode.NRefactory.Editor.IDocument.GetOffset(ICSharpCode.NRefactory.TextLocation)' have also matched
TypeSystem/FullTypeName.cs(87,24): warning CS0419: Ambiguous reference in cref attribute `ReflectionHelper.ParseReflectionName'. Assuming `ICSharpCode.NRefactory.TypeSystem.ReflectionHelper.ParseReflectionName(string)' but other overloads including `ICSharpCode.NRefactory.TypeSystem.ReflectionHelper.ParseReflectionName(string, ref int)' have also matched
TypeSystem/INamedElement.cs(59,24): warning CS0419: Ambiguous reference in cref attribute `ReflectionHelper.ParseReflectionName'. Assuming `ICSharpCode.NRefactory.TypeSystem.ReflectionHelper.ParseReflectionName(string)' but other overloads including `ICSharpCode.NRefactory.TypeSystem.ReflectionHelper.ParseReflectionName(string, ref int)' have also matched
TypeSystem/IType.cs(50,26): warning CS1584: XML comment on `ICSharpCode.NRefactory.TypeSystem.IType' has syntactically incorrect cref attribute `IEquatable{IType}.Equals(IType)'
TypeSystem/IType.cs(319,38): warning CS1580: Invalid type for parameter `1' in XML comment cref attribute `GetMethods(Predicate{IUnresolvedMethod}, GetMemberOptions)'
TypeSystem/TypeKind.cs(61,17): warning CS1580: Invalid type for parameter `1' in XML comment cref attribute `IType.GetNestedTypes(Predicate{ITypeDefinition}, GetMemberOptions)'
TypeSystem/SpecialType.cs(50,52): warning CS1580: Invalid type for parameter `1' in XML comment cref attribute `IType.GetNestedTypes(Predicate{ITypeDefinition}, GetMemberOptions)'
Main.cs(51,33): warning CS0219: The variable `dec' is assigned but its value is never used
Main.cs(57,27): warning CS0219: The variable `c' is assigned but its value is never used
Main.cs(58,27): warning CS0219: The variable `b' is assigned but its value is never used
Main.cs(59,27): warning CS0219: The variable `a' is assigned but its value is never used
Main.cs(61,43): warning CS0219: The variable `withDisplayString' is assigned but its value is never used
Main.cs(62,35): warning CS0219: The variable `withProxy' is assigned but its value is never used
Main.cs(63,38): warning CS0219: The variable `withToString' is assigned but its value is never used
Main.cs(65,33): warning CS0219: The variable `numbersArrays' is assigned but its value is never used
Main.cs(66,33): warning CS0219: The variable `numbersMulti' is assigned but its value is never used
Main.cs(68,29): warning CS0219: The variable `dict' is assigned but its value is never used
Main.cs(69,29): warning CS0219: The variable `dictArray' is assigned but its value is never used
Main.cs(70,29): warning CS0219: The variable `thing' is assigned but its value is never used
Main.cs(71,29): warning CS0219: The variable `done' is assigned but its value is never used
Main.cs(78,31): warning CS0219: The variable `c' is assigned but its value is never used
Main.cs(44,31): warning CS0414: The private field `UnitTests.TestApp.MainClass.staticString' is assigned but its value is never used
Main.cs(45,24): warning CS0414: The private field `UnitTests.TestApp.MainClass.someString' is assigned but its value is never used
Main.cs(46,26): warning CS0414: The private field `UnitTests.TestApp.MainClass.numbers' is assigned but its value is never used
Refactoring/Script.cs(110,45): warning CS0419: Ambiguous reference in cref attribute `Replace'. Assuming `ICSharpCode.NRefactory.CSharp.Refactoring.Script.Replace(int, int, string)' but other overloads including `ICSharpCode.NRefactory.CSharp.Refactoring.Script.Replace(ICSharpCode.NRefactory.CSharp.AstNode, ICSharpCode.NRefactory.CSharp.AstNode)' have also matched
IndentEngine/CSharpIndentEngine.cs(229,31): warning CS0419: Ambiguous reference in cref attribute `char.IsWhiteSpace'. Assuming `char.IsWhiteSpace(char)' but other overloads including `char.IsWhiteSpace(string, int)' have also matched
Parser/mcs/cs-tokenizer.cs(1719,30): warning CS0219: The variable `hasLeadingDot' is assigned but its value is never used
Parser/mcs/cs-tokenizer.cs(3180,39): warning CS0162: Unreachable code detected
Resolver/ResolveVisitor.cs(576,37): warning CS0219: The variable `nsName' is assigned but its value is never used
Completion/CSharpCompletionEngine.cs(886,80): warning CS0219: The variable `parameterDefinition' is assigned but its value is never used
Mono.Debugging.Evaluation/NRefactoryExpressionEvaluatorVisitor.cs(1073,61): warning CS0618: `ICSharpCode.NRefactory.CSharp.EmptyExpression' is obsolete: `This class is obsolete. Remove all referencing code.'
SoftDebuggerSession.cs(56,45): error CS0433: The imported type `Mono.CompilerServices.SymbolWriter.MonoSymbolFile' is defined multiple times
make: *** [bin/ICSharpCode.NRefactory.dll] Error 1
matej@mitmanek: sdb (master)$
alexrp commented 9 years ago

This looks like a problem with your Mono installation. I can't reproduce locally.

mcepl commented 9 years ago

OK, I take that I am an absolute newbie with Mono, but would you have any idea, what I am actually missing. Sitting with RHEL-7 and using Mono from EPEL repos.

DavidKarlas commented 9 years ago

You probably want to install newer version from http://www.mono-project.com/docs/getting-started/install/linux/ or build from source https://github.com/mono/mono#compilation-and-installation

mcepl commented 9 years ago

OK, I won't bother you anymore. I was thinking about C# as hoping that as a static language it will have a good support for development (for my work I use Python). Obviously, things are not that simple, so I will rather keep with Java (although, I have to admit, that C# libraries have seriously better API). I won't bother you anymore.