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

Marc Glisse marc.glisse at normalesup.org
Sun Aug 29 20:12:30 UTC 2010


Package: clang
Version: 2.7-3
Severity: normal

clang++ uses an auto-detection mechanism to append all (well, most)
directories in /usr/include/c++ to its include search path. This
technique is broken:
http://llvm.org/bugs/show_bug.cgi?id=6907

Besides, clang has trouble with versions of those headers that are
either too old or too recent.

On the other hand, it is possible to specify to clang++ where the
headers are (at configuration time).

I believe it would be best to make clang depend on a specific
libstdc++6-4.X-dev (I think 4.2 is the recommended one, so maybe 4.3 to
have one that is still in testing) and configure it to use only these
headers.

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

Kernel: Linux 2.6.32-5-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.11.2-2   Embedded GNU C Library: Shared lib
ii  libffi5                       3.0.9-2    Foreign Function Interface library
ii  libgcc1                       1:4.4.4-8  GCC support library
ii  libstdc++6                    4.4.4-8    The GNU Standard C++ Library v3

Versions of packages clang recommends:
pn  llvm-2.7-dev                  <none>     (no description available)
ii  python                        2.6.5-13   interactive high-level object-orie

clang suggests no packages.

-- no debconf information





More information about the Pkg-llvm-team mailing list