[LLVMdev] MC JIT fails on Linux [was: Trouble using the MCJIT: "Target does not support MC emission" error]

Ralf Karrenberg Chareos at gmx.de
Thu Sep 22 05:02:16 PDT 2011


Hi Xerxes, Hi everybody,

can anybody comment on the status of the MC JIT on Linux?
Is there somebody working on this already or does any schedule (e.g. for 
LLVM 3.0) exist?
I guess filing a bug report is not appropriate here since there is no 
implementation...

Best,
Ralf

On 8/31/11 5:23 PM, Xerxes RĂ„nby wrote:
> 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