<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body 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 169724<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<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>
    /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:<br>
    In file included from
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:<br>
    /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.<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>
    Generating asan_globals_test.cc.asan.o<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>
     I run into the error of not finding <vector><br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 12/08/2012 10:50 AM, Alexey Samsonov
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGSYnCMs=Xk=OUpOgLXRAT9gGKRpEXRs=BXNWeS9SUGxtDZ7WQ@mail.gmail.com"
      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
                    moz-do-not-send="true"
                    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 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>
                      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 class="im"><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 class="im"> 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 moz-do-not-send="true"
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 class="im"><br>
                      <br>
                      - Marc<br>
                      <br>
                      <br>
                      <div>On 12/07/2012 04:04 PM, Joerg Sonnenberger
                        wrote:<br>
                      </div>
                    </div>
                    <div>
                      <div class="h5">
                        <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 moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a>
<a moz-do-not-send="true" 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 class="im">
                      <div>-- <br>
                        Marc J. Driftmeyer<br>
                        Email :: <a moz-do-not-send="true"
                          href="mailto:mjd@reanimality.com"
                          target="_blank">mjd@reanimality.com</a><br>
                        Web :: <a moz-do-not-send="true"
                          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 moz-do-not-send="true"
                    href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
                  <a moz-do-not-send="true"
                    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 class="moz-signature">-- <br>
      Marc J. Driftmeyer<br>
      Email :: <a href="mailto:mjd@reanimality.com">mjd@reanimality.com</a><br>
      Web :: <a href="http://www.reanimality.com">http://www.reanimality.com</a><br>
      Cell :: (509) 435-5212
    </div>
  </body>
</html>