[Mono-list] Unable to compile SVN version 126419 of Mono

Brett Senior brett_senior at yahoo.com.au
Tue Feb 10 22:04:03 EST 2009

My apologies for posting this twice but when I posted it the first time I was
not subscribed to the Mono mailing list and thus has not been sent there and
has been waiting to be moderated for a couple of days.  So have re posted
this one.

Yestoday I fetched version 126419 of Mono from and attempted to build it
with the following commands:

$ cd mono
$ svn update
$ cd ../mcs
$ svn update
$ cd ../mono
$ ./autogen.sh --prefix=/opt/mono
$ make clean
$ make

and when it attempts to build things in 'docs' I get the following error:

cd . && make -f docs.make topdir=../../mcs convert.exe
make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs'
MCS     [default] convert.exe
Cannot open assembly '../../mcs/class/lib/default/mcs.exe': No such file or
make[1]: *** [convert.exe] Error 2
make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs'
make: *** [convert.exe] Error 2

So, I went to the ../../mcs/class/lib/default directory and created a
symbolic link to ../../../mcs/mcs.exe and then the build went a little
further and then I get the following error message:

cd . && make -f docs.make topdir=../../mcs convert.exe
make[1]: Entering directory `/home/brett/Downloads/MonoProject/mono/docs'
MCS     [default] convert.exe

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at Mono.CSharp.RootNamespace.GetTypeInAssembly (System.Reflection.Assembly
assembly, System.String name) [0x00000]
  at Mono.CSharp.RootNamespace.LookupTypeReflection (System.String name,
Location loc) [0x00000]
  at Mono.CSharp.GlobalRootNamespace.LookupTypeReflection (System.String
name, Location loc) [0x00000]
  at Mono.CSharp.Namespace.LookupType (System.String name, Location loc)
  at Mono.CSharp.Namespace.Lookup (Mono.CSharp.DeclSpace ds, System.String
name, Location loc) [0x00000]
  at Mono.CSharp.TypeManager.CoreLookupType (System.String ns_name,
System.String name, Kind type_kind, Boolean required) [0x00000]
  at Mono.CSharp.RootNamespace.ComputeNamespaces () [0x00000]
  at Mono.CSharp.Driver.LoadReferences () [0x00000]
  at Mono.CSharp.Driver.Compile () [0x00000]
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
make[1]: *** [convert.exe] Error 1
make[1]: Leaving directory `/home/brett/Downloads/MonoProject/mono/docs'
make: *** [convert.exe] Error 1

When I looked into this a little further it seems that mono/mono/mini/mono
has a problem with the -r:AgilityPack.dll and if I use a mono other than
this (eg /opt/mono/bin/mono) the convert.cs will compile to convert.exe - so
the problem seems to be something related to mono/mono/mini/mono.

But the other question is why is the make file trying to access something
when on my system it does not get built ?

I have compiled mono from svn in the past and have not had issues such as
the above.

Can someone please provide me with some help so that I can get mono built ? 
View this message in context: http://www.nabble.com/Unable-to-compile-SVN-version-126419-of-Mono-tp21947539p21947539.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list