hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

Building on Gentoo started failing #237

Closed Illecors closed 2 months ago

Illecors commented 2 months ago

I'm attaching a build log, item [20/33] is the first one I noticed portage having an issue with.

[20/33] /usr/bin/x86_64-pc-linux-gnu-g++  -I/var/tmp/portage/gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1/work/xdg-desktop-portal-hyprland-1.3.2/. -I/var/tmp/portage/gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1/work/xdg-desktop-portal-hyprland-1.3.2/protocols -isystem /usr/lib64/libffi/include -isystem /usr/include/pipewire-0.3 -isystem /usr/include/spa-0.2 -isystem /usr/include/libdrm  -march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O3 -pipe -fomit-frame-pointer -std=gnu++23 -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -fpermissive -Wno-address-of-temporary -D_REENTRANT -MD -MT CMakeFiles/xdg-desktop-portal-hyprland.dir/src/shared/ScreencopyShared.cpp.o -MF CMakeFiles/xdg-desktop-portal-hyprland.dir/src/shared/ScreencopyShared.cpp.o.d -o CMakeFiles/xdg-desktop-portal-hyprland.dir/src/shared/ScreencopyShared.cpp.o -c /var/tmp/portage/gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1/work/xdg-desktop-portal-hyprland-1.3.2/src/shared/ScreencopyShared.cpp
ESC[31mFAILED: ESC[0mCMakeFiles/xdg-desktop-portal-hyprland.dir/src/shared/ScreencopyShared.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++  -I/var/tmp/portage/gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1/work/xdg-desktop-portal-hyprland-1.3.2/. -I/var/tmp/portage/gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1/work/xdg-desktop-portal-hyprland-1.3.2/protocols -isystem /usr/lib64/libffi/include -isystem /usr/include/pipewire-0.3 -isystem /usr/include/spa-0.2 -isystem /usr/include/libdrm  -march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720 -O3 -pipe -fomit-frame-pointer -std=gnu++23 -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -fpermissive -Wno-address-of-temporary -D_REENTRANT -MD -MT CMakeFiles/xdg-desktop-portal-hyprland.dir/src/shared/ScreencopyShared.cpp.o -MF CMakeFiles/xdg-desktop-portal-hyprland.dir/src/shared/ScreencopyShared.cpp.o.d -o CMakeFiles/xdg-desktop-portal-hyprland.dir/src/shared/ScreencopyShared.cpp.o -c /var/tmp/portage/gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1/work/xdg-desktop-portal-hyprland-1.3.2/src/shared/ScreencopyShared.cpp
In file included from /var/tmp/portage/gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1/work/xdg-desktop-portal-hyprland-1.3.2/src/shared/ScreencopyShared.hpp:13,
                 from /var/tmp/portage/gui-libs/xdg-desktop-portal-hyprland-1.3.2-r1/work/xdg-desktop-portal-hyprland-1.3.2/src/shared/ScreencopyShared.cpp:1:
/usr/include/spa-0.2/spa/pod/dynamic.h: In function ‘void spa_pod_dynamic_builder_init(spa_pod_dynamic_builder*, void*, uint32_t, uint32_t)’:
/usr/include/spa-0.2/spa/pod/dynamic.h:45:17: error: either all initializer clauses should be designated or none of them should be
   45 |                 .overflow = spa_pod_dynamic_builder_overflow
      |                 ^
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-address-of-temporary’ may have been intended to silence earlier diagnostics
Illecors commented 2 months ago

build.log

vaxerski commented 2 months ago

https://github.com/hyprwm/xdg-desktop-portal-hyprland/commit/c5b30938710d6c599f3f5cd99a3ffac35381fb0f

Requires pw>=1.1.82

Illecors commented 2 months ago

For anyone stumbling over this - pw is pipewire.