Just to report the answer to the problem if someone get the same problem with llvm-c bindings:<br><br>Before calling the LLVMCreateJITCompiler, you must do:<br>LLVMLinkInJIT();<br>LLVMLinkInInterpreter();<br>LLVMInitializeNativeTarget();<br>
<br>Otherwise it will return 1 and an empty error message.<br><br><div class="gmail_quote">On Thu, Nov 19, 2009 at 10:51 AM, Christian S. Perone <span dir="ltr"><<a href="mailto:christian.perone.listas@gmail.com">christian.perone.listas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello, I'm using the llvm-c bindings for C, but I'm getting some problems, the LLVMCreateExecutionEngine is returning 1 but the error message is an empty string (it's !=NULL).<br>
<br>The steps I'm doing is to create the module, then I call LLVMVerifyModule to verify and it works fine, later I call LLVMCreateModuleProviderForExistingModule and it returns !=NULL MP, so it's ok, but then when I call something like this: error_ret = LLVMCreateJITCompiler(&engine, provider, 0, &verror)<br>

It returns 1 in error_ret and an empty string in verror, does someone knows why or how can I get the error message ? Or when it returns an empty error message ?<br>I'm using the pre built 2.6 binaries from default ubuntu karmic installation.<br>

<br>Thank you,<br>- Christian<br><font color="#888888">-- <br>Christian S. Perone<br><a href="http://pyevolve.sourceforge.net/wordpress" target="_blank">http://pyevolve.sourceforge.net/wordpress</a><br>"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great big joke on me."<br>



</font></blockquote></div><br><br clear="all"><br>-- <br>Christian S. Perone<br><a href="http://pyevolve.sourceforge.net/wordpress">http://pyevolve.sourceforge.net/wordpress</a><br>"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great big joke on me."<br>