I am trying to compile the Hello example in directory lib/Transforms/Hello
, which is basically a Hello World of LLVM pass, but I get the following error when I try to compile it using make.
../../../Makefile.common:61: ../../../Makefile.config: No such file or directory
../../../Makefile.common:69: /Makefile.rules: No such file or directory
make: *** No rule to make target `/Makefile.rules'. Stop.
Any idea what is the problem and how to fix it?
If you built LLVM + Clang according to instructions, the Hello
sample should have already been built. Go to lib/Transforms/Hello
in the build directory (where you ran configure
and then make
). There should be a Debug+Asserts
(or whatever configuration you compiled) there. And you can also run make
from there again.
In general, you always make
from the build directory, not the source directory. The build directory has all the Makefiles properly set up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With