Bug#707718: clang-3.2: clang++ standard header mis-configuration (stddef.h)

Julian Andres Klode jak at debian.org
Sat May 11 14:19:51 UTC 2013


On Fri, May 10, 2013 at 06:08:22PM +0200, Christophe Prud'homme wrote:
> Package: clang-3.2
> Version: 1:3.2repack-2
> Severity: grave
> Justification: renders package unusable
> 
> Dear Maintainer,
> 

> compiling c++ code
> 
> #include <cstddef>
> int main()
> {}
> 
> fails to compile with clang++.
> 
>  clang++ -o t toto.cpp
> In file included from toto.cpp:1:
> /usr/bin/../lib/gcc/x86_64-linux-
> gnu/4.8/../../../../include/c++/4.8/cstddef:41:10: fatal error: 'stddef.h' file
> not found
> #include <stddef.h>
>          ^
> 1 error generated.
> 
> stddef.h is in /usr/lib/llvm-3.2/lib/clang/3.2/include/
> 
> compiling using the following command works
>  clang++ -I /usr/lib/llvm-3.2/lib/clang/3.2/include/ -o t toto.cpp
> 
>    * What outcome did you expect instead?
> 
> the user should not have to add /usr/lib/llvm-3.2/lib/clang/3.2/include/ in the
> header directories, no ?
> 

This bug scared me a bit first when upgrading, but I decided to upgrade
anyway, and I can now say that I cannot reproduce this bug.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.



More information about the Pkg-llvm-team mailing list