[llvm-dev] How to generate .bc file using configure && make on Mac OS X?

Jakub (Kuba) Kuderski via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 28 11:30:25 PST 2019

It did work for me with llvm-5.0. I don't have time run it on newer

wget https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz
tar xvf bash-5.0.tar.gz
cd bash-5.0
mkdir build; cd build
export LLVM_COMPILER_PATH=my_llvm_dir/bin
export CC=gclang
export CXX=gclang++
make -j32
for i in $(find . -executable -and -type f) ; do echo $i ; extract-bc $i ;
lli bash.bc -c "echo 'test''"

On Mon, Jan 28, 2019 at 1:44 PM Peng Yu <pengyu.ut at gmail.com> wrote:

> Could you try the bash source code to see if you see the same errors?
> It should just take a few minutes to configure/compile. Thanks.
> https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz
> > 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.
> --
> Regards,
> Peng

Jakub Kuderski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190128/30e14731/attachment.html>

More information about the llvm-dev mailing list