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
Hellosample should have already been built. Go tolib/Transforms/Helloin the build directory (where you ranconfigureand thenmake). There should be aDebug+Asserts(or whatever configuration you compiled) there. And you can also runmakefrom there again.In general, you always
makefrom the build directory, not the source directory. The build directory has all the Makefiles properly set up.