Qt build fails with different error in the Makefile on each build like (:-1: error: [Makefile:3238: <object>.o] Error 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
-
@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. -
-
@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.