<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - r216531 breaks libstdc++ include search path on Gentoo"
   href="http://llvm.org/bugs/show_bug.cgi?id=20772">20772</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>r216531 breaks libstdc++ include search path on Gentoo
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>octoploid@yandex.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>chandlerc@gmail.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>r216531 breaks libstdc++ include search path on Gentoo, e.g.:

markus@x4 ~ % clang++ -v -O2 bench.cpp
clang version 3.6.0 
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
Selected GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/usr/local/bin/clang-3.6" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj
-disable-free -disable-llvm-verifier -main-file-name bench.cpp
-mrelocation-model static -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-v -dwarf-column-info -resource-dir /usr/local/bin/../lib/clang/3.6.0
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/c++/4.9.2
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/x86_64-pc-linux-gnu/c++/4.9.2
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/x86_64-unknown-linux-gnu/c++/4.9.2
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/c++/4.9.2/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.6.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -fdeprecated-macro
-fdebug-compilation-dir /home/markus -ferror-limit 19 -fmessage-length 174
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o /tmp/bench-38d147.o -x c++ bench.cpp
clang -cc1 version 3.6.0 based upon LLVM 3.6.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/c++/4.9.2"
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/x86_64-pc-linux-gnu/c++/4.9.2"
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/x86_64-unknown-linux-gnu/c++/4.9.2"
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/c++/4.9.2/backward"
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/bin/../lib/clang/3.6.0/include
 /usr/include
End of search list.
bench.cpp:84:10: fatal error: 'cstddef' file not found
#include <cstddef> // some older implementations lack <cstddef>
         ^
1 error generated.

Before r216531:

markus@x4 ~ % /var/.snapshots/daily.0/localhost/usr/local/bin/clang++ -v -O2
bench.cpp
clang version 3.6.0 
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
Selected GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/var/.snapshots/daily.0/localhost/usr/local/bin/clang-3.6" -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name bench.cpp -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-momit-leaf-frame-pointer -v -dwarf-column-info -resource-dir
/var/.snapshots/daily.0/localhost/usr/local/bin/../lib/clang/3.6.0
-internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/x86_64-pc-linux-gnu
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/backward
-internal-isystem /usr/local/include -internal-isystem
/var/.snapshots/daily.0/localhost/usr/local/bin/../lib/clang/3.6.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdeprecated-macro -fdebug-compilation-dir /home/markus -ferror-limit 19
-fmessage-length 174 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -o /tmp/bench-407afc.o -x c++ bench.cpp
clang -cc1 version 3.6.0 based upon LLVM 3.6.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/x86_64-pc-linux-gnu
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/backward
 /usr/local/include
 /var/.snapshots/daily.0/localhost/usr/local/bin/../lib/clang/3.6.0/include
 /usr/include
End of search list.

"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld"
--eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o
a.out /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/crt1.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/crti.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/crtbegin.o
-L/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
-L/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64
-L/var/.snapshots/daily.0/localhost/usr/local/bin/../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../..
-L/var/.snapshots/daily.0/localhost/usr/local/bin/../lib -L/lib -L/usr/lib
/tmp/bench-407afc.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/crtend.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/crtn.o
markus@x4 ~ %</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>