Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt build fails with different error in the Makefile on each build like (:-1: error: [Makefile:3238: <object>.o] Error 1)
Forum Updated to NodeBB v4.3 + New Features

Qt build fails with different error in the Makefile on each build like (:-1: error: [Makefile:3238: <object>.o] Error 1)

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 3 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    James A
    wrote on 23 Sept 2021, 13:04 last edited by James A
    #1

    I using Qt Creator 4.14.0. Sometimes when I build the project the build fails with different error on each build in the Makefile has shown below

    I tried with Clean > Run qmake > Rebuild and also by deleting the build directory. But still the error is appearing

    Note : I am using Qt version 5.15.2 and 5.14.2 with both this is appearing. And I am using Ubuntu 20.04

    J 1 Reply Last reply 23 Sept 2021, 13:07
    0
    • J James A
      23 Sept 2021, 13:04

      I using Qt Creator 4.14.0. Sometimes when I build the project the build fails with different error on each build in the Makefile has shown below

      I tried with Clean > Run qmake > Rebuild and also by deleting the build directory. But still the error is appearing

      Note : I am using Qt version 5.15.2 and 5.14.2 with both this is appearing. And I am using Ubuntu 20.04

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 23 Sept 2021, 13:07 last edited by
      #2

      @James-A You do not show actual errors. Those should be above what you posted.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        James A
        wrote on 23 Sept 2021, 13:54 last edited by
        #3

        @jsulm , I found additional logs in the compile output. which is available below. It looks like some Segmentation fault

        In file included from /opt/Qt/5.15.2/gcc_64/include/QtDBus/QtDBus:15,
        from ../Component/wifi/libconnman-qt/commondbustypes.h:17,
        from ../Component/wifi/libconnman-qt/networkmanager.h:13,
        from ../Component/wifi/wifi.h:5,
        from ../Component/globals.h:13,
        from ../Component/bms/protocol/deviceprotocol.h:4,
        from ../Component/bms/tcphandler.h:6,
        from ../Component/bms/tcphandler.cpp:1:
        /opt/Qt/5.15.2/gcc_64/include/QtDBus/qdbusmetatype.h: In instantiation of ‘void qDBusDemarshallHelper(const QDBusArgument&, T*) [with T = QList<ConnmanObject>]’:
        /opt/Qt/5.15.2/gcc_64/include/QtDBus/qdbusmetatype.h:82:12: required from ‘int qDBusRegisterMetaType(T*) [with T = QList<ConnmanObject>]’
        ../Component/wifi/libconnman-qt/commondbustypes.h:46:44: required from here
        /opt/Qt/5.15.2/gcc_64/include/QtDBus/qdbusmetatype.h:72:14: internal compiler error: Segmentation fault
        72 | { arg >> *t; }
        | ^
        Please submit a full bug report,
        with preprocessed source if appropriate.
        See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
        make: *** [Makefile:12256: tcphandler.o] Error 1
        In file included from /opt/Qt/5.15.2/gcc_64/include/QtCore/qdatetime.h:46,
        from /opt/Qt/5.15.2/gcc_64/include/QtCore/QDate:1,
        from ../Component/bms/data/productdata.h:5,
        from ../Component/bms/configure/productinfologic.h:4,
        from ../Component/bms/configure/productinfologic.cpp:1:
        /opt/Qt/5.15.2/gcc_64/include/QtCore/qshareddata.h: In instantiation of ‘void QSharedDataPointer<T>::swap(QSharedDataPointer<T>&) [with T = QLocalePrivate]’:
        /opt/Qt/5.15.2/gcc_64/include/QtCore/qshareddata.h:301:3: required from ‘void swap(QSharedDataPointer<T>&, QSharedDataPointer<T>&) [with T = QLocalePrivate]’
        /opt/Qt/5.15.2/gcc_64/include/QtCore/qglobal.h:969:9: required from ‘void qSwap(T&, T&) [with T = QSharedDataPointer<QLocalePrivate>]’
        /opt/Qt/5.15.2/gcc_64/include/QtCore/qlocale.h:1005:58: required from here
        /opt/Qt/5.15.2/gcc_64/include/QtCore/qshareddata.h:130:26: internal compiler error: Segmentation fault
        130 | { qSwap(d, other.d); }
        | ^
        Please submit a full bug report,
        with preprocessed source if appropriate.
        See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
        make: *** [Makefile:8881: productinfologic.o] Error 1
        19:21:15: The process "/usr/bin/make" exited with code 2.
        Error while building/deploying project Raven (kit: Desktop Qt 5.15.2 GCC 64bit)
        When executing step "Make"
        19:21:15: Elapsed time: 00:05.

        J J 2 Replies Last reply 23 Sept 2021, 14:01
        0
        • J James A
          23 Sept 2021, 13:54

          @jsulm , I found additional logs in the compile output. which is available below. It looks like some Segmentation fault

          In file included from /opt/Qt/5.15.2/gcc_64/include/QtDBus/QtDBus:15,
          from ../Component/wifi/libconnman-qt/commondbustypes.h:17,
          from ../Component/wifi/libconnman-qt/networkmanager.h:13,
          from ../Component/wifi/wifi.h:5,
          from ../Component/globals.h:13,
          from ../Component/bms/protocol/deviceprotocol.h:4,
          from ../Component/bms/tcphandler.h:6,
          from ../Component/bms/tcphandler.cpp:1:
          /opt/Qt/5.15.2/gcc_64/include/QtDBus/qdbusmetatype.h: In instantiation of ‘void qDBusDemarshallHelper(const QDBusArgument&, T*) [with T = QList<ConnmanObject>]’:
          /opt/Qt/5.15.2/gcc_64/include/QtDBus/qdbusmetatype.h:82:12: required from ‘int qDBusRegisterMetaType(T*) [with T = QList<ConnmanObject>]’
          ../Component/wifi/libconnman-qt/commondbustypes.h:46:44: required from here
          /opt/Qt/5.15.2/gcc_64/include/QtDBus/qdbusmetatype.h:72:14: internal compiler error: Segmentation fault
          72 | { arg >> *t; }
          | ^
          Please submit a full bug report,
          with preprocessed source if appropriate.
          See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
          make: *** [Makefile:12256: tcphandler.o] Error 1
          In file included from /opt/Qt/5.15.2/gcc_64/include/QtCore/qdatetime.h:46,
          from /opt/Qt/5.15.2/gcc_64/include/QtCore/QDate:1,
          from ../Component/bms/data/productdata.h:5,
          from ../Component/bms/configure/productinfologic.h:4,
          from ../Component/bms/configure/productinfologic.cpp:1:
          /opt/Qt/5.15.2/gcc_64/include/QtCore/qshareddata.h: In instantiation of ‘void QSharedDataPointer<T>::swap(QSharedDataPointer<T>&) [with T = QLocalePrivate]’:
          /opt/Qt/5.15.2/gcc_64/include/QtCore/qshareddata.h:301:3: required from ‘void swap(QSharedDataPointer<T>&, QSharedDataPointer<T>&) [with T = QLocalePrivate]’
          /opt/Qt/5.15.2/gcc_64/include/QtCore/qglobal.h:969:9: required from ‘void qSwap(T&, T&) [with T = QSharedDataPointer<QLocalePrivate>]’
          /opt/Qt/5.15.2/gcc_64/include/QtCore/qlocale.h:1005:58: required from here
          /opt/Qt/5.15.2/gcc_64/include/QtCore/qshareddata.h:130:26: internal compiler error: Segmentation fault
          130 | { qSwap(d, other.d); }
          | ^
          Please submit a full bug report,
          with preprocessed source if appropriate.
          See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
          make: *** [Makefile:8881: productinfologic.o] Error 1
          19:21:15: The process "/usr/bin/make" exited with code 2.
          Error while building/deploying project Raven (kit: Desktop Qt 5.15.2 GCC 64bit)
          When executing step "Make"
          19:21:15: Elapsed time: 00:05.

          J Offline
          J Offline
          JonB
          wrote on 23 Sept 2021, 14:01 last edited by JonB
          #4

          @James-A
          @jsulm may know more than I. But from
          See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
          I'm assuming you use GCC 9? Go check which version it really is. Since the error ultimately comes from the compiler, not Qt, I''m wondering if you could test with GCC 10 or latest 11?

          1 Reply Last reply
          1
          • J James A
            23 Sept 2021, 13:54

            @jsulm , I found additional logs in the compile output. which is available below. It looks like some Segmentation fault

            In file included from /opt/Qt/5.15.2/gcc_64/include/QtDBus/QtDBus:15,
            from ../Component/wifi/libconnman-qt/commondbustypes.h:17,
            from ../Component/wifi/libconnman-qt/networkmanager.h:13,
            from ../Component/wifi/wifi.h:5,
            from ../Component/globals.h:13,
            from ../Component/bms/protocol/deviceprotocol.h:4,
            from ../Component/bms/tcphandler.h:6,
            from ../Component/bms/tcphandler.cpp:1:
            /opt/Qt/5.15.2/gcc_64/include/QtDBus/qdbusmetatype.h: In instantiation of ‘void qDBusDemarshallHelper(const QDBusArgument&, T*) [with T = QList<ConnmanObject>]’:
            /opt/Qt/5.15.2/gcc_64/include/QtDBus/qdbusmetatype.h:82:12: required from ‘int qDBusRegisterMetaType(T*) [with T = QList<ConnmanObject>]’
            ../Component/wifi/libconnman-qt/commondbustypes.h:46:44: required from here
            /opt/Qt/5.15.2/gcc_64/include/QtDBus/qdbusmetatype.h:72:14: internal compiler error: Segmentation fault
            72 | { arg >> *t; }
            | ^
            Please submit a full bug report,
            with preprocessed source if appropriate.
            See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
            make: *** [Makefile:12256: tcphandler.o] Error 1
            In file included from /opt/Qt/5.15.2/gcc_64/include/QtCore/qdatetime.h:46,
            from /opt/Qt/5.15.2/gcc_64/include/QtCore/QDate:1,
            from ../Component/bms/data/productdata.h:5,
            from ../Component/bms/configure/productinfologic.h:4,
            from ../Component/bms/configure/productinfologic.cpp:1:
            /opt/Qt/5.15.2/gcc_64/include/QtCore/qshareddata.h: In instantiation of ‘void QSharedDataPointer<T>::swap(QSharedDataPointer<T>&) [with T = QLocalePrivate]’:
            /opt/Qt/5.15.2/gcc_64/include/QtCore/qshareddata.h:301:3: required from ‘void swap(QSharedDataPointer<T>&, QSharedDataPointer<T>&) [with T = QLocalePrivate]’
            /opt/Qt/5.15.2/gcc_64/include/QtCore/qglobal.h:969:9: required from ‘void qSwap(T&, T&) [with T = QSharedDataPointer<QLocalePrivate>]’
            /opt/Qt/5.15.2/gcc_64/include/QtCore/qlocale.h:1005:58: required from here
            /opt/Qt/5.15.2/gcc_64/include/QtCore/qshareddata.h:130:26: internal compiler error: Segmentation fault
            130 | { qSwap(d, other.d); }
            | ^
            Please submit a full bug report,
            with preprocessed source if appropriate.
            See <file:///usr/share/doc/gcc-9/README.Bugs> for instructions.
            make: *** [Makefile:8881: productinfologic.o] Error 1
            19:21:15: The process "/usr/bin/make" exited with code 2.
            Error while building/deploying project Raven (kit: Desktop Qt 5.15.2 GCC 64bit)
            When executing step "Make"
            19:21:15: Elapsed time: 00:05.

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 24 Sept 2021, 05:38 last edited by
            #5

            @James-A said in Qt build fails with different error in the Makefile on each build like (:-1: error: [Makefile:3238: <object>.o] Error 1):

            internal compiler error

            This is internal compiler error (bug in the compiler). Try to change your code a bit to see whether it helps.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • J Offline
              J Offline
              James A
              wrote on 28 Sept 2021, 17:52 last edited by
              #6

              After updating to GCC 10, I am not facing that issue still now. Thanks for the support

              1 Reply Last reply
              1

              1/6

              23 Sept 2021, 13:04

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved