unit test failures (llvm/clang/scan-build/clang/clang++)

Maarten Hoes hoes.maarten at gmail.com
Mon Nov 23 03:01:45 PST 2015


On Mon, Nov 23, 2015 at 11:25 AM, Stephan Bergmann <sbergman at redhat.com>
wrote:
>
> On 11/23/2015 11:14 AM, Maarten Hoes wrote:
>>
>> On Mon, Nov 23, 2015 at 11:09 AM, Stephan Bergmann <sbergman at redhat.com
>> <mailto:sbergman at redhat.com>> wrote:
>>  >
>>  > On 11/23/2015 11:02 AM, Maarten Hoes wrote:
>>  >>
>>  >> On Mon, Nov 23, 2015 at 10:51 AM, Stephan Bergmann
>> <sbergman at redhat.com <mailto:sbergman at redhat.com>
>>  >> <mailto:sbergman at redhat.com <mailto:sbergman at redhat.com>>> wrote:
>>  >>  >
>>  >>  > On 11/23/2015 10:42 AM, Maarten Hoes wrote:
>>  >>  >>
>>  >>  >> On Mon, Nov 23, 2015 at 10:39 AM, Stephan Bergmann
>>  >> <sbergman at redhat.com <mailto:sbergman at redhat.com>
>> <mailto:sbergman at redhat.com <mailto:sbergman at redhat.com>>
>>  >>  >>  > The Clang included in Fedora 23 is known to be broken,
>>  >>  >> <https://bugzilla.redhat.com/show_bug.cgi?id=1282645#c3> "Clang
>> fails to
>>  >>  >> link boost library."
>>  >>  >>
>>  >>  >> Instead of using the pre-build binaries/packages of Fedora, I
>> build from
>>  >>  >> source. Of course, that doesnt mean it couldnt still be broken
;-)
>>  >>  >
>>  >>  >
>>  >>  > See my recipe in the "By the way" paragraph in the bug I linked.
>>  >>
>>  >> Thanks. So that works around the clang bug, only to uncover a bug in
the
>>  >> Fedora 23 GNU libstdc++ ? Looks like Im screwed.
>>  >
>>  >
>>  > Note that the libstdc++ issue is in debug-mode--only code, so LO is
>> only affected (and the little additional patch I presented to fix things
>> up only needed) with --enable-dbgutil.
>>  >
>> Ah. And, perhaps, affected with '--enable-debug' ? Im using that. So
>> just omitting '--enable-debug' should make the clang build succeed ? Or
>> am I (once again) missing the point here ?
>
>
> No, not affected by --enable-debug.
>
> And the 'add the patch <http://reviews.llvm.org/D12834?id=34645> "add gcc
abi_tag support'" part of the recipe is required independent of LO
--enable-dbgutil, only the "plus a little patch..." part can presumably be
ignored in the (implicit) --disable-dbgutil case.
>
> (There may also be other ways how to make Clang on Fedora 23 work, like
overriding libstdc++'s _GLIBCXX_USE_CXX11_ABI setting, but I haven't
explored that.)
>

Alright, thanks for all the help and explanations/clarifications. It's
appreciated. But I guess ill wait until that patch trickles down to at
least the latest llvm/clang svn version though, so I can just get away with
something like 'svn update && make && sudo make install' for llvm/clang.

Or try doing something like 'make CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0' /
'CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 ./autogen.sh' or even 'export
CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 && scan-build --use-cc=clang
--use-c++=clang++ ./autogen.sh' for the libreoffice build like you
mentioned.


Or just try another distro altogether.
;-)

Thanks again,


- Maarten.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20151123/8f0f73e7/attachment.html>


More information about the LibreOffice mailing list