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

2011-10-11 Thread Sylvestre Ledru
Le mardi 11 octobre 2011 à 00:07 +0200, Marc Glisse a écrit : > Package: clang > Version: 2.9-14 > Followup-For: Bug #594820 > > $ cat f.cc > #include > $ clang++ -P -E f.cc > namespace std > { > typedef long unsigned int size_t; > typedef long int ptrdiff_t; > } > $ After a look on this, I t

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

2011-10-10 Thread Marc Glisse
On Tue, 11 Oct 2011, Sylvestre Ledru wrote: Hello Le mardi 11 octobre 2011 à 00:07 +0200, Marc Glisse a écrit : Package: clang [...] ii libstdc++6 4.6.1-4 ii libstdc++6-4.6-dev 4.6.1-4 Looks like you forced some installations. No. I had the bug in testing. Before reporting the

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

2011-10-10 Thread Sylvestre Ledru
Hello Le mardi 11 octobre 2011 à 00:07 +0200, Marc Glisse a écrit : > Package: clang [...] > ii libstdc++6 4.6.1-4 > ii libstdc++6-4.6-dev 4.6.1-4 Looks like you forced some installations. I am now requiring a minimal version of libstdc++ 4.6.1-8 Upgrading to this version should

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

2011-10-10 Thread Marc Glisse
Package: clang Version: 2.9-14 Followup-For: Bug #594820 $ cat f.cc #include $ 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

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

2011-06-05 Thread Michael Wild
Renamed debian/patches/{,10-}handleWheezySid.patch to make it easier for downstream projects (i.e. Ubuntu) to apply additional patches in the correct order. Michael diff -Nru clang-2.9/debian/changelog clang-2.9/debian/changelog --- clang-2.9/debian/changelog 2011-05-26 12:10:34.0 +0200 +

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

2011-06-02 Thread Michael Wild
Removed debugging-remnants from debian/patches/handleWheezySid.patch, updated diffstat and the meta-info of the patch. Michael diff -Nru clang-2.9/debian/changelog clang-2.9/debian/changelog --- clang-2.9/debian/changelog 2011-05-26 12:10:34.0 +0200 +++ clang-2.9/debian/changelog 2011-06-0

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

2011-06-02 Thread Michael Wild
On 06/01/2011 06:42 PM, Sylvestre Ledru wrote: > Le mercredi 01 juin 2011 à 08:30 +0200, Michael Wild a écrit : >> Sylvestre, > >> Are you, by any chance, building on i686? > I confirm that it is working with my x86_64 system. > Did you look on how to fix that ? > > S > The error you saw was du

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

2011-06-01 Thread Michael Wild
On 06/01/2011 06:42 PM, Sylvestre Ledru wrote: > Le mercredi 01 juin 2011 à 08:30 +0200, Michael Wild a écrit : >> Sylvestre, > >> Are you, by any chance, building on i686? > I confirm that it is working with my x86_64 system. Did you look on > how to fix that ? > > S I've been looking into it,

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

2011-06-01 Thread Sylvestre Ledru
Le mercredi 01 juin 2011 à 08:30 +0200, Michael Wild a écrit : > Sylvestre, > Are you, by any chance, building on i686? I confirm that it is working with my x86_64 system. Did you look on how to fix that ? S -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject

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

2011-06-01 Thread Sylvestre Ledru
Le mercredi 01 juin 2011 à 08:30 +0200, Michael Wild a écrit : > Sylvestre, > > I just rebuilt from scratch using a freshly updated sid-cowbuilder image > and FWIW I can't reproduce your error. Here the lsb_release and uname > output from inside my cowbuilder environment: > > # lsb_release -a > N

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

2011-05-31 Thread Michael Wild
Sylvestre, I just rebuilt from scratch using a freshly updated sid-cowbuilder image and FWIW I can't reproduce your error. Here the lsb_release and uname output from inside my cowbuilder environment: # lsb_release -a No LSB modules are available. Distributor ID: Debian Description:Debian GNU/

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

