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

Michael Wild themiwi at users.sourceforge.net
Mon May 23 14:02:56 UTC 2011


On 05/23/2011 12:25 AM, Sylvestre Ledru wrote:
> Hello
> 
> Are you sure it is working for you ?
> 
> It fails with the following:
> 
> $ echo "#include <fstream> 
>> void main(){
>>
>> }
>> " > plop.cpp
> $ clang -o plop plop.cpp
> In file included from plop.cpp:1:
> In file included from /usr/include/c++/4.5/fstream:39:
> In file included from /usr/include/c++/4.5/istream:39:
> In file included from /usr/include/c++/4.5/ios:38:
> /usr/include/c++/4.5/iosfwd:39:10: fatal error: 'bits/c++config.h' file
> not
>       found
> #include <bits/c++config.h>
>          ^
> 1 error generated.
> 
> 
> And the configure is:
> 	  ../llvm-2.9/configure CC=x86_64-linux-gnu-gcc CXX=x86_64-linux-gnu-g
> ++ CPP=x86_64-linux-gnu-cpp --host=x86_64-linux-gnu
> --build=x86_64-linux-gnu --prefix=/usr --disable-assertions
> --enable-shared --enable-optimized --with-optimize-option=' -g -O2'
> --enable-pic --enable-libffi
> --with-c-include-dirs=/usr/include/x86_64-linux-gnu:/usr/include
> --with-cxx-include-root=/usr/include/c++/4.5
> --with-cxx-include-arch=x86_64-linux-gnu --with-cxx-include-32bit-dir=32
> --with-cxx-include-64bit-dir=64
> --with-c-include-dirs=/usr/include/x86_64-linux-gnu:/usr/include
> 
> Thanks
> 

Find attached my debdiff which works for me (on Ubuntu 11.04/Natty, though).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debdiff.patch
Type: text/x-patch
Size: 6908 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20110523/b7dda53e/attachment.bin>


More information about the Pkg-llvm-team mailing list