<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Clang 4.0.0 searches for system headers before headers in the source tree"
   href="https://bugs.llvm.org/show_bug.cgi?id=34112">34112</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang 4.0.0 searches for system headers before headers in the source tree
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>doctorwhoguy@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Clang apparently searches for needed headers installed on the system before
headers that are included in the source tree of software being compiled, at
least when compiling bundled libraries. I have encountered this twice so far,
with the games Smokin Guns and eduke32. For example, Smokin Guns bundles the
source for the speex library, and when compiling the bundled speex library, it
finds and uses /usr/local/include/speex/speex_bits.h instead of
SmokinGuns-1.1/code/libspeex/include/speex/speex_bits.h Obviously if the
bundled and system libraries are the same, it compiles fine, but if the bundled
and system versions don't match, this results in a compilation error. The
correct behavior would surely be for Clang to look in the source tree first for
needed headers.</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>