Bug#671913: clang: cannot find standard header files

Romain Bossart romain.bossart at free.fr
Sun May 20 14:29:04 UTC 2012


Package: clang
Version: 3.1~+rc1-1
Followup-For: Bug #671913

Cher Maintainer,

On i386 with g++-4.7, I need to add -I/usr/include/i386-linux-gnu/ to compile
any code. Could you please fix this. This problem does not happen on amd64.

Without that extra include, I get the following error:
clang++ -o t1 t1.cpp
In file included from t1.cpp:1:
In file included from /usr/bin/../lib/gcc/i486-linux-
gnu/4.7/../../../../include/c++/4.7/iostream:38:
In file included from /usr/bin/../lib/gcc/i486-linux-
gnu/4.7/../../../../include/c++/4.7/i486-linux-gnu/bits/c++config.h:414:
In file included from /usr/bin/../lib/gcc/i486-linux-
gnu/4.7/../../../../include/c++/4.7/i486-linux-gnu/bits/os_defines.h:40:
In file included from /usr/include/features.h:388:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
# include <gnu/stubs-32.h>
          ^
1 error generated.

Cheers,
Romain



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

Kernel: Linux 3.2.1 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages clang depends on:
ii  libc6                2.13-32
ii  libclang-common-dev  3.1~+rc1-1
ii  libffi5              3.0.10-3
ii  libgcc1              1:4.7.0-8
ii  libllvm3.1           3.1~+rc1-3
ii  libstdc++6           4.7.0-8
ii  libstdc++6-4.6-dev   4.6.3-5

Versions of packages clang recommends:
ii  llvm-3.1-dev  3.1~+rc1-3
ii  python        2.7.2-10

clang suggests no packages.

-- no debconf information





More information about the Pkg-llvm-team mailing list