[qa] Ubuntu Xenial build failed, probable Qt issue: ‘fromSecsSinceEpoch’ is not a member of ‘QDateTime’
Extract of error:
g++-8 -std=c++17 -DHAVE_CONFIG_H -I. -I../src/config -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -I. -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/usr/include -I./leveldb/include -I./leveldb/helpers/memenv -I./secp256k1/include -I./univalue/include -DQT_NO_KEYWORDS -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtDBus -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5 -pthread -Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -fstack-reuse=none -Wstack-protector -fstack-protector-all -fPIC -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT qt/qt_libbitcoinqt_a-bitcoingui.o -MD -MP -MF qt/.deps/qt_libbitcoinqt_a-bitcoingui.Tpo -c -o qt/qt_libbitcoinqt_a-bitcoingui.o `test -f 'qt/bitcoingui.cpp' || echo './'`qt/bitcoingui.cpp
qt/bitcoingui.cpp: In member function ‘void BitcoinGUI::setClientModel(ClientModel*)’:
qt/bitcoingui.cpp:617:24: error: ‘fromSecsSinceEpoch’ is not a member of ‘QDateTime’
QDateTime::fromSecsSinceEpoch(_clientModel->getHeaderTipTime()));
^~~~~~~~~~~~~~~~~~
qt/bitcoingui.cpp:618:56: error: ‘fromSecsSinceEpoch’ is not a member of ‘QDateTime’
setNumBlocks(m_node.getNumBlocks(), QDateTime::fromSecsSinceEpoch(m_node.getLastBlockTime()),
^~~~~~~~~~~~~~~~~~
Makefile:9605: recipe for target 'qt/qt_libbitcoinqt_a-bitcoingui.o' failed
Ignore the "strange" version, this is an experimental version created to test !1144 (merged) rebased on recent master
(5fa5102f). Version has been downgraded from 22.3.0 to 22.2.3 in order not to contaminate my personal testing repo with 22.3.x versions (once published to Launchpad such versions cannot be removed anymore by the user).