Bug 399052 - Compilation fails on __attribute__((fallthrough))
Summary: Compilation fails on __attribute__((fallthrough))
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: general (show other bugs)
Version: 2.9.0
Platform: Debian stable Linux
: NOR normal
Target Milestone: kf5
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-25 13:18 UTC by Eyal Rozenberg
Modified: 2018-09-26 07:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2018-09-25 13:18:50 UTC
I'm trying to build Amarok 2.9.0 on a Debian Stretch machine (well, Devuan ASCII, but it's essentially the same), after having manually built and installed Googletest (inc. Google Mock) and neopomuk-core, which I couldn't obtained using distribution packages.

CMake passes fine, with all optional packages located, but compilation fails:

/usr/local/src/amarok-2.9.0/src/playlist/proxymodels/SortAlgorithms.cpp: In member function ‘bool Playlist::multilevelLessThan::operator()(const QAbstractItemModel*, int, int) const’:
/usr/local/src/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:2712: recipe for target 'src/CMakeFiles/amaroklib.dir/playlist/proxymodels/SortAlgorithms.cpp.o' failed


If I comment-out the attribute, compilation (of that file at least) succeeds. I'm using the following compiler: g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516