SRI-CSL/whole-program-llvm

bzip2 make all fail

Closed this issue · 7 comments

Line 37 of Makefile in bzip2, clang should be gclang I think. It fails otherwise.

There is a patch no?

Looks like I open the issue to wllvm instead of gllvm, my bad :D
The patch looks like to replace CC. This is for the other Makefile:
src/github.com/SRI-CSL/gllvm/examples/bzip2/Makefile

Ok I will take a look tomorrow.

No that just the linking step on the produced bitcode. It can be clang or clang++ with no issues.

Yes but if clang is not on the $PATH, it will not find clang. That was the case for me. I am not really familiar with the project but we set environment variables like LLVM_COMPILER or LLVM_COMPILER_PATH to tell gllvm/wllvm where is the compiler and I believe gllvm/wllvm uses these env variables to find the right compiler. So I changed clang to gllvm and it fixed compilation error.

Yes I suppose that’s true. You’ll excuse me if I don’t let perfect be the enemy of good.

Fixed by this over at gllvm