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

Jean-Michaël Celerier jeanmichael.celerier at gmail.com
Fri Nov 30 11:39:20 CET 2018


Building without LTO fixed it. Sorry for the bother. I'll see if I can send
a test case to LLVM...

Best,
Jean-Michaël

On Fri, Nov 30, 2018 at 12:26 AM Thiago Macieira <thiago.macieira at intel.com>
wrote:

> On Thursday, 29 November 2018 09:33:45 PST Jean-Michaël Celerier wrote:
> > I also changed a few things in the buildscripts to link with lld instead
> of
> > gold:
> >
> >   sed -i 's/fuse-ld=gold/fuse-ld=lld/g' \
> >     qtbase/mkspecs/common/gcc-base-unix.conf \
> >     qtbase/mkspecs/features/qt_configure.prf \
> >     qtbase/configure.json
> >
> > (I'm not using arch's native clang, but the one I compiled myself though)
>
> lld might be the issue. QLinkedListData::shared_null has pointers back to
> itself:
>
> const QLinkedListData QLinkedListData::shared_null = {
>     const_cast<QLinkedListData *>(&QLinkedListData::shared_null),
>     const_cast<QLinkedListData *>(&QLinkedListData::shared_null),
>     Q_REFCOUNT_INITIALIZE_STATIC, 0, true
> };
>
> If those pointers are incorrect, it would cause the error you're seeing.
>
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at lists.qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20181130/5c0ee9f6/attachment.html>


More information about the Interest mailing list