Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • KWin KWin
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 58
    • Issues 58
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 160
    • Merge requests 160
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PlasmaPlasma
  • KWinKWin
  • Issues
  • #4
Closed
Open
Issue created Jun 03, 2020 by Timothy Purcell@timothy

kwin-5.18.x clockskewnotifierengine_linux error: use of undeclared identifier 'errno' causes compile failure when using clang

I have a Gentoo system that's mostly compiled using clang, the clang runtime compiler-rt, llvm's libc++ and the llvm toolchain. I haven't tested this using gcc so I don't know if gcc catches the same error. kwin will fail the compile phase when trying to compile clockskewnotifierengine_linux.cpp which is new from the kwin-5.17 to kwin-5.18 branch. The issue is an undeclared identifier, errno. I'm attaching a patch which declares the identifier so kwin can compile using clang + the llvm toolchain. The error is as follows:

/work/kwin-5.18.5/colorcorrection/clockskewnotifierengine_linux.cpp:38:77: error: use of undeclared identifier 'errno' qWarning("Couldn't create clock skew notifier engine: %s", strerror(errno));

I can't seem to create a merge request and I've never submitted a patch before so if there is anything I need to do please let me know. Thank you very much.

kwin-18.0-clockskewnotifierengine_linux.patch

Assignee
Assign to
Time tracking