[LLVMbugs] [Bug 19297] New: New clang 3.4 build can't find includes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 31 18:29:33 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19297

            Bug ID: 19297
           Summary: New clang 3.4 build can't find includes
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: akanet at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I'm running Clang from inside a Docker instance running Ubuntu 12.04. Here's a
tiny test case that shows the problem:

root at eacf7e43c75a:~# cat test.c
# include_next <limits.h>

In file included from test.c:1:
/usr/include/limits.h:125:16: fatal error: 'limits.h' file not found
# include_next <limits.h>
               ^
1 warning and 1 error generated.

root at eacf7e43c75a:~# clang -v
Ubuntu clang version 3.4.1-1~exp1 (branches/release_34) (based on LLVM 3.4.1)
Target: x86_64-pc-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.1
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8

However, I have a docker instance I built a couple months ago that's almost
entirely the same, except for what I think is a version bump in clang-3.4:

(the following snippet is from the old image, which handles the test case fine)

root at 7c57e7415f1d:~# clang -v
Ubuntu clang version 3.4-1~exp1 (branches/release_34) (based on LLVM 3.4)
Target: x86_64-pc-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.1
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8

Did something change in how clang looks for include files?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140401/2502d06f/attachment.html>


More information about the llvm-bugs mailing list