Subject: Elisa build fails on mediaplaylisttest.cpp
From: Maxim Cournoyer <[email-masked]>
To: bug-guix <[email-masked]>
Date: Tue, 03 Nov 2020 00:10:10 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

The compilation fails with the error:

--8<---------------cut here---------------start------------->8---
In file included from /gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtest.h:45:0,
                 from /gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/QtTest:11,
                 from /tmp/guix-build-elisa-0.4.2.drv-0/elisa-0.4.2/autotests/mediaplaylisttest.cpp:27:
/tmp/guix-build-elisa-0.4.2.drv-0/elisa-0.4.2/autotests/mediaplaylisttest.cpp: In member function ‘void MediaPlayListTest::restoreTrackWithoutAlbum()’:
/tmp/guix-build-elisa-0.4.2.drv-0/elisa-0.4.2/autotests/mediaplaylisttest.cpp:3048:5: error: call of overloaded ‘qCompare(QString, <brace-enclosed initializer list>, const char [77], const char [3], const char [78], int)’ is ambiguous
     QCOMPARE(myPlayList.data(myPlayList.index(0, 0), MediaPlayList::AlbumRole).toString(), {});
     ^
In file included from /gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtest.h:45:0,
                 from /gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/QtTest:11,
                 from /tmp/guix-build-elisa-0.4.2.drv-0/elisa-0.4.2/autotests/mediaplaylisttest.cpp:27:
/gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtestcase.h:349:17: note: candidate: bool QTest::qCompare(const T&, const T&, const char*, const char*, const char*, int) [with T = QString]
     inline bool qCompare(T const &t1, T const &t2, const char *actual, const char *expected,
                 ^~~~~~~~
/gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtestcase.h:372:27: note: candidate: bool QTest::qCompare(QStringView, QStringView, const char*, const char*, const char*, int)
     Q_TESTLIB_EXPORT bool qCompare(QStringView t1, QStringView t2,
                           ^~~~~~~~
/gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtestcase.h:375:27: note: candidate: bool QTest::qCompare(QStringView, const QLatin1String&, const char*, const char*, const char*, int)
     Q_TESTLIB_EXPORT bool qCompare(QStringView t1, const QLatin1String &t2,
                           ^~~~~~~~
/gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtestcase.h:381:17: note: candidate: bool QTest::qCompare(const QString&, const QString&, const char*, const char*, const char*, int)
     inline bool qCompare(const QString &t1, const QString &t2,
                 ^~~~~~~~
/gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtestcase.h:387:17: note: candidate: bool QTest::qCompare(const QString&, const QLatin1String&, const char*, const char*, const char*, int)
     inline bool qCompare(const QString &t1, const QLatin1String &t2,
                 ^~~~~~~~
In file included from /gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtest_widgets.h:51:0,
                 from /gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtest.h:462,
                 from /gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/QtTest:11,
                 from /tmp/guix-build-elisa-0.4.2.drv-0/elisa-0.4.2/autotests/mediaplaylisttest.cpp:27:
/gnu/store/59dq1n4wj3maa3kcar6hspj2zd82as7q-qtbase-5.14.2/include/qt5/QtTest/qtest_gui.h:192:13: note: candidate: bool QTest::qCompare(const QPixmap&, const QPixmap&, const char*, const char*, const char*, int)
 inline bool qCompare(QPixmap const &t1, QPixmap const &t2, const char *actual, const char *expected,
             ^~~~~~~~
[...]
[100%] Built target databaseInterfaceTest
make[1]: Leaving directory '/tmp/guix-build-elisa-0.4.2.drv-0/build'
make: *** [Makefile:144: all] Error 2
command "make" "-j" "24" failed with status 2
--8<---------------cut here---------------end--------------->8---

Thanks,

Maxim