<div dir="ltr">I use ubuntu, <div><br><div><div>$ uname -a</div><div>Linux novice 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux</div><div><br></div><div>and this is the output of 'clang -v -c'</div><div><br></div><div>$ clang -v -c test.c </div><div>clang version 3.6.0 (tags/RELEASE_360/final)</div><div>Target: x86_64-unknown-linux-gnu</div><div>Thread model: posix</div><div> "/home/novice/installed/llvm-3.6.0.src/Release+Asserts/bin/clang" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name t1.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -dwarf-column-info -coverage-file /home/novice/installed/llvm-3.6.0.src/Release+Asserts/bin/t1.c -resource-dir "/home/novice/installed/llvm-3.6.0.src/Release+Asserts/bin/\${CLANG_RESOURCE_DIR}" -isysroot "\${DEFAULT_SYSROOT}" -c-isystem /home/novice/.install/include -cxx-isystem /home/novice/.install/include -internal-isystem "\${DEFAULT_SYSROOT}/usr/local/include" -internal-isystem "/home/novice/installed/llvm-3.6.0.src/Release+Asserts/bin/\${CLANG_RESOURCE_DIR}/include" -internal-externc-isystem "\${C_INCLUDE_DIRS}" -fdebug-compilation-dir /home/novice/installed/llvm-3.6.0.src/Release+Asserts/bin -ferror-limit 19 -fmessage-length 205 -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o t1.o -x c /home/novice/installed/llvm-3.2.src/examples/test/t1.c</div><div>clang -cc1 version 3.6.0 based upon ${BACKEND_PACKAGE_STRING} default target x86_64-unknown-linux-gnu</div><div>ignoring nonexistent directory "/home/novice/.install/include"</div><div>ignoring nonexistent directory "/home/novice/.install/include"</div><div>ignoring nonexistent directory "${DEFAULT_SYSROOT}/usr/local/include"</div><div>ignoring nonexistent directory "/home/novice/installed/llvm-3.6.0.src/Release+Asserts/bin/${CLANG_RESOURCE_DIR}/include"</div><div>ignoring nonexistent directory "${C_INCLUDE_DIRS}"</div><div>#include "..." search starts here:</div><div>End of search list.</div><div>/home/novice/installed/llvm-3.2.src/examples/test/t1.c:2:10: fatal error: 'stdio.h' file not found</div><div>#include <stdio.h></div><div>         ^</div><div>1 error generated.</div><div><br></div><div><div style="color:rgb(0,0,0);font-family:arial,verdana,sans-serif;font-size:12px;line-height:30px">I put clang in <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal">llvm-3.6.0.src</span>/toos/...</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br>--------------------------------------------<br>Qiuping Yi<br>Institute Of Software<br>Chinese Academy of Sciences</div></div>
<br><div class="gmail_quote">On Sat, Jan 16, 2016 at 12:56 AM, Hans Wennborg <span dir="ltr"><<a href="mailto:hans@chromium.org" target="_blank">hans@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Fri, Jan 15, 2016 at 7:06 AM, Qiuping Yi via cfe-users<br>
<<a href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a>> wrote:<br>
> Hello All,<br>
><br>
> I am a beginner of clang. I installed clang 3.6 with llvm 3.6, but I found<br>
> my clang cannot work as expected.<br>
> For the next simple program test.c:<br>
><br>
> #include <stdio.h><br>
> int main() {return 0;}<br>
><br>
> $ clang -c test.c<br>
><br>
> I got the next information:<br>
><br>
> fatal error: 'stdio.h' file not found<br>
> #include <stdio.h><br>
>              ^<br>
> 1 error generated.<br>
><br>
> what's wrong? I found other standard headers are also cannot be found.<br>
> Any suggestion is OK. Thank you in advance.<br>
<br>
</span>What operating system are you using?<br>
<br>
What's the output of "clang -v -c test.c"?<br>
<br>
>From where did you install clang?<br></blockquote><div> </div></div><br></div></div></div></div></div>