Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69512

qtlocation build failure with GCC 4.8.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.1, 5.12.2
    • 5.11.1
    • Location
    • NetBSD planets 8.99.21 NetBSD 8.99.21 (GENERIC) #0: Fri Jul 13 14:49:46 IDT 2018 fly@planets:/tmp/build3/sys/arch/amd64/compile/GENERIC amd64

      RHEL 7
    • Linux/X11, Other
    • b4beb74d93fee205b624c0f0ae6ea39d88d471ac (qt/qtlocation/5.11)

    Description

      The following error happens when building with GCC 4.8.5:

      declarativemaps/qdeclarativegeomap.cpp: In member function 'void QDeclarativeGeoMap::mappingManagerInitialized()': declarativemaps/qdeclarativegeomap.cpp:699:91: error: no matching function for call to 'QDeclarativeGeoMap::connect(QPointer<QGeoMap>&, void (QGeoMap::*)(const QString&), QDeclarativeGeoMap::mappingManagerInitialized()::__lambda8)' [&copyrightString](const QString &copy){ copyrightString = copy; }); ^

       

      Full build log for similar setup: https://us-east.manta.joyent.com/pkgsrc/public/reports/Linux/el7/trunk/x86_64/20180717.0007/qt5-qtlocation-5.11.1/build.log

      Similar report in forums: https://forum.qt.io/topic/91073/failed-to-build-qt-5-11-0-from-source-on-centos-7-but-no-problem-with-qt-5-10-1/16

       

      It's apparently a compiler bug fixed in GCC 5.x and later.

      However, working around it is not very costly, and GCC 4.8 is supposed to be supported.

       

      The patch was suggested by thiago on qt irc.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            paangele Paolo Angelelli
            pumpkin pumpkin pie
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes