[cfe-dev] clang tools cannot find file

Manuel Klimek klimek at google.com
Thu Apr 30 01:53:46 PDT 2015


Which version are you using? Did you try current trunk? We definitely had a
bug there for a while...

On Thu, Apr 30, 2015 at 6:30 AM <jiazhouyang09 at sina.com> wrote:

> Hi Everyone,
>
>
> I am using clang by libtooling, and meet something I can't figure out.
>
> As for the given example clang-check, when running on all files in a source tree, clang-check frequently produces a fatal error - cannot open file...
>
> But when I run those files one by one, clang-check perfectly works. By the way, there is a .json file in the top level of source tree.
>
>
> I also find that changing files order can influence the behavior of clang-check:
>
>
> *************************************************************************
>
> $ clang-check /home/jiazhouyang/httpd-2.4.10/server/mpm/event/event.c /home/jiazhouyang/httpd-2.4.10/os/unix/unixd.c
> warning: argument unused during compilation: '-fsyntax-only'
>
>
> *************************************************************************
>
> $ clang-check /home/jiazhouyang/httpd-2.4.10/os/unix/unixd.c
> /home/jiazhouyang/httpd-2.4.10/server/mpm/event/event.c
> In file included from event.c:79:
> /home/jiazhouyang/httpd-2.4.10/include/ap_config.h:136:10: fatal error:
> cannot open file './os.h': No such file or directory #include "os.h" ^ 1
> error generated. Error while processing
> /home/jiazhouyang/httpd-2.4.10/server/mpm/event/event.c. warning: argument
> unused during compilation: '-fsyntax-only' In file included from
> event.c:79: /home/jiazhouyang/httpd-2.4.10/include/ap_config.h:136:10:
> fatal error: cannot open file './os.h': No such file or directory #include
> "os.h" ^ 1 error generated. Error while processing
> /home/jiazhouyang/httpd-2.4.10/server/mpm/event/event.c.
>
> *************************************************************************
>
> Any ideas what I am doing wrong?
>
> -regards,
> Zhouyang
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150430/260c5a20/attachment.html>


More information about the cfe-dev mailing list