clang version 3.1 (trunk) Target: x86_64-pc-linux-gnu Thread model: posix "/usr/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name a.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1 -momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.1/include -internal-externc-isystem /usr/include -internal-externc-isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 97 -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/a-xdEu5u.o -x c a.c clang -cc1 version 3.1 based upon llvm 3.1svn default target x86_64-pc-linux-gnu ignoring nonexistent directory "/usr/bin/../lib/clang/3.1/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/include /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include End of search list. In file included from a.c:1: /usr/include/limits.h:125:16: fatal error: 'limits.h' file not found # include_next <limits.h> ^ 1 error generated. Adding '-I/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include-fixed' fixes this.
> ignoring nonexistent directory "/usr/bin/../lib/clang/3.1/include" With the pending 3.0 release, there may have been some mixup in versions and paths :) On 3.0_rc*, I have limits.h in /usr/lib64/clang/3.0/include, and clang finds it
(In reply to comment #1) > > ignoring nonexistent directory "/usr/bin/../lib/clang/3.1/include" > > With the pending 3.0 release, there may have been some mixup in versions and > paths :) > > On 3.0_rc*, I have limits.h in /usr/lib64/clang/3.0/include, and clang finds it Ah, then it's regular lib/lib64 mixup. If it installs it in lib64, it should look in lib64. Otherwise it looks up the wrong libdir.
Or, looking at it closer -- those headers could just be installed into /usr/lib.
Now that 3.0 is out and in CVS, I've tried a fresh -9999. Test program compiled fine, and limits.h is in 3.1/include, so I hope it should work for you too after update :) Now to check that "../lib" and all the $(get_libdir) tweaks in the ebuild
Just retested while working on #406163, it works fine. Feel free to reopen if you still have the problem!