Building amarok-2.8.90 with GCC-6.1.0 fails with: >/var/tmp/portage/media-sound/amarok-2.8.90-r1/work/amarok-2.8.90/src/core-impl/playlists/types/file/xspf/XSPFPlaylist.cpp: In member function 'void Playlists::XSPFPlaylist::load()': >/var/tmp/portage/media-sound/amarok-2.8.90-r1/work/amarok-2.8.90/src/core-impl/playlists/types/file/xspf/XSPFPlaylist.cpp:104:33: error: 'Playlists::Playlist::ModelStack' has not been declared > ::Playlist::ModelStack::instance()->bottom()->rowCount(), Reproducible: Always Steps to Reproduce: 1. emerge -1 =amarok-2.8.90-r1 Actual Results: /var/tmp/portage/media-sound/amarok-2.8.90-r1/work/amarok-2.8.90/src/core-impl/playlists/types/file/xspf/XSPFPlaylist.cpp:104:33: error: 'Playlists::Playlist::ModelStack' has not been declared Expected Results: Successful merge KDE Frameworks 5.21.0 Qt 5.6.0
> KDE Frameworks 5.21.0 > Qt 5.6.0 Sorry. It's actually built against KDE 4.14.19 and QT 4.8.7.
If kdelibs-4.14.19 is built with GCC-5 (in my case gcc-5.3.0) it seems amarok has no problem building with GCC-5 either. But any other combination of GCC-5 and GCC-6 causes build failure. Please note that for all builds of kdelibs-4.14.19, the following patches were applied from http://pkgs.fedoraproject.org/cgit/rpms/kdelibs.git/tree/?id=b459bc2531ad507b99e566dc78495d97478e3fca kdelibs-4.14.17-gcc6_literals.patch kdelibs-4.14.17-gcc6_narrowing_hack.patch kdelibs-4.14.17-glibc_trunc.patch
(In reply to nsane457 from comment #3) > If kdelibs-4.14.19 is built with GCC-5 (in my case gcc-5.3.0) it seems > amarok has no problem building with GCC-5 either. But any other combination > of GCC-5 and GCC-6 causes build failure. Which is hardly surprising, you should use the same compiler for Amarok and its dependencies. Not sure this is really an amarok bug, more like a dependencies mismatch.
(In reply to Myriam Schweingruber from comment #4) > Which is hardly surprising, you should use the same compiler for Amarok and > its dependencies. Not sure this is really an amarok bug, more like a > dependencies mismatch. Agreed but that was just for testing's sake. The following problem exists when amarok is compiled with GCC-6 (and kdelibs was also compiled with GCC-6). > error: 'Playlists::Playlist::ModelStack' has not been declared
This patch fixes the issue on my end: https://build.opensuse.org/package/view_file/openSUSE:Factory/amarok/gcc6-workaround.patch?rev=b81d335fe49337f84d9c5c232b5746a2
Thanks for that patch. It's a one-liner fix.... It even had "fixme" in the line that is being fixed! The patch fixed amarok-git package compile on Arch again...
marking confirmed
Git commit 9308403e1c8484052f277bf6de32ee07c93a4beb by Rex Dieter. Committed on 01/06/2016 at 18:58. Pushed by rdieter into branch 'master'. gcc6 buildfix courtesy of opensuse, thx M +2 -1 src/core-impl/playlists/types/file/xspf/XSPFPlaylist.cpp http://commits.kde.org/amarok/9308403e1c8484052f277bf6de32ee07c93a4beb