Bug 444868 - Compiling the git-source For Kwayland Server Throws Clang Error: "Only virtual member functions can be marked 'override' "
Summary: Compiling the git-source For Kwayland Server Throws Clang Error: "Only virtua...
Status: RESOLVED FIXED
Alias: None
Product: kwayland
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Martin Flöser
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2021-11-03 08:08 UTC by nekonexus
Modified: 2022-02-01 00:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nekonexus 2021-11-03 08:08:52 UTC
SUMMARY

Compiling Kwayland-server via git with the AUR, with Clang configured as the toolchain, throws a compilation error when built in a chroot:

```
/build/kwayland-server-git/src/kwayland-server/src/server/screencast_v1_interface.cpp:105:78: error: only virtual member functions can be marked 'override'
                                                           uint32_t pointer) override
                                                                             ^~~~~~~~
[ 47%] Building CXX object src/server/CMakeFiles/KWaylandServer.dir/textinput_v3_interface.cpp.o
1 error generated.
```

STEPS TO REPRODUCE
1. Git clone the server source
2. Attempt to compile it with clang
3. Wait for the compilation error

OBSERVED RESULT

Kwayland-server fails to compile

EXPECTED RESULT

Kwayland-server should be able to compile with Clang

SOFTWARE/OS VERSIONS

Linux Distro: Arch Linux
KDE Plasma Version: 5.23.2
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION