[Mono-list] Problem with LLVM + AOT

mridoni m.ridoni at gmail.com
Tue Oct 16 07:42:13 UTC 2012


2012/10/15 Rodrigo Kumpera [via Mono] <
ml-node+s1490590n4656970h51 at n4.nabble.com>

> Hey,
>
> Can you try it with --aot=asmwriter?
>

Same result:

 debian:~/test# mono --llvm --aot=asmwriter test.exe
Mono Ahead of Time compiler - compiling assembly /root/test/test.exe
* Assertion at image-writer.c:2177, condition `fp' not met

Stacktrace:


Native stacktrace:

        mono() [0x80e55f9]
        [0xb775240c]
        /lib/i686/cmov/libc.so.6(abort+0x182) [0xb75dfb82]
        mono() [0x824ce85]
        mono() [0x824ced4]
        mono() [0x80f6f2e]
        mono() [0x80cf44a]
        mono(mono_main+0x1523) [0x80bde93]
        mono() [0x8059698]
        /lib/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb75c8c76]
        mono() [0x80594c1]

Debug info from gdb:


With --asmwriter, but without --llvm, it works ok:

debian:~/test# mono --aot=asmwriter test.exe
Mono Ahead of Time compiler - compiling assembly /root/test/test.exe
Code: 68 Info: 5 Ex Info: 10 Unwind Info: 17 Class Info: 34 PLT: 2 GOT
Info: 12 GOT: 24 Offsets: 48
Executing the native assembler: as   -o /tmp/mono_aot_WAyvdd.o
/tmp/mono_aot_WAyvdd
Executing the native linker: ld   -shared -o /root/test/test.exe.so.tmp
/tmp/mono_aot_WAyvdd.o
Compiled 2 out of 2 methods (100%)
Methods without GOT slots: 1 (50%)
Direct calls: 0 (100%)
JIT time: 0 ms, Generation time: 13 ms, Assembly+Link time: 63 ms.

This is the test program (just a "hello world", actually).

using System;

public class test {
        public static void Main(string[] args)
        {
                Console.WriteLine("Hello world!");
        }
}

Thanks


m.




--
View this message in context: http://mono.1490590.n4.nabble.com/Problem-with-LLVM-AOT-tp4656966p4656976.html
Sent from the Mono - General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20121016/9e0fd9a2/attachment-0001.html>


More information about the Mono-list mailing list