Compile started failing with GCC 10
Hello. Compile started failing with new GCC 10.0 on Fedora Rawhide (F32).
- Full build log.
- GCC package version:
10.0.1-0.6.fc32
The problem somewhere here i guess:
FAILED: src/CMakeFiles/corectrl_lib.dir/core/qmlcomponentfactory.cpp.o
/usr/bin/c++ -DDISABLE_PREDEFINED_UNITS -DELPP_FORCE_USE_STD_THREAD -DELPP_NO_DEFAULT_LOG_FILE -DELPP_NO_LOG_TO_FILE -DELPP_THREAD_SAFE -DENABLE_PREDEFINED_ANGLE_UNITS -DENABLE_PREDEFINED_ANGULAR_VELOCITY_UNITS -DENABLE_PREDEFINED_CONCENTRATION_UNITS -DENABLE_PREDEFINED_CONVERT_UNITS -DENABLE_PREDEFINED_DATA_UNITS -DENABLE_PREDEFINED_FREQUENCY_UNITS -DENABLE_PREDEFINED_POWER_UNITS -DENABLE_PREDEFINED_TEMPERATURE_UNITS -DENABLE_PREDEFINED_TIME_UNITS -DENABLE_PREDEFINED_VOLTAGE_UNITS -DKCOREADDONS_LIB -DQT_CHARTS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QML_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DUNIT_LIB_DISABLE_IOSTREAM -Dcorectrl_lib_EXPORTS -Isrc -I../src -Isrc/corectrl_lib_autogen/include -I../src/3rdparty -I/usr/include/botan-2 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCharts -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtDBus -isystem /usr/include/KF5/KAuth -isystem /usr/include/KF5 -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5/KArchive -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -O2 -g -DNDEBUG -fPIC -fPIC -std=gnu++17 -MD -MT src/CMakeFiles/corectrl_lib.dir/core/qmlcomponentfactory.cpp.o -MF src/CMakeFiles/corectrl_lib.dir/core/qmlcomponentfactory.cpp.o.d -o src/CMakeFiles/corectrl_lib.dir/core/qmlcomponentfactory.cpp.o -c ../src/core/qmlcomponentfactory.cpp
In file included from ../src/core/qmlcomponentfactory.cpp:18:
../src/core/qmlcomponentfactory.h:42:19: error: 'std::string_view' has not been declared
42 | std::string_view parentObjectName) const;
| ^~~
../src/core/qmlcomponentfactory.cpp: In member function 'virtual QMLItem* QMLComponentFactory::createQMLItem(const string&, QQuickItem*, QQmlApplicationEngine&) const':
../src/core/qmlcomponentfactory.cpp:53:52: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int'
53 | parentItem(item, parent, parentName.toStdString());
| ~~~~~~~~~~~~~~~~~~~~~~^~
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from ../src/core/qmlcomponentfactory.cpp:18:
../src/core/qmlcomponentfactory.h:42:36: note: initializing argument 3 of 'void QMLComponentFactory::parentItem(QQuickItem*, QQuickItem*, int) const'
42 | std::string_view parentObjectName) const;
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../src/core/qmlcomponentfactory.cpp: In member function 'virtual QQuickItem* QMLComponentFactory::createQuickItem(const string&, QQuickItem*, const string&) const':
../src/core/qmlcomponentfactory.cpp:71:30: error: cannot convert 'const string' {aka 'const std::__cxx11::basic_string<char>'} to 'int'
71 | parentItem(item, parent, parentObjectName);
| ^~~~~~~~~~~~~~~~
| |
| const string {aka const std::__cxx11::basic_string<char>}
In file included from ../src/core/qmlcomponentfactory.cpp:18:
../src/core/qmlcomponentfactory.h:42:36: note: initializing argument 3 of 'void QMLComponentFactory::parentItem(QQuickItem*, QQuickItem*, int) const'
42 | std::string_view parentObjectName) const;
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../src/core/qmlcomponentfactory.cpp: At global scope:
../src/core/qmlcomponentfactory.cpp:79:6: error: no declaration matches 'void QMLComponentFactory::parentItem(QQuickItem*, QQuickItem*, std::string_view) const'
79 | void QMLComponentFactory::parentItem(QQuickItem *item, QQuickItem *parent,
| ^~~~~~~~~~~~~~~~~~~
In file included from ../src/core/qmlcomponentfactory.cpp:18:
../src/core/qmlcomponentfactory.h:41:8: note: candidate is: 'void QMLComponentFactory::parentItem(QQuickItem*, QQuickItem*, int) const'
41 | void parentItem(QQuickItem *item, QQuickItem *parent,
| ^~~~~~~~~~
../src/core/qmlcomponentfactory.h:22:7: note: 'class QMLComponentFactory' defined here
22 | class QMLComponentFactory final : public IQMLComponentFactory
| ^~~~~~~~~~~~~~~~~~~
@jpalaciosdev i don't want your app will be dropped from next Fedora
Edited by Artem