[Mono-list] Mono llvm on Mac OSX 64-bit
ndh78
neil.hickey at gmail.com
Tue Sep 13 07:46:07 EDT 2011
I'm trying to build mono on a Mac and use the LLVM option in 64-bit. I've
managed to get everything compiling, though I'm having a problem actually
running mono with a compiled executable.
I'm trying to run a simple hello_world example as follows:
using System;
public class HelloWord
{
static public void Main ()
{
Console.WriteLine ("Hello Mono World");
}
}
Running this example causes an assertion failure
mono --llvm hello.exe
At System.OutOfMemoryException:.ctor (string), offset 0xc
Addr: 0x10a8acbe0
Callee: System.SystemException:.ctor (string)
* Assertion: should not be reached at tramp-amd64.c:170
Stacktrace:
at System.OutOfMemoryException..ctor (string) <0x0000b>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
0 mono 0x00000001099694c4
mono_handle_native_sigsegv + 276
1 libsystem_c.dylib 0x00007fff87241cfa _sigtramp + 26
2 mono 0x000000010a1974eb
_ZTSN4llvm14format_object1IdEE + 26331
3 mono 0x000000010a17ef06 abort + 22
4 mono 0x0000000109ad2a5a monoeg_g_logv +
234
5 mono 0x0000000109ad2d83
monoeg_assertion_message + 371
6 mono 0x00000001099d01ed
mono_arch_patch_callsite + 429
7 mono 0x000000010996c8b2
common_call_trampoline + 2018
8 ??? 0x000000010a817172 0x0 + 4471222642
9 ??? 0x000000010a8aca0c 0x0 + 4471835148
10 mono 0x00000001098eb851
mono_jit_runtime_invoke + 1921
11 mono 0x0000000109a57c3b
mono_runtime_invoke + 107
12 mono 0x00000001099fd4cc
create_exception_two_strings + 204
13 mono 0x00000001099d41f2
create_domain_objects + 98
14 mono 0x00000001099d5127
mono_runtime_init + 375
15 mono 0x00000001098eaffc mini_init + 3692
16 mono 0x00000001099440cb mono_main + 4987
17 mono 0x00000001098e5834 start + 52
Debug info from gdb:
/tmp/mono-gdb-commands.wydKW7:1: Error in sourced command file:
unable to debug self
This is with git llvm and mono branch mono-2-10, though the same thing
happens with both at head.
Any ideas what the problem might be?
--
View this message in context: http://mono.1490590.n4.nabble.com/Mono-llvm-on-Mac-OSX-64-bit-tp3809823p3809823.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list