[Mono-list] Problem compiling

Jorge Bastos mysql.jorge at decimal.pt
Mon Jan 23 08:53:19 EST 2006


Hi,
Just copied the .dll like you said (i think i did it right):
cp mcs/class/lib/default/I18N.dll mcs/class/lib/net_2_0_bootstrap/

But still nothing.
For now i just compiled mono with "--with-preview=no"



----- Original Message ----- 
From: "Atsushi Eno" <atsushi at ximian.com>
To: "Jorge Bastos" <mysql.jorge at decimal.pt>
Cc: <Mono-list at lists.ximian.com>
Sent: Monday, January 23, 2006 4:13 AM
Subject: Re: [Mono-list] Problem compiling


> Hi,
>
> A quick workaround I guess is to add I18N.*.dll from your *installed*
> lib/mono/2.0 (e.g. /usr/local/lib/mono/2.0) to
> path/to/your/sources/mcs/class/lib/net_2_0_bootstrap.
>
> The cause of the problem is, I18N.*.dll uses
> System.Text.EncoderFallback(Buffer)
> in 2.0 profile, which does not exist in net_2_0_bootstrap.
>
> I am going to fix the problem by adding those System.Text classes in
> net_2_0_bootstrap. (We can alternatively build I18N stuff inside
> net_2_0_bootstrap, but it would be just waste of build time.)
>
> This problem and the solution could be guessed and verified by running a
> simple code below:
>
> Console.WriteLine (Encoding.GetEncoding (1251).GetType
> ().Assembly.CodeBase);
>
> with MONO_PATH=path/to/mcs/class/lib/net_2_0_bootstrap mono blah.exe. It
> will
> print the path in the GAC.
>
> Atsushi Eno
>
>> Hi, i was trying to compile last 1.1.13.2 and i got this, anyone know
>> why?
>> Have no idea why he can't find "System.Text.EncoderFallbackBuffer "
>>
>> Jorge
>>
>>
>>
>>
>> ** (../../class/lib/net_2_0_bootstrap/mcs.exe:20796): WARNING **: The
>> class System.Text.EncoderFallbackBuffer could not be loaded, used in
>> mscorlib, Version=2.0.0.0, Culture=neutral,
>> PublicKeyToken=b77a5c561934e089
>>
>> =================================================================
>> Got a SIGSEGV while executing native code. This usually indicates
>> a fatal error in the mono runtime or one of the native libraries
>> used by your application.
>> =================================================================
>>
>> Stacktrace:
>>
>> in <0xffffffff> I18N.Common.ByteEncoding:GetBytesImpl
>> (char*,int,byte*,int)
>> in <0x1b> I18N.Common.ByteEncoding:GetBytesImpl (char*,int,byte*,int)
>> in <0xdb> I18N.Common.MonoEncoding:GetBytes
>> (char[],int,int,byte[],int)
>> in <0x33> System.IO.StreamWriter:Decode ()
>> in <0x15> System.IO.StreamWriter:Flush ()
>> in <0xd> System.IO.UnexceptionalStreamWriter:Flush ()
>> in <0x2e> System.IO.StreamWriter:Write (string)
>> in <0x10> System.IO.UnexceptionalStreamWriter:Write (string)
>> in <0xe> System.IO.TextWriter:WriteLine (string)
>> in <0x2b> System.IO.SynchronizedWriter:WriteLine (string)
>> in <0xc2> AbstractMessage:Print (int,string,string)
>> in <0x94> WarningMessage:Print (int,string,string)
>> in <0x5d> AbstractMessage:Print (int,Mono.CSharp.Location,string)
>> in <0x1c> WarningMessage:Print (int,Mono.CSharp.Location,string)
>> in <0x4b> Mono.CSharp.Report:Warning
>> (int,int,Mono.CSharp.Location,string,string[])
>> in <0x1c8> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext)
>> in <0x122> Mono.CSharp.EmitContext:ResolveTopBlock
>> (Mono.CSharp.EmitContext,Mono.CSharp.ToplevelBlock,Mono.CSharp.Parameters,Mono.CSharp.IMethodData,bool&)
>> in <0x4b> Mono.CSharp.EmitContext:EmitTopBlock
>> (Mono.CSharp.IMethodData,Mono.CSharp.ToplevelBlock)
>> in <0x1ab> Mono.CSharp.MethodData:Emit
>> (Mono.CSharp.TypeContainer,Mono.CSharp.Attributable)
>> in <0x30> Mono.CSharp.Method:Emit ()
>> in <0x64d> Mono.CSharp.TypeContainer:EmitType ()
>> in <0x226> Mono.CSharp.RootContext:EmitCode ()
>> in <0xae4> Mono.CSharp.Driver:MainDriver (string[])
>> in <0x41> Mono.CSharp.Driver:Main (string[])
>> in <0xc75c38b3> (wrapper runtime-invoke)
>> System.Object:runtime_invoke_int_string[]
>> (object,intptr,intptr,intptr)
>>
>> Native stacktrace:
>>
>> 
>> /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono(mono_handle_native_sigsegv+0xc0) 
>> [0x8151d90]
>>         /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono
>> [0x8121910]
>>         [0xffffe440]
>> 
>> /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono(mono_compile_create_var+0x96) 
>> [0x811de06]
>>         /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono
>> [0x813bfff]
>>         /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono
>> [0x813cd43]
>> 
>> /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono(mono_magic_trampoline+0x1a) 
>> [0x8152fba]
>>         [0x403c4032]
>>         [0x40f8ed24]
>>         [0x40da7f84]
>>         [0x40da7ede]
>>         [0x40da7ea6]
>>         [0x40f8eb1f]
>>         [0x40f8ead1]
>>         [0x40f8eaa7]
>>         [0x40f8ea74]
>>         [0x40f8c5eb]
>>         [0x40f8c365]
>>         [0x40f8bf0e]
>>         [0x40f8bea5]
>>         [0x40f8b8fc]
>>         [0x40f313a9]
>>         [0x40f30d73]
>>         [0x40f295a4]
>>         [0x40f29114]
>>         [0x40f28d41]
>>         [0x40f2721e]
>>         [0x40f13e57]
>>         [0x40daa115]
>>         [0x40da912a]
>>         [0x40b0f9b4]
>> 
>> /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono(mono_runtime_exec_main+0x9c) 
>> [0x80d323c]
>> 
>> /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono(mono_runtime_run_main+0x16d) 
>> [0x80d626d]
>> 
>> /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono(mono_main+0xf66) 
>> [0x805d6c6]
>>         /lib/tls/libc.so.6(__libc_start_main+0xd0) [0x40119ed0]
>>         /usr/local/src/apache/mono/11312/mono-1.1.13.2/mono/mini/mono
>> [0x805c201]
>> make[8]: *** [../../class/lib/net_2_0_bootstrap/System.dll] Aborted
>> make[8]: Leaving directory
>> `/usr/local/src/apache/mono/11312/mono-1.1.13.2/mcs/class/System'
>> make[7]: *** [do-all] Error 2
>> make[7]: Leaving directory
>> `/usr/local/src/apache/mono/11312/mono-1.1.13.2/mcs/class/System'
>> make[6]: *** [all-recursive] Error 1
>> make[6]: Leaving directory
>> `/usr/local/src/apache/mono/11312/mono-1.1.13.2/mcs/class'
>> make[5]: *** [all-recursive] Error 1
>> make[5]: Leaving directory
>> `/usr/local/src/apache/mono/11312/mono-1.1.13.2/mcs'
>> make[4]: *** [profile-do--net_2_0_bootstrap--all] Error 2
>> make[4]: Leaving directory
>> `/usr/local/src/apache/mono/11312/mono-1.1.13.2/mcs'
>> make[3]: *** [profiles-do--all] Error 2
>> make[3]: Leaving directory
>> `/usr/local/src/apache/mono/11312/mono-1.1.13.2/mcs'
>> make[2]: *** [all-local] Error 2
>> make[2]: Leaving directory
>> `/usr/local/src/apache/mono/11312/mono-1.1.13.2/runtime'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory
>> `/usr/local/src/apache/mono/11312/mono-1.1.13.2'
>> make: *** [all] Error 2
>>
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>
> 




More information about the Mono-list mailing list