Hello,<br><br>Following the tutorial "Kaleidoscope: Adding JIT
and Optimizer Support", I found a Segmentation fault when I try to
execute it. I am new in the neighbourhood, so I don't know what is
wrong. Could you help me with that? <br>
<br>I am working with the last version of LLVM (2.5). The code in chapter 2 and 3 works good, but the code in the
chapter 4 did not work.<br><br>Below are the detail of what I did.<br><br>Regards,<br>
<br>Juan Carlos<br><br clear="all">*********************************<br><div><a href="http://llvm.org/docs/tutorial/LangImpl4.html#jit" target="_blank">http://llvm.org/docs/tutorial/LangImpl4.html#jit</a><br>
<br>*********************************<br>
./toy<br>ready> 4+5;<br>Segmentation fault<br><br>*********************************<br>Details using gdb:<br>*********************************<br>[New Thread 0xb7ca96c0 (LWP 9948)]<br><br>Program received signal SIGSEGV, Segmentation fault.<br>
[Switching to Thread 0xb7ca96c0 (LWP 9948)]<br>0x0804e914 in main ()<br> at /usr/local/include/llvm/ExecutionEngine/ExecutionEngine.h:142<br>142 const TargetData *getTargetData() const { return TD; }<br></div><br clear="all">
<br>-- <br>Juan Carlos <br>