Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] Cannot build kde-plasma/powerdevil

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
roarinelk
Guru
Guru
User avatar
Posts: 524
Joined: Thu Mar 04, 2004 12:24 pm

[SOLVED] Cannot build kde-plasma/powerdevil

  • Quote

Post by roarinelk » Mon Feb 09, 2026 12:04 pm

Hello,

Since a long time, I am unable to build kde-plasma/powerdevil without any changes.
The error is:

Code: Select all

/usr/include/qt6/QtWaylandClient/qwaylandclientextension.h: In instantiation of 'QWaylandClientExtensionTemplate<T, destruct>::QWaylandClientExtensionTemplate(int) [with T = ExternalBrightnessController; auto destruct = &QtWayland::kde_external_brightness_v1::destroy]':
required from here
/tmp-ram/portage/kde-plasma/powerdevil-6.5.5/work/powerdevil-6.5.5/daemon/controllers/externalbrightnesscontrol.cpp:12:127:   
   12 |     : QWaylandClientExtensionTemplate<ExternalBrightnessController, &QtWayland::kde_external_brightness_v1::destroy>(s_version)
      |                                                                                                                               ^
/usr/include/qt6/QtWaylandClient/qwaylandclientextension.h:57:32: error: '(QtWayland::kde_external_brightness_v1::destroy != 0)' is not a constant expression
   57 |         if constexpr (destruct != nullptr) {
      |                       ~~~~~~~~~^~~~~~~~~~
/usr/include/qt6/QtWaylandClient/qwaylandclientextension.h: In instantiation of 'QWaylandClientExtensionTemplate<T, destruct>::~QWaylandClientExtensionTemplate() [with T = ExternalBrightnessController; auto destruct = &QtWayland::kde_external_brightness_v1::destroy]':
required from here
/tmp-ram/portage/kde-plasma/powerdevil-6.5.5/work/powerdevil-6.5.5/daemon/controllers/externalbrightnesscontrol.cpp:12:127:   
   12 |     : QWaylandClientExtensionTemplate<ExternalBrightnessController, &QtWayland::kde_external_brightness_v1::destroy>(s_version)
      |                                                                                                                               ^
/usr/include/qt6/QtWaylandClient/qwaylandclientextension.h:68:32: error: '(QtWayland::kde_external_brightness_v1::destroy != 0)' is not a constant expression
   68 |         if constexpr (destruct != nullptr) {
      |                       ~~~~~~~~~^~~~~~~~~~
If I remove the constexpr's from both destructors (in qwaylandclientextension.h), the build succeeds. Only powerdevil is affected by this, all the other KDE packages I have build just fine. Powerdevil itself also works fine when built.
Can anyone please shed a light on this?

Thanks!
Last edited by roarinelk on Sat Feb 21, 2026 11:04 am, edited 1 time in total.
Top
Hu
Administrator
Administrator
Posts: 24386
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon Feb 09, 2026 2:28 pm

Please post the standard debugging data, that Portage should have told you to post when it reported that the package failed to build. In particular, I want to see the compiler version and the command line of the failed file. A minimal reproducible example would be nice, but not required yet.
Top
roarinelk
Guru
Guru
User avatar
Posts: 524
Joined: Thu Mar 04, 2004 12:24 pm

  • Quote

Post by roarinelk » Sat Feb 21, 2026 11:06 am

I was able to solve this in the meantime. In one of the cross-toolchain files in /etc/portage/package.env/ was an entry "kde-plasma/powerdevil debug" , which I removed, since then it has compiled fine, including the latest version 6.6.0.
EDIT: this "debug" env set the cflag "-fno-delete-null-pointer-checks" which ultimately caused the build failure.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic