Skip to content

Bootstrap Error:  #377

@ghost

Description

Describe the bug
Script bootstrap.sh fails with following error:

╭─wickedwizard3588@HP in ~/Documents/Games took 95ms
✦  ╰─λ git clone https://github.com/FeralInteractive/gamemode.git && cd gamemode && git checkout 1.7 && yay -S meson systemd git dbus libinih && ./bootstrap.sh
Cloning into 'gamemode'...
remote: Enumerating objects: 2964, done.
remote: Counting objects: 100% (248/248), done.
remote: Compressing objects: 100% (151/151), done.
remote: Total 2964 (delta 124), reused 173 (delta 84), pack-reused 2716
Receiving objects: 100% (2964/2964), 684.65 KiB | 2.04 MiB/s, done.
Resolving deltas: 100% (2080/2080), done.
Note: switching to '1.7'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 4dc99df Specify correct inih directory after update to r54
[sudo] password for wickedwizard3588: 
warning: meson-0.63.0-1 is up to date -- reinstalling
warning: systemd-251.3-1 is up to date -- reinstalling
warning: git-2.37.1-1 is up to date -- reinstalling
warning: dbus-1.14.0-1 is up to date -- reinstalling
warning: libinih-55-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (5)   Old Version  New Version  Net Change

core/dbus     1.14.0-1     1.14.0-1       0.00 MiB
extra/git     2.37.1-1     2.37.1-1       0.00 MiB
core/libinih  55-2         55-2           0.00 MiB
extra/meson   0.63.0-1     0.63.0-1       0.00 MiB
core/systemd  251.3-1      251.3-1        0.00 MiB

