[LLVMdev] lli crashes when running cpp programs

Dongpeng Xu dongpengxu at psu.edu
Mon Mar 24 07:54:37 PDT 2014


Thanks for your response, Tim!
I have posted the patch to the commits mailing list. I also tried to use mcjit
however the error came out as:
LLVM ERROR: Program used external function '__dso_handle' which could not be
resolved!
Am I missing some libraries?
Thanks,Dongpeng

On Fri, Mar 21, 2014 03:19 PM, Tim Northover <t.p.northover at gmail.com> wrote:
>
Hi Dongpeng,
>
>You probably want to post patches to the llvm-commits list rather than
>llvmdev. That said:
>
>> I need to run c++ prgrams using lli. However, I find lli cannot handle the
>> alias instruction correctly. Following is an example:
>
>The backtrace indicates you're using the old JIT, which we're trying
>our hardest to get rid of completely. Its replacement is called MCJIT
>and seems to support your code already (at least on my amd64 Linux):
>
>$ lli -use-mcjit example.bc
>constructor
>destructor
>
>Longer term, you almost certainly want to look into that. If MCJIT is
>missing features you need, we'd like to know about it so that they can
>be implemented.
>
>Cheers.
>
>Tim.
>
>
>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140324/3404371d/attachment.html>


More information about the llvm-dev mailing list