Can't compile mcs (was Re: [Mono-list] Error compiling mono)

Jorge Santos jsf@ciencias.unam.mx
Tue, 18 Nov 2003 17:32:31 -0600


Varga Zoltan <vargaz@freemail.hu> writes:

>                  
>                                        Hi,
>
>   This is a bug in the libtool version in debian unstable.
> Downgrade to
> 1.5-5 (or wait till 1.5-7) hits the mirrors.
>

Well, that did it, thank you!

Now for the next problem, I get this when trying to compile mcs:

make[1]: Entering directory `/home/jsf/src/mono/mcs/mcs'
mcs   -d:NET_1_1 -g /target:exe /out:mcs.exe AssemblyInfo.cs anonymous.cs assign.cs attribute.cs driver.cs cs-tokenizer.cs cfold.cs class.cs codegen.cs const.cs constant.cs convert.cs decl.cs delegate.cs enum.cs ecore.cs expression.cs flowanalysis.cs genericparser.cs interface.cs iterators.cs literal.cs location.cs modifiers.cs namespace.cs parameter.cs pending.cs report.cs rootcontext.cs statement.cs support.cs typemanager.cs symbolwriter.cs tree.cs cs-parser.cs
 
Unhandled Exception: System.NullReferenceException: A null value was found where an object instance was required
in (unmanaged) /usr/local/lib/libmono.so.0(mono_reflection_parse_type+0x65) [0x400831d5]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x40091e62]
in <0x00050> System.Reflection.Assembly:GetType (string,bool,bool)
in <0x0001e> System.Reflection.Assembly:GetType (string)
in <0x00088> System.Reflection.Emit.ModuleBuilder:GetSymbolWriter (string)
in <0x00123> System.Reflection.Emit.ModuleBuilder:.ctor (System.Reflection.Emit.AssemblyBuilder,string,string,bool,bool,bool)
in <0x00159> System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule (string,string,bool,bool)
in <0x00021> System.Reflection.Emit.AssemblyBuilder:DefineDynamicModule (string,string,bool)
in <0x000d0> Mono.CSharp.CodeGen:Init (string,string,bool)
in <0x006ba> Mono.CSharp.Driver:MainDriver (string[])
in <0x0001b> Mono.CSharp.Driver:Main (string[])
 
make[1]: *** [mcs.exe] Error 1
make[1]: Leaving directory `/home/jsf/src/mono/mcs/mcs'
make: *** [all-recursive] Error 1


Any ideas why?


Bye,

Jorge


>
>
> Jorge Santos <jsf@ciencias.unam.mx> írta:
>
>> I'm getting the follwoing error:
>> 
>> make[3]: Entering directory
> `/home/jsf/src/mono/mono/mono/metadata'
>> /bin/sh ../../libtool --mode=link gcc  -g -O2 -g -Wall
> -Wunused -Wmissing-prototypes -Wmissing-declarations
> -Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings
>  -o monosn  monosn.o ../metadata/libmetadata.la    
> ../io-layer/libwapi.la                  
> ../utils/libmonoutils.la               
> ../../libgc/libmonogc.la                               
> -pthread -lgthread-2.0 -lglib-2.0                          
> -Wl,--export-dynamic -lgmodule-2.0 -ldl -lglib-2.0         
>             -lm -lnsl -lpthread -lrt -lm
>> libtool: link: cannot find the library `'
>> make[3]: *** [monosn] Error 1
>> 
>> 
>> While trying to compile mono from CVS (updated as of
> today), any ideas why?
>> 
>> TIA,
>> 
>> Jorge Santos
>> _______________________________________________
>> Mono-list maillist  -  Mono-list@lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>> 
>> 
>>