Total Installed Size:  70.77 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(5/5) checking keys in keyring                                                                          [#############################################################] 100%
(5/5) checking package integrity                                                                        [#############################################################] 100%
(5/5) loading package files                                                                             [#############################################################] 100%
(5/5) checking for file conflicts                                                                       [#############################################################] 100%
(5/5) checking available disk space                                                                     [#############################################################] 100%
:: Processing package changes...
(1/5) reinstalling meson                                                                                [#############################################################] 100%
(2/5) reinstalling dbus                                                                                 [#############################################################] 100%
(3/5) reinstalling systemd                                                                              [#############################################################] 100%
(4/5) reinstalling git                                                                                  [#############################################################] 100%
(5/5) reinstalling libinih                                                                              [#############################################################] 100%
:: Running post-transaction hooks...
( 1/11) Creating system user accounts...
( 2/11) Updating journal message catalog...
( 3/11) Reloading system manager configuration...
( 4/11) Updating udev hardware database...
( 5/11) Applying kernel sysctl settings...
( 6/11) Creating temporary files...
( 7/11) Reloading device manager configuration...
( 8/11) Arming ConditionNeedsUpdate...
( 9/11) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.18.16-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.18.16-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
(10/11) Refreshing PackageKit...
(11/11) Reloading system bus configuration...
+ meson builddir --prefix=/usr --buildtype debugoptimized -Dwith-systemd-user-unit-dir=/etc/systemd/user
The Meson build system
Version: 0.63.0
Source dir: /home/wickedwizard3588/Documents/Games/gamemode
Build dir: /home/wickedwizard3588/Documents/Games/gamemode/builddir
Build type: native build
Project name: gamemode
Project version: 1.7
C compiler for the host machine: cc (gcc 12.1.1 "cc (GCC) 12.1.1 20220730")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Waggregate-return: YES 
Compiler for C supports arguments -Wunused: YES 
Compiler for C supports arguments -Warray-bounds: YES 
Compiler for C supports arguments -Wcast-align: YES 
Compiler for C supports arguments -Wclobbered: YES 
Compiler for C supports arguments -Wempty-body: YES 
Compiler for C supports arguments -Wformat=2: YES 
Compiler for C supports arguments -Wformat-nonliteral: YES 
Compiler for C supports arguments -Wformat-signedness: YES 
Compiler for C supports arguments -Wignored-qualifiers: YES 
Compiler for C supports arguments -Wimplicit-function-declaration: YES 
Compiler for C supports arguments -Winit-self: YES 
Compiler for C supports arguments -Wmissing-format-attribute: YES 
Compiler for C supports arguments -Wmissing-include-dirs: YES 
Compiler for C supports arguments -Wmissing-noreturn: YES 
Compiler for C supports arguments -Wmissing-parameter-type: YES 
Compiler for C supports arguments -Wnested-externs: YES 
Compiler for C supports arguments -Wno-discarded-qualifiers: YES 
Compiler for C supports arguments -Wno-missing-field-initializers: YES 
Compiler for C supports arguments -Wno-suggest-attribute=format: YES 
Compiler for C supports arguments -Wno-unused-parameter: YES 
Compiler for C supports arguments -Wold-style-definition: YES 
Compiler for C supports arguments -Woverride-init: YES 
Compiler for C supports arguments -Wpointer-arith: YES 
Compiler for C supports arguments -Wredundant-decls: YES 
Compiler for C supports arguments -Wreturn-type: YES 
Compiler for C supports arguments -Wshadow: YES 
Compiler for C supports arguments -Wsign-compare: YES 
Compiler for C supports arguments -Wstrict-aliasing=3: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Compiler for C supports arguments -Wstringop-overflow: YES 
Compiler for C supports arguments -Wstringop-truncation: YES 
Compiler for C supports arguments -Wtype-limits: YES 
Compiler for C supports arguments -Wundef: YES 
Compiler for C supports arguments -Wuninitialized: YES 
Compiler for C supports arguments -Wunused-but-set-variable: YES 
Compiler for C supports arguments -Wwrite-strings: YES 
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency libsystemd found: YES 251
Run-time dependency dbus-1 found: YES 1.14.0
Run-time dependency threads found: YES
Library dl found: YES
Run-time dependency systemd found: YES 251
Checking for function "pidfd_open" : YES 
Configuring build-config.h using configuration
Run-time dependency inih found: YES 55
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 configuration:
    ====================

    prefix:                                 /usr
    bindir:                                 /usr/bin
    datadir:                                /usr/share
    libdir:                                 /usr/lib
    libexecdir:                             /usr/libexec
    includedir:                             /usr/include
    systemd user unit directory:            /etc/systemd/user
    D-BUS service directory:                /usr/share/dbus-1/services
    PolKit Action Directory:                /usr/share/polkit-1/actions

    Options:
    ========

    sd-bus provier:                         systemd
    examples:                               true
    util:                                   true


Build targets in project: 9

gamemode 1.7

  User defined options
    buildtype                 : debugoptimized
    prefix                    : /usr
    with-systemd-user-unit-dir: /etc/systemd/user

Found ninja-1.11.0 at /usr/bin/ninja
+ ninja -C builddir
ninja: Entering directory `builddir'
[6/32] Compiling C object common/libdaemon-common.a.p/common-pidfds.c.o
FAILED: common/libdaemon-common.a.p/common-pidfds.c.o 
cc -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 -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
[10/32] Compiling C object common/liblib-common.a.p/common-pidfds.c.o
FAILED: common/liblib-common.a.p/common-pidfds.c.o 
cc -Icommon/liblib-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 -fPIC -MD -MQ common/liblib-common.a.p/common-pidfds.c.o -MF common/liblib-common.a.p/common-pidfds.c.o.d -o common/liblib-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
[15/32] Compiling C object daemon/gamemoded.p/gamemoded.c.o
ninja: build stopped: subcommand failed.

To Reproduce
Steps used to reproduce the behavior:

  1. git clone https://github.com/FeralInteractive/gamemode.git && cd gamemode && git checkout 1.7 && yay -S meson systemd git dbus libinih && ./bootstrap.sh

Expected behavior
Expected Gamemode to compile and install

System Info (please complete the following information):

  • OS and version: Arch Linux
  • Kernel Version: 5.18.16-arch1-1
  • GameMode Version: Latest (1.7)

Additional context
Ran the command git clone https://github.com/FeralInteractive/gamemode.git && cd gamemode && git checkout 1.7 && yay -S meson systemd git dbus libinih && ./bootstrap.sh, but fails with Ninja saying

cc1: some warnings being treated as errors

with the same error

warning: nested extern declaration of ‘pidfd_open’ [-Wnested-externs]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions