Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

[Solved] dev-libs/hyprgraphics not compil because std::span

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Nima0908
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Mon Feb 24, 2025 7:47 pm

[Solved] dev-libs/hyprgraphics not compil because std::span

  • Quote

Post by Nima0908 » Tue Mar 03, 2026 8:44 pm

Hello,
i was hoping i dont have to make this post and ask for help (again) but i couldnt figure it out myself. When trying to install hyprgraphics (dependency pulled in by hyprland) on my musl/llvm system, it fails becuase of 2 errors about std::span. Ive tried setting —std=c++17 because ive read online that this fixes it and —std=c++23 because why not. Both didnt change the outcome. My system is fully up to date. Iam running a standart llvm/musl profile with no changes to the toolchain. Here is the log: https://0x0.st/P1Dz.log. [/list]Ive tried installing multiple times but each time it didnt result in a change (i restarted too, why not :D ). Does anyone know how to fix it? I was assuming some kind of c++ version error/missmatch but ive pretty much ruled that out to my knowledge.
Last edited by Nima0908 on Tue Mar 03, 2026 11:16 pm, edited 1 time in total.
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Mar 03, 2026 9:40 pm

Do the affected source files #include <span> before referencing std::span?
Top
Nima0908
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Mon Feb 24, 2025 7:47 pm

  • Quote

Post by Nima0908 » Tue Mar 03, 2026 10:26 pm

Thank you for your answer. I indeed forgot to check it. It wasnt there, but after making a patch and applying it, not much changed:
https://0x0.st/P15f.log
Weirdly enough, the first error still talks about std::span exactly like before, but the second kinda changed :?
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2110
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

  • Quote

Post by GDH-gentoo » Tue Mar 03, 2026 10:39 pm

Try this fix and this other fix, which were made after the release of hyprgraphics 0.5.0.
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Mar 03, 2026 10:50 pm

Nima0908: if the patches suggested by GDH-gentoo do not help, please pastebin the patch(es) you are using, so that we can review them for correctness.
Top
Nima0908
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Mon Feb 24, 2025 7:47 pm

  • Quote

Post by Nima0908 » Tue Mar 03, 2026 11:14 pm

Thanks for all your answers. The patches indeed worked (took me some time because i forgot the a/ and b/ at the beginning which confused me for a sec).
Top
Post Reply

6 posts • Page 1 of 1

Return to “Unsupported Software”

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