I try to compile POCL, and after 5 minutes I write:

pocl_llvm_api.cc:32:41 fatal error: clang/CodeGen/CodeGenAction.h: No such file or directory

In the file pocl_llvm_api.cc, in line 32 it is written:

#include "clang / CodeGen / CodeGenAction.h:"

The clang library itself is located in /usr/lib/llvm-3.5/include, but I don’t want to manually specify in each file, there are a lot of them. I tried to copy the clang folder next to the Makefile, but other problems came. Is there any way to indicate the location of the library?

  • one
    Action.h: “ is it a typo or is it written like that?” - PinkTux
  • @PinkTux not written like that - Timeon
  • according to the documentation , configuration is done by running the cmake program. once the configuration failed, I recommend to repeat it. if it doesn't help, you probably need to explicitly specify any of the cmake options listed there. // and the make program is your question, as far as I understand, has nothing to do with it at all . - aleksandr barakin
  • The @alexanderbarakin configuration was not made with cmake, but with the ./configure script, which did not reveal any problems. Just by direct compilation, let's say with the g ++ name.cpp command, you can add -llib and specify the location of the library, and you want to know how to specify the location for the make program or the ./configure script - Timeon
  • Use the hint ./configure --help there the driver specifies the option to connect different libraries either directly or through the LIBS - Yaroslav option

0