EDIT: The cause was openvr-git
, I was able to build the package without problem with openvr
.
I'm getting this when trying to build:
ninja: Entering directory `build'
[391/408] Compiling C++ object layer/libVkLayer_FROG_gamescope_wsi_x86_64.so.p/VkLayer_FROG_gamescope_wsi.cpp.o
FAILED: layer/libVkLayer_FROG_gamescope_wsi_x86_64.so.p/VkLayer_FROG_gamescope_wsi.cpp.o
c++ -Ilayer/libVkLayer_FROG_gamescope_wsi_x86_64.so.p -Ilayer -I../layer -Iprotocol -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++20 -O3 -DWLR_USE_UNSTABLE -Wno-unused-parameter -Wno-missing-field-initializers -Wno-invalid-offsetof -Wno-unused-const-variable -Wno-volatile -Wno-ignored-qualifiers -Wno-missing-braces -ffast-math -DHAVE_PIPEWIRE=1 -DHAVE_OPENVR=1 '-DHWDATA_PNP_IDS="//usr/share/hwdata/pnp.ids"' -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -fPIC -MD -MQ layer/libVkLayer_FROG_gamescope_wsi_x86_64.so.p/VkLayer_FROG_gamescope_wsi.cpp.o -MF layer/libVkLayer_FROG_gamescope_wsi_x86_64.so.p/VkLayer_FROG_gamescope_wsi.cpp.o.d -o layer/libVkLayer_FROG_gamescope_wsi_x86_64.so.p/VkLayer_FROG_gamescope_wsi.cpp.o -c ../layer/VkLayer_FROG_gamescope_wsi.cpp
../layer/VkLayer_FROG_gamescope_wsi.cpp: In static member function ‘static void GamescopeWSILayer::VkInstanceOverrides::GetPhysicalDeviceFeatures2(const vkroots::VkInstanceDispatch*, VkPhysicalDevice, VkPhysicalDeviceFeatures2*)’:
../layer/VkLayer_FROG_gamescope_wsi.cpp:504:54: error: ‘FindInChainMutable’ is not a member of ‘vkroots’
504 | auto pSwapchainMaintenance1Features = vkroots::FindInChainMutable<VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SWAPCHAIN_MAINTENANCE_1_FEATURES_EXT, VkPhysicalDeviceSwapchainMaintenance1FeaturesEXT>(pFeatures);
| ^~~~~~~~~~~~~~~~~~
../layer/VkLayer_FROG_gamescope_wsi.cpp: In function ‘uint32_t GamescopeWSILayer::gamescopeFrameLimiterOverride()’:
../layer/VkLayer_FROG_gamescope_wsi.cpp:128:10: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off64_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
128 | pread(fd, &overrideValue, sizeof(overrideValue), 0);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[393/408] Compiling C++ object src/gamescope.p/vr_session.cpp.o
FAILED: src/gamescope.p/vr_session.cpp.o
c++ -Isrc/gamescope.p -Isrc -I../src -I../src/reshade/source -I../src/reshade/include -I../thirdparty/SPIRV-Headers/include/spirv/unified1 -Isubprojects/wlroots/include -I../subprojects/wlroots/include -I../subprojects/libliftoff/include -Isubprojects/stb -I../subprojects/stb -Iprotocol -I/usr/include/libdrm -I/usr/include/SDL2 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/openvr -flto=auto -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++20 -O3 -DWLR_USE_UNSTABLE -Wno-unused-parameter -Wno-missing-field-initializers -Wno-invalid-offsetof -Wno-unused-const-variable -Wno-volatile -Wno-ignored-qualifiers -Wno-missing-braces -ffast-math -DHAVE_PIPEWIRE=1 -DHAVE_OPENVR=1 '-DHWDATA_PNP_IDS="//usr/share/hwdata/pnp.ids"' -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -fPIE -isystem/usr/include/libdrm -D_REENTRANT -pthread -MD -MQ src/gamescope.p/vr_session.cpp.o -MF src/gamescope.p/vr_session.cpp.o.d -o src/gamescope.p/vr_session.cpp.o -c ../src/vr_session.cpp
../src/vr_session.cpp:119:26: error: ‘const vr::VROverlayFlags vr::VROverlayFlags_EnableControlBar’ redeclared as different kind of entity
119 | const VROverlayFlags VROverlayFlags_EnableControlBar = (VROverlayFlags)(1 << 23);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../src/vr_session.hpp:10,
from ../src/vr_session.cpp:1:
/usr/include/openvr/openvr.h:3889:17: note: previous declaration ‘vr::VROverlayFlags vr::VROverlayFlags_EnableControlBar’
3889 | VROverlayFlags_EnableControlBar = 1 << 23,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/vr_session.cpp:120:26: error: ‘const vr::VROverlayFlags vr::VROverlayFlags_EnableControlBarKeyboard’ redeclared as different kind of entity
120 | const VROverlayFlags VROverlayFlags_EnableControlBarKeyboard = (VROverlayFlags)(1 << 24);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openvr/openvr.h:3892:17: note: previous declaration ‘vr::VROverlayFlags vr::VROverlayFlags_EnableControlBarKeyboard’
3892 | VROverlayFlags_EnableControlBarKeyboard = 1 << 24,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/vr_session.cpp:121:26: error: ‘const vr::VROverlayFlags vr::VROverlayFlags_EnableControlBarClose’ redeclared as different kind of entity
121 | const VROverlayFlags VROverlayFlags_EnableControlBarClose = (VROverlayFlags)(1 << 25);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openvr/openvr.h:3898:17: note: previous declaration ‘vr::VROverlayFlags vr::VROverlayFlags_EnableControlBarClose’
3898 | VROverlayFlags_EnableControlBarClose = 1 << 25,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[406/408] Compiling C++ object src/gamescope.p/steamcompmgr.cpp.o
../src/steamcompmgr.cpp: In function ‘bool set_color_3dlut_override(const char*)’:
../src/steamcompmgr.cpp:585:14: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
585 | fread(g_ColorMgmtLutsOverride[nLutIndex].lut3d, elems, sizeof(uint16_t), f);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/steamcompmgr.cpp: In function ‘bool set_color_shaperlut_override(const char*)’:
../src/steamcompmgr.cpp:612:14: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
612 | fread(g_ColorMgmtLutsOverride[nLutIndex].lut1d, elems, sizeof(uint16_t), f);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/steamcompmgr.cpp: In function ‘void update_runtime_info()’:
../src/steamcompmgr.cpp:5208:15: warning: ignoring return value of ‘ssize_t pwrite(int, const void*, size_t, __off64_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5208 | pwrite( g_nRuntimeInfoFd, &limiter_enabled, sizeof( limiter_enabled ), 0 );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/steamcompmgr.cpp: In function ‘void spawn_client(char**)’:
../src/steamcompmgr.cpp:6710:29: warning: ignoring return value of ‘int nice(int)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6710 | nice( g_nOldNice - g_nNewNice );
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/steamcompmgr.cpp: In function ‘void determine_and_apply_focus(xwayland_ctx_t*, std::vector<steamcompmgr_win_t*>&)’:
../src/steamcompmgr.cpp:3687:31: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
3687 | system( buf );
| ~~~~~~^~~~~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'gamescope-git-3.12.0.beta8.r13.g1b9b736-1':
error: packages failed to build: gamescope-git-3.12.0.beta8.r13.g1b9b736-1
I'm using paru as my AUR helper to build the package.
Is this a problem with my system or the package, please let me know how I can go about fixing the problem and get the package to installed. Thank you.
Pinned Comments
Scrumplex commented on 2022-06-14 10:44 (UTC)
Please do not flag this package as out-of-date if it still builds fine and isn't missing any dependencies or anything