Bug#594820: clang: specify libstdc++ version of headers to use

Marc Glisse marc.glisse at normalesup.org
Mon Oct 10 22:07:24 UTC 2011


Package: clang
Version: 2.9-14
Followup-For: Bug #594820

$ cat f.cc
#include <fenv.h>
$ clang++ -P -E f.cc
namespace std
{
  typedef long unsigned int size_t;
  typedef long int ptrdiff_t;
}
$

I am again missing the true content of fenv.h (compare to the output of
g++). And indeed, clang++ searches both the 4.6 and 4.5 directories for
libstdc++ headers:

ignoring nonexistent directory "/usr/include/c++/4.6//x86_64-linux-gnu/64"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.6/include/"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed/"
ignoring nonexistent directory "/usr/bin/../lib/clang/2.9/include"
ignoring duplicate directory "/usr/include/c++/4.6"
ignoring duplicate directory "/usr/include/c++/4.6//backward"
ignoring duplicate directory "/usr/include/x86_64-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/4.6
 /usr/include/c++/4.6//backward
 /usr/include/c++/4.6//x86_64-linux-gnu
 /usr/include/c++/4.5
 /usr/include/c++/4.5/x86_64-linux-gnu
 /usr/include/c++/4.5/backward
 /usr/local/include
 /usr/include/x86_64-linux-gnu
 /usr/lib/gcc/x86_64-linux-gnu/4.5/include
 /usr/lib/gcc/x86_64-linux-gnu/4.5/include-fixed
 /usr/include



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

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

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

clang suggests no packages.

-- no debconf information





More information about the Pkg-llvm-team mailing list