[Mono-dev] Cannot compile monodebugger with mono from svn trunk

xplicit svg at ngs.ru
Mon May 24 14:56:36 EDT 2010


I tried to compile monodebugger with mono from trunk and could not. 

I use mono parallel environment and I run ./autogen.sh --prefix=/opt/mono
and configure failed, with error: *** Your Mono is too old for this version
of the debugger.
I investigated this issue and found, that configure tries to compile C file
with following code:

///skipped
#include <mono/metadata/mono-debug.h>
#include <mono/metadata/debug-mono-symfile.h>

int
main ()
{

#if MONO_DEBUGGER_MAJOR_VERSION < 72
#error "Your mono is too old for this version of the debugger."
#endif
#if MONO_SYMBOL_FILE_MAJOR_VERSION != 50
#error "Your mono is too old for this version of the debugger." 
#endif
#if MONO_SYMBOL_FILE_MINOR_VERSION < 0
#error "Your mono is too old for this version of the debugger." 
#endif

  ;
  return 0;
}

and compiler cannot find includes

conftest.c:44:38: error: mono/metadata/mono-debug.h: No such file or
directory
conftest.c:45:46: error: mono/metadata/debug-mono-symfile.h: No such file or
directory
 
according to specs configure should pass $PREFIX/include directory to
compiler, but these files are located in the 
/opt/mono/include/mono-2.0/mono/metadata/mono-debug.h not in
/opt/mono/include/...

I ran 
export CPPFLAGS='-I/opt/mono/include/mono-2.0'
./autogen.sh --prefix=/opt/mono

and configure was successfully. After that I ran make and got the error:

/opt/mono/bin/gmcs -target:library -out:Mono.Debugger.SymbolWriter.dll
-d:CECIL -debug -define:DEBUG -define:DEBUGGER_SOURCE -nowarn:0169,0067  
-keyfile:../build/mono.snk -r:Mono.GetOptions -r:./Mono.Cecil.dll
../symbolwriter/MonoSymbolFile.cs ../symbolwriter/MonoSymbolTable.cs
AssemblyInfo.cs
error CS0006: cannot find metadata file `Mono.GetOptions'

As I understand Mono.GetOptions is obsolete, and was removed from mono
(changed to Mono.Options?), but debugger still have this reference.

I can compile debugger only with mono 2.6.4, but I am not sure, that I can
debug mono 2.7 apps with this debugger from monodevelop. Also, I have a
question, does the debugger support DLR?

svn info
URL: http://anonsvn.mono-project.com/source/trunk/debugger
Repository Root: http://anonsvn.mono-project.com/source
Repository UUID: e3ebcda4-bce8-0310-ba0a-eca2169e7518
Revision: 157801


-- 
View this message in context: http://mono.1490590.n4.nabble.com/Cannot-compile-monodebugger-with-mono-from-svn-trunk-tp2229014p2229014.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list