[LLVMdev] Trouble using the MCJIT: "Target does not support MC emission" error

Xerxes RĂ„nby xerxes at zafena.se
Wed Aug 31 08:23:30 PDT 2011


ons 2011-08-31 klockan 10:51 +0200 skrev Ralf Karrenberg:
> Hi Matt, hi Bruno,
> 
> I am still struggling to use AVX via MCJIT on TOT... did you succeed yet?
> 
> I seem to be unable to even get lli to run some code with the
> "use-mcjit" flag.
> I attached a test case that works fine for "lli y.bc" but exits with an
> error for "lli -use-mcjit y.bc":
> "LLVM ERROR: Unknown object format"

When I test the MCJIT under Linux I notice that lli are indeed trying to
load a buffer that contains an ELF object but fails to verify the format
using RuntimeDyldMachO::isKnownFormat this of course fails since Linux
uses ELF instead of Mach-o and this are causing lli to report (unknown
object format).

We need to implement
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
for the MCJIT to work on ELF systems.

Testcase:
./llvm-as < llvm/test/ExecutionEngine/hello.ll | ./lli -use-mcjit

> 
> Any more ideas?
> 
> Best,
> Ralf

Cheers
Xerxes




More information about the llvm-dev mailing list