[Mono-dev] Cross compiled arm-linux

Jolting hunterlaux at gmail.com
Mon Aug 11 21:03:30 EDT 2008


In the do_mono_image_load() this is where the error happens.
	846		image->module_name = mono_metadata_string_heap (image, 
 	847				mono_metadata_decode_row_col (&image->tables [MONO_TABLE_MODULE],
 	848						0, MONO_MODULE_NAME));
 	849	
This seems strange that it gets all the way there and fails.

I'm using this toolchain
ftp://ftp.sunet.se/pub/Linux/distributions/eldk/4.1/arm-linux-x86/iso/arm-2007-01-21.iso


Jolting wrote:
> 
> The application prints out hello world and exits. The mscorlib.dll was
> taken from my x86 box. I've confirmed that the application and the
> mscorlib.dll works on my x86 machine.
> 
> Even if the exe program was working I've discovered that it also gives me
> the same error regardless of the file type.
> 
> touch a
> mono a
> 
> Would give me the same error. 
> 
> I'm going to get gdbserver running on there and see whats going on. If you
> have any suggestions let me know. 
> 
> 
> Rodrigo Kumpera wrote:
>> 
>> Sorry for the short answer.
>> 
>> You should check if the mscorlib you're using is valid. Using the one
>> from a
>> x86 setup should work just fine.
>> 
>> You might be hitting a bug as well, so if you don't mind, please attach
>> your
>> application and I'll test it on my setup.
>> 
>> On Sat, Aug 9, 2008 at 2:04 PM, Rodrigo Kumpera <kumpera at gmail.com>
>> wrote:
>> 
>>> Your mscorlib or monorunapp.exe seens to be corrupted.
>>>
>>>
>>>
>>> On Fri, Aug 8, 2008 at 8:35 PM, Jolting <hunterlaux at gmail.com> wrote:
>>>
>>>>
>>>> I cross compiled mono and when I ran it I got the following error.
>>>>
>>>> ** (../monorunapp.exe:582): CRITICAL **: mono_metadata_string_heap:
>>>> assertion `index < meta->heap_strings.size' failed
>>>> The file /opt/mono/lib/mscorlib.dll is an invalid CIL image
>>>>
>>>> Not sure whats going on, but I could use some help.
>>>> I was wondering if this could possibly be cause because I'm running out
>>>> of
>>>> memory.
>>>> How much memory would it take to run a basic hello world program?
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Cross-compiled-arm-linux-tp18900579p18900579.html
>>>> Sent from the Mono - Dev mailing list archive at Nabble.com.
>>>>
>>>> _______________________________________________
>>>> Mono-devel-list mailing list
>>>> Mono-devel-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>>>
>>>
>>>
>> 
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Cross-compiled-arm-linux-tp18900579p18936478.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list