[llvm-dev] LLVM pass error

Nemanja Ivanovic via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 20 04:11:08 PST 2017

You aren't likely to get an answer without providing some details. At the
very least, you can provide the invocation string that fails (you can get
this by adding VERBOSE=1 to the make invocation).

Also, something doesn't really make sense in your description. You say that
your pass doesn't build (i.e. the fatal error) but yet you say that you get
the shared library built. Which is it?

On Fri, Jan 20, 2017 at 7:08 AM, Siddharth Shankar Swain via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> I am getting the following error while compiling my pass file with clang
> to emit bitcode
> Hello1.cpp:1:10: fatal error: 'llvm/Pass.h' file not found
> #include "llvm/Pass.h"
>          ^
> 1 error generated.
> I had included this .cpp file for implementing function pass in
> lib/Transform/Hello1 directory and also made approriate changes in
> cmakelists.txt file and again build from the root directrory. I am also
> getting as a result LLVMHello1.so in llvm/build/lib/ directory.
> Please guide
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170120/5b7e8f49/attachment.html>

More information about the llvm-dev mailing list