Public bug reported:

This command fails saying that limits.h cannot be found:
echo '#include <limits.h>' | clang -v -xc -o /dev/null -

This is the full verbose output from it:
Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2)
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 - -mrelocation-model 
static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases 
-munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version 
2.23.2 -momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/3.2 
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem 
/usr/local/include -internal-isystem /usr/bin/../lib/clang/3.2/include 
-internal-isystem /usr/include/clang/3.2/include/ -internal-externc-isystem 
/usr/include/x86_64-linux-gnu -internal-externc-isystem 
/usr/include/x86_64-linux-gnu -internal-externc-isystem /usr/include 
-fdebug-compilation-dir /home/mike -ferror-limit 19 -fmessage-length 205 
-mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics 
-o /tmp/--n2pM6N.o -x c -
clang -cc1 version 3.2 based upon LLVM 3.2svn default target x86_64-pc-linux-gnu
ignoring nonexistent directory "/usr/bin/../lib/clang/3.2/include"
ignoring duplicate directory "/usr/include/x86_64-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/include/clang/3.2/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
In file included from <stdin>:1:
/usr/include/limits.h:124:16: fatal error: 'limits.h' file not found
# include_next <limits.h>
               ^

Now, my first thought was that my limits.h file had been deleted
somehow, but running "locate limits.h" shows that there is a limits.h in
/usr/include, which clang searches through according to the verbose
output.

This has only been a problem since upgrading to Ubuntu 13.10.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: clang 1:3.2-20
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
Uname: Linux 3.11.0-12-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.12.5-0ubuntu2
Architecture: amd64
Date: Sun Oct 20 12:21:43 2013
InstallationDate: Installed on 2013-04-02 (200 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: llvm-defaults
UpgradeStatus: Upgraded to saucy on 2013-10-17 (2 days ago)

** Affects: llvm-defaults (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug saucy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1242300

Title:
  Clang cannot locate standard header files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-defaults/+bug/1242300/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to