Closed nobbysheep closed 1 year ago
Seems to be typo in 1.7 so swapped to master and build worked. Managed to install but test run (using gamemoded -t) seems to fail;
gamemode request succeeded and is active Quitting by request... : Loading config Loading config file [/usr/share/gamemode/gamemode.ini] : Running tests
:: Basic client tests :: Passed
:: Dual client tests :: Passed
:: Gamemoderun and reaper thread tests : Loading config Loading config file [/usr/share/gamemode/gamemode.ini] : Running tests
:: Basic client tests :: Passed
:: Dual client tests :: Passed
:: Gamemoderun and reaper thread tests ...Waiting for child to quit... ...Waiting for reaper thread (reaper_frequency set to 5 seconds)... :: Supervisor tests :: Passed
: Client tests failed, skipping feature tests : Tests Failed!
NOTE ; might be worth updating documentation referencing ver 1.7
For me, using Meson 1.0.0 got past this when building the master. May work for you as well.
I have fixed the issue by changing line 29 in bootstrap.sh to:
before running the script
Thanks - I've actually switched from Clearlinux to EnveavourOS which is pretty much as performant but not saddled with having to jump through hoops to get software working. If I swap back I'll be sure to try this out. Thanks again
Describe the bug As I can't find any other way to install I'm following the documented approach for building from source however when I run the build fails. Here's the output;
./bootstrap.sh warning: unable to rmdir 'subprojects/inih': Directory not empty Previous HEAD position was d58c59c Update version to 1.5 HEAD is now at 4dc99df Specify correct inih directory after update to r54
Executing subproject inih
inih| Project name: inih inih| Project version: undefined inih| C compiler for the host machine: gcc (gcc 12.2.1 "gcc (Clear Linux OS for Intel Architecture) 12.2.1 20221215 releases/gcc-12.2.0-290-g7525c9d7e7") inih| C linker for the host machine: gcc ld.bfd 2.39.0 inih| C++ compiler for the host machine: g++ (gcc 12.2.1 "g++ (Clear Linux OS for Intel Architecture) 12.2.1 20221215 releases/gcc-12.2.0-290-g7525c9d7e7") inih| C++ linker for the host machine: g++ ld.bfd 2.39.0 inih| Build targets in project: 9 inih| Subproject inih finished.
Dependency inih from subproject subprojects/inih-r54 found: YES undefined Configuring gamemoded.service using configuration Configuring com.feralinteractive.GameMode.service using configuration Configuring com.feralinteractive.GameMode.policy using configuration Configuring gamemoded.8 using configuration Configuring gamemoderun.1 using configuration Configuring gamemodelist.1 using configuration Configuring gamemode-simulate-game.1 using configuration Program appstreamcli found: YES (/usr/bin/appstreamcli) Message:
Build targets in project: 11
gamemode 1.7
Subprojects inih : YES
User defined options buildtype : debugoptimized prefix : /usr with-systemd-user-unit-dir: /etc/systemd/user
Found ninja-1.11.1 at /usr/bin/ninja WARNING: Running the setup command as
meson [options]
instead ofmeson setup [options]
is ambiguous and deprecated.~~~~~ | fdopen ../common/common-pidfds.c:70:26: warning: nested extern declaration of ‘pidfd_open’ [-Wnested-externs] cc1: some warnings being treated as errors [10/37] Compiling C object common/libdaemon-common.a.p/common-pidfds.c.o FAILED: common/libdaemon-common.a.p/common-pidfds.c.o gcc -Icommon/libdaemon-common.a.p -Icommon -I../common -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Wpedantic -std=c11 -O2 -g -fstack-protector -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wformat-security -Werror=format-security -Wconversion -Wunreachable-code -Waggregate-return -Wunused -Warray-bounds -Wcast-align -Wclobbered -Wempty-body -Wformat=2 -Wformat-nonliteral -Wformat-signedness -Wignored-qualifiers -Wimplicit-function-declaration -Winit-self -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-parameter-type -Wnested-externs -Wno-discarded-qualifiers -Wno-missing-field-initializers -Wno-suggest-attribute=format -Wno-unused-parameter -Wold-style-definition -Woverride-init -Wpointer-arith -Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing=3 -Wstrict-prototypes -Wstringop-overflow -Wstringop-truncation -Wtype-limits -Wundef -Wuninitialized -Wunused-but-set-variable -Wwrite-strings -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z,now -Wl,-z,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -mrelax-cmpxchg-loop -fPIC -MD -MQ common/libdaemon-common.a.p/common-pidfds.c.o -MF common/libdaemon-common.a.p/common-pidfds.c.o.d -o common/libdaemon-common.a.p/common-pidfds.c.o -c ../common/common-pidfds.c ../common/common-pidfds.c: In function ‘open_pidfds’: ../common/common-pidfds.c:70:26: error: implicit declaration of function ‘pidfd_open’; did you mean ‘fdopen’? [-Werror=implicit-function-declaration] 70 | int fd = pidfd_open(pid, 0); | ^~~~~~ | fdopen ../common/common-pidfds.c:70:26: warning: nested extern declaration of ‘pidfd_open’ [-Wnested-externs] cc1: some warnings being treated as errors [18/37] Compiling C++ object subprojects/inih-r54/libINIReader.so.0.p/cpp_INIReader.cpp.o ninja: build stopped: subcommand failed.Not too sure what's wrong / missing
Expected behavior Build should not fail
System Info (please complete the following information):
Additional context I believe i've installed all of the required packages but new to clear linux so may have missed something very obvious