Bug#643959: clang cannot find standard include files

Urs Janssen urs at tin.org
Thu Oct 13 10:43:26 UTC 2011


Package: clang
Version: 2.9-15
Followup-For: Bug #643959

Still doesn't find all std. headers on i386 (Pentium 4) system:

chao% cat x.c 
#include <locale.h>

chao% clang -v -c x.c     
Debian clang version 2.9-15 (tags/RELEASE_29/final) (based on LLVM 2.9)
Target: i386-pc-linux-gnu
Thread model: posix
 "/usr/bin/clang" -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all
-disable-free -disable-llvm-verifier -main-file-name x.c -mrelocation-model
static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu
-pentium4 -target-linker-version 2.21.90.20111004 -momit-leaf-frame-pointer
--v -resource-dir /usr/bin/../lib/clang/2.9 -ferror-limit 19
---fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option
----fcolor-diagnostics -o x.o -x c x.c
clang -cc1 version 2.9 based upon llvm 2.9 hosted on i386-pc-linux-gnu
ignoring nonexistent directory "/usr/include/i486-linux-gnu/"
ignoring nonexistent directory "/usr/bin/../lib/clang/2.9/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.6/include
 /usr/lib/gcc/i486-linux-gnu/4.6/include-fixed
 /usr/include
End of search list.
In file included from x.c:1:
In file included from /usr/include/locale.h:26:
/usr/include/features.h:323:10: fatal error: 'bits/predefs.h' file not found
#include <bits/predefs.h>
         ^
1 error generated.


bits/predefs.his here:

chao% ls -ld /usr/include/i386-linux-gnu/bits/predefs.h 
-rw-r--r-- 1 root root 1153 Sep 14 07:38 /usr/include/i386-linux-gnu/bits/predefs.h

-- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages clang depends on:
ii  libc6               2.13-21   
ii  libffi5             3.0.10-3  
ii  libgcc1             1:4.6.1-15
ii  libllvm2.9          2.9+dfsg-3
ii  libstdc++6          4.6.1-15  
ii  libstdc++6-4.6-dev  4.6.1-15  

Versions of packages clang recommends:
ii  llvm-2.9-dev  2.9+dfsg-3
ii  python        2.7.2-9   

clang suggests no packages.

-- no debconf information





More information about the Pkg-llvm-team mailing list