<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 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 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 href="http://www.netbsd.org/~joerg/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 class="im"><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">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>