[Mono-list] Problem with LLVM + AOT

mridoni m.ridoni at gmail.com
Mon Oct 15 13:23:19 UTC 2012


Hello, I downloaded the last 2.11.4 tarball and compiled it, enabling the
LLVM support. My LLVM install comes from the 2012-10-11 branch on github.

I installed LLVM in /opt/mono-llvm and added the bin and lib subdirs to PATH
and LD_LIBRARY_PATH (don't know if the latter is actually needed). Mono
2.1..4 is already in the path.

I wrote a small "hello world app" and compiled it with:

gmcs test.cs

Then I try to AOT it:

debian:~/test# mono --llvm --aot 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]
        [0xb777640c]
        /lib/i686/cmov/libc.so.6(abort+0x182) [0xb7603b82]
        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) [0xb75ecc76]
        mono() [0x80594c1]

If I run it without "--llvm" it works ait should:

debian:~/test# mono --aot 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
Compiled 2 out of 2 methods (100%)
Methods without GOT slots: 1 (50%)
Direct calls: 0 (100%)
JIT time: 0 ms, Generation time: 17 ms, Assembly+Link time: 7 ms.

Should I go back to some non-blleding-edge version or am I missing something
obvious? BTW: the assertion at line 2177 complains about a file pointer
being NULL, but at this point I know too little about Mno's internals. 

Thanks


Marco Ridoni



--
View this message in context: http://mono.1490590.n4.nabble.com/Problem-with-LLVM-AOT-tp4656966.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list