[Interest] update on building Qt/Linux with clang?

Jean-Michaël Celerier jeanmichael.celerier at gmail.com
Thu Nov 29 15:30:16 CET 2018


I'm on clang 7.0.1-rc2 and a freshly-cloned qt 5.12.0 ; it does the same on
centos 7 and archlinux.


Best


On Thu, Nov 29, 2018 at 3:28 PM Jean-Michaël Celerier <
jeanmichael.celerier at gmail.com> wrote:

> Here's my stacktrace (finally had some time to do a rebuild)
>
> #0  QString::QString (this=0x23dda0, other=...) at
> ../../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qstring.h:958
> #1  QLinkedListNode<QString>::QLinkedListNode (this=0x23dd90, arg=...) at
> ../../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qlinkedlist.h:71
> #2  QLinkedList<QString>::detach_helper2 (this=0x7fffffffdad8, orgite=...)
> at
> ../../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qlinkedlist.h:303
> #3  0x00000000002153ad in QLinkedList<QString>::detach (this=0x23dd90) at
> ../../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qlinkedlist.h:106
> #4  QLinkedList<QString>::end (this=0x23dd90) at
> ../../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qlinkedlist.h:209
> #5  Grammar::Grammar (this=<optimized out>) at
> /opt/build-sdk/qt5/qtbase/src/tools/qlalr/lalr.cpp:188
> #6  main (argc=4, argv=<optimized out>) at
> /opt/build-sdk/qt5/qtbase/src/tools/qlalr/main.cpp:103
>
> I've only glanced quickly (read, less than 15 seconds) at the code but I
> don't understand how it can work in any reasonable fashion: it seems that
> it tries to construct a string (`QString Grammar::start` ) with the `end()`
> of a container in lalr.cpp:188. But since it works in so many other
> configurations I must be missing something somewhere.
>
> Best,
>
> -------
> Jean-Michaël Celerier
> http://www.jcelerier.name
>
>
> On Fri, Nov 9, 2018 at 10:01 AM René J. V. Bertin <rjvbertin at gmail.com>
> wrote:
>
>> Sérgio Martins wrote:
>>
>> > FWIW, I just tried -flto with clang-7.0 and gold-1.16 and can't
>> > reproduce QTBUG-43556 anymore.
>>
>> Good to know, I use the "regular" ld v2.3.0 (~gold for other reasons I
>> cannot
>> really remember).
>>
>> In the FWIW register: does clang 7 continue the trend of being noticeably
>> slower
>> that its predecessor (about 15% for clang 6)?
>>
>> R.
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181129/9a8d7693/attachment.html>


More information about the Interest mailing list