<div dir="ltr">It did work for me with llvm-5.0. I don't have time run it on newer versions.<br><br><font face="monospace, monospace">```<br><span style="color:rgb(36,41,46);font-size:14px">wget </span><a rel="nofollow" href="https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz" style="box-sizing:border-box;color:rgb(3,102,214);text-decoration-line:none;font-size:14px">https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz</a><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">tar xvf bash-5.0.tar.gz</span><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">cd bash-5.0</span><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">mkdir build; cd build</span><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">export LLVM_COMPILER_PATH=my_llvm_dir/bin</span><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">export CC=gclang</span><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">export CXX=gclang++</span><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">../configure</span><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">make -j32</span><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">for i in $(find . -executable -and -type f) ; do echo $i ; extract-bc $i ; done</span><br style="box-sizing:border-box;color:rgb(36,41,46);font-size:14px"><span style="color:rgb(36,41,46);font-size:14px">lli bash.bc -c "echo 'test''"<br></span>```</font></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 28, 2019 at 1:44 PM Peng Yu <<a href="mailto:pengyu.ut@gmail.com">pengyu.ut@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Could you try the bash source code to see if you see the same errors?<br>
It should just take a few minutes to configure/compile. Thanks.<br>
<br>
<a href="https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz" rel="noreferrer" target="_blank">https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz</a><br>
<br>
> I did a sanity check and run some of the bitcode I complied with gllvm and it seems to work fine under lli. The only issues is to make sure you load all the (external) libraries the bitcode needs. I highly suggest you run a debug version of lli under a debugger and see what exactly happens.<br>
<br>
-- <br>
Regards,<br>
Peng<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div>Jakub Kuderski</div></div>