2011-05-31 Thread Michael Wild
On 05/31/2011 01:06 PM, Sylvestre Ledru wrote: > Le mardi 31 mai 2011 à 09:39 +0200, Michael Wild a écrit : >> On 05/31/2011 12:05 AM, Sylvestre Ledru wrote: >>> Le samedi 28 mai 2011 à 20:37 +0200, Michael Wild a écrit : >> >> Forget about that patch; I was obviously too distracted... Attached >>

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

2011-05-31 Thread Sylvestre Ledru
Le mardi 31 mai 2011 à 09:39 +0200, Michael Wild a écrit : > On 05/31/2011 12:05 AM, Sylvestre Ledru wrote: > > Le samedi 28 mai 2011 à 20:37 +0200, Michael Wild a écrit : > > Forget about that patch; I was obviously too distracted... Attached > version 3 of the patch I am sorry but did you try y

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

2011-05-31 Thread Michael Wild
On 05/31/2011 12:05 AM, Sylvestre Ledru wrote: > Le samedi 28 mai 2011 à 20:37 +0200, Michael Wild a écrit : >> Hopefully, this patch works. It is against clang-2.9-1, not sure I got >> the changelog right, though. Anybody got a suggestion how to test the >> include-paths thoroughly? What packages

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

2011-05-30 Thread Sylvestre Ledru
Le samedi 28 mai 2011 à 20:37 +0200, Michael Wild a écrit : > Hopefully, this patch works. It is against clang-2.9-1, not sure I got > the changelog right, though. Anybody got a suggestion how to test the > include-paths thoroughly? What packages could I build that exercise them > exhaustively, esp

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

2011-05-28 Thread Michael Wild
Hopefully, this patch works. It is against clang-2.9-1, not sure I got the changelog right, though. Anybody got a suggestion how to test the include-paths thoroughly? What packages could I build that exercise them exhaustively, especially the recent Debian-specifics? Michael diff -Nru clang-2.9/de

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

2011-05-27 Thread Guillem Jover
Hi! On Mon, 2011-05-23 at 16:02:56 +0200, Michael Wild wrote: > On 05/23/2011 12:25 AM, Sylvestre Ledru wrote: > diff -Nru clang-2.9/debian/rules.d/vars.mk clang-2.9/debian/rules.d/vars.mk > --- clang-2.9/debian/rules.d/vars.mk 2011-04-15 19:19:10.0 +0200 > +++ clang-2.9/debian/rules.d/va

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

2011-05-23 Thread Michael Wild
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 >> void main(){ >> >> } >> " > plop.cpp > $ clang -o plop plop.cpp > In file included from plop.cpp:1: > In file included from /usr/include/c++/

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

2011-05-22 Thread Sylvestre Ledru
Hello Are you sure it is working for you ? It fails with the following: $ echo "#include > 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:

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

2011-05-13 Thread Sylvestre Ledru
Le vendredi 13 mai 2011 à 13:44 +0200, Michael Wild a écrit : > Oh, and I forgot to mention that using > --with-c-include-dirs=/usr/include/$(DEB_BUILD_GNU_TYPE):/usr/include > also would solve #612949. Thanks for digging for me. I will add it in a further upload. Sylvestre -- To UNSUBSCRIBE

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

2011-05-13 Thread Michael Wild
Oh, and I forgot to mention that using --with-c-include-dirs=/usr/include/$(DEB_BUILD_GNU_TYPE):/usr/include also would solve #612949. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

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

2011-05-13 Thread Michael Wild
I second that. For me, the following configure options work: --with-c-include-dirs=/usr/include/$(DEB_BUILD_GNU_TYPE):/usr/include --with-cxx-include-root=/usr/include/c++/4.5 --with-cxx-include-arch=$(DEB_BUILD_GNU_TYPE) --with-cxx-include-32bit-dir=32 --with-cxx-include-64bit-dir=64 Obviously,

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

2010-08-29 Thread Marc Glisse
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 head