So if you don't want to go through the hassle of checking it out from Git, you could simply delete that one line in the source code, as indicated by Heiko's linked patch.

Sorry for the trouble :)

Mark


On Fri, Mar 9, 2018 at 8:42 AM, Heiko Becker <heirecka@exherbo.org> wrote:
Hello Michał,

On 03/08/18 12:57, Michał Zając wrote:
> /root/amarok/amarok-2.9.0/src/playlist/proxymodels/SortAlgorithms.cpp:
> In member function ‘bool Playlist::multilevelLessThan::operator()(const
> QAbstractItemModel*, int, int) const’:
> /root/amarok/amarok-2.9.0/src/playlist/proxymodels/SortAlgorithms.cpp:98:21:
> error: expected primary-expression before ‘__attribute__’
>                      __attribute__ ((fallthrough));
>                      ^
> src/CMakeFiles/amaroklib.dir/build.make:2716: recipe for target
> 'src/CMakeFiles/amaroklib.dir/playlist/proxymodels/SortAlgorithms.cpp.o'
> failed
> make[2]: ***
> [src/CMakeFiles/amaroklib.dir/playlist/proxymodels/SortAlgorithms.cpp.o]
> Error 1
> CMakeFiles/Makefile2:369: recipe for target
> 'src/CMakeFiles/amaroklib.dir/all' failed
> make[1]: *** [src/CMakeFiles/amaroklib.dir/all] Error 2
> Makefile:138: recipe for target 'all' failed
> make: *** [all] Error 2>
> Am I the only one getting this?

Unfortunately not, but it's already fixed in the 2.9 branch:
https://cgit.kde.org/amarok.git/commit/?h=2.9&id=f047cd8219d9537bb33bba3883bedf6231a0ed5f
(Or you can switch to gcc7).

Regards,
Heiko