<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><br><br><div class="gmail_quote">On Sun, Dec 9, 2012 at 11:10 PM, Marc J. Driftmeyer <span dir="ltr"><<a href="mailto:mjd@reanimality.com" target="_blank">mjd@reanimality.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    With the latest from Debian 4.7.2-13 for GCC.<br>
    <br>
    Checkout of llvm trunk, clang trunk, compiler-rt, test-suite, lldb,
    libcxx [neither lldb/libcxx impacted as they aren't presently ready
    for llvm/clang on Linux] at revision <a href="tel:169724" value="+49169724" target="_blank">169724</a><br>
    <br>
    Given: defaults to x86 amd64 but using a default build of all
    available targets in cmake's configuration.<br>
    <br>
    Results:<br>
    <br>
    [100%] [100%] Generating asan_benchmarks_test.cc.asan.o<br>
    Generating asan_test.cc.asan.o<div class="im"><br>
    In file included from
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc:15:<br>
    In file included from
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:<br></div>
    /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:10:
    fatal error: <br>
          'vector' file not found<br>
    #include <vector><br>
             ^<br>
    In file included from
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:31:<div class="im"><br>
    In file included from
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:<br></div>
    /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:10:
    fatal error: <br>
          'vector' file not found<br>
    #include <vector><br>
             ^<br>
    Linking CXX executable ../../../../bin/c-index-test<br>
    [100%] Built target c-index-test<br>
    [100%] 1 error generated.<div class="im"><br>
    make[2]: ***
    [projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc.asan.o]
    Error 1<br>
    make[1]: ***
    [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanBenchmark.dir/all]
    Error 2<br>
    make[1]: *** Waiting for unfinished jobs....<br></div>
    Generating asan_globals_test.cc.asan.o<div class="im"><br>
    1 error generated.<br>
    make[2]: ***
    [projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o] Error 1<br>
    make[1]: ***
    [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/all]
    Error 2<br>
    make: *** [all] Error 2<br>
    mdriftmeyer@horus:~/DeveloperProjects/LLVMProject/cmake-gcc-llvm$ <br>
    <br>
    <br>
    <br></div>
     I run into the error of not finding <vector></div></blockquote><div><br></div><div>What would happen if you:</div><div>1) configure cmake build directory</div><div>2) run "make clang" in it</div><div>
3) try to use fresh ./bin/clang to compile some random file which has "#include <vector>" or "#include <stdio.h>"?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div><div class="h5"><br>
    <br>
    <br>
    <div>On 12/08/2012 10:50 AM, Alexey Samsonov
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div style="font-family:arial,helvetica,sans-serif;font-size:10pt">If this helps: compilation of asan_globals_test.cc and
        asan_test.cc differ in the sense that they are
        <div>compiled with just-built Clang. Don't know if it makes any
          difference for header lookup.</div>
        <div>Can you check if fresh Clang can build regular .cc file
          which includes stdio.h?<br>
          <div>
            <div><br>
              <br>
              <div class="gmail_quote">On Fri, Dec 7, 2012 at 8:27 PM,
                Marc J. Driftmeyer <span dir="ltr"><<a href="mailto:mjd@reanimality.com" target="_blank">mjd@reanimality.com</a>></span>
                wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div bgcolor="#FFFFFF" text="#000000"> Unfortunately
                    that just produced more errors:<br>
                    <br>
                    Generating asan_globals_test.cc.asan.o
                    <div><br>
                      In file included from
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc:15:<br>
                      In file included from
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:<br>
                      In file included from
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:<br>
                      In file included from
                      /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/vector:60:<br>
                    </div>
                    In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/bits/stl_algobase.h:60:<br>
                    In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/bits/c++config.h:414:<br>
                    /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/bits/os_defines.h:40:10:

                    fatal error: <br>
                          'features.h' file not found<br>
                    #include <features.h>
                    <div><br>
                               ^<br>
                      /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:13:10:

                      fatal error: <br>
                            'stdio.h' file not found<br>
                      #include <stdio.h><br>
                               ^<br>
                    </div>
                    <div> 1 error generated.<br>
                      make[2]: ***
                      [projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc.asan.o]
                      Error 1<br>
                      make[1]: ***
                      [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanBenchmark.dir/all]
                      Error 2<br>
                      make[1]: *** Waiting for unfinished jobs....<br>
                      1 error generated.<br>
                      make[2]: ***
                      [projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o]
                      Error 1<br>
                      make[1]: ***
                      [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/all]
                      Error 2<br>
                      make: *** [all] Error 2<br>
mdriftmeyer@horus:~/DeveloperProjects/LLVMProject/cmake-gcc-llvm$<br>
                      <br>
                    </div>
                    This is how Debian experimental currently has their
                    stdc++ headers:<br>
                    <br>
                    <a href="http://packages.debian.org/experimental/amd64/libstdc++6-4.7-dev/filelist" target="_blank">http://packages.debian.org/experimental/amd64/libstdc++6-4.7-dev/filelist</a><br>
                    <br>
                    I imagine the maintainer at Debian will pick this up
                    with your patch and test to get this resolved.
                    <div><br>
                      <br>
                      - Marc<br>
                      <br>
                      <br>
                      <div>On 12/07/2012 04:04 PM, Joerg Sonnenberger
                        wrote:<br>
                      </div>
                    </div>
                    <div>
                      <div>
                        <blockquote type="cite">
                          <pre>On Fri, Dec 07, 2012 at 03:29:25PM -0800, Marc J. Driftmeyer wrote:
</pre>
                          <blockquote type="cite">
                            <pre>For a couple weeks on trunk since Debian made some pathway changes
with GCC I can't compile the Unit Tests for LLVM because the pathway
to bits/c++config.h cannot be found.
</pre>
                          </blockquote>
                          <pre><a href="http://www.netbsd.org/%7Ejoerg/ToolChains.cpp.diff" target="_blank">http://www.netbsd.org/~joerg/ToolChains.cpp.diff</a> as workaround.

Joerg
_______________________________________________
cfe-dev mailing list
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a>
</pre>
                        </blockquote>
                        <br>
                      </div>
                    </div>
                    <div>
                      <div>-- <br>
                        Marc J. Driftmeyer<br>
                        Email :: <a href="mailto:mjd@reanimality.com" target="_blank">mjd@reanimality.com</a><br>
                        Web :: <a href="http://www.reanimality.com" target="_blank">http://www.reanimality.com</a><br>
                        Cell :: (509) 435-5212 </div>
                    </div>
                  </div>
                  <br>
                  _______________________________________________<br>
                  cfe-dev mailing list<br>
                  <a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
                  <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
                  <br>
                </blockquote>
              </div>
              <br>
              <br clear="all">
              <div><br>
              </div>
              -- <br>
              <div>Alexey Samsonov, MSK</div>
              <br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <div>-- <br>
      Marc J. Driftmeyer<br>
      Email :: <a href="mailto:mjd@reanimality.com" target="_blank">mjd@reanimality.com</a><br>
      Web :: <a href="http://www.reanimality.com" target="_blank">http://www.reanimality.com</a><br>
      Cell :: (509) 435-5212
    </div>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div><br>
</div>