<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Alas Resolution and it's all my fault.<br>
    <br>
    I made the mistake of updating eglibc from 2.13-37 in Debian to the
    newly released 2.16 available in experimental.<br>
    <br>
    Solution: I downgraded gcc-4.7.2-13 to gcc-4.7.2-4 across the board
    and downgraded libc6 from 2.16 to 2.13-37.<br>
    <br>
    Clean start of trunk against gcc-4.7.2-4 and presto! <br>
    <br>
    100% clean build.<br>
    <br>
    Lesson learned with Debian once again about dealing with libc6 and
    gcc outside of Unstable/Sid branch.<br>
    <br>
    - My apologies for all the frustration,<br>
    <br>
    - Marc<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 12/10/2012 12:33 AM, Alexey Samsonov
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGSYnCPu-w=uS+_mU-VOqEW-yMb7dyysHncsGa=K8uBUh=dYOQ@mail.gmail.com"
      type="cite">
      <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 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 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 moz-do-not-send="true" 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 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><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 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><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 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>
                                    <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"
                                  target="_blank">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>-- <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>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div>Alexey Samsonov, MSK</div>
        <br>
      </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>