[LLVMdev] lli -force-interpreter complains about external function

Nick Lewycky nicholas at mxc.ca
Mon Nov 16 23:52:14 PST 2009


Timo Juhani Lindfors wrote:
> Nick Lewycky<nicholas at mxc.ca>  writes:
>> The interpreter uses libffi to make external function calls. However, it
>> needs to be detected at LLVM's compile time. If you're using the
>> released packages, we disabled that because we were worried about users
>> who don't have libffi installed.
>
> This seems to be quite a common problem (I too hit it once, thought it
> was a bug and reported it at
> http://llvm.org/bugs/show_bug.cgi?id=5466) how about making lli inform
> the user that LLVM was built without FFI support?

Thanks for the reminder. I recall looking at the patch but I didn't 
apply it at the time because I couldn't figure out why the code above it 
used errs() in one case and llvm_report_error in another.

Nick



More information about the llvm-dev mailing list