hhd-dev / handheld-gamescope

Up to date gamescope build files for Arch with patches for the Legion Go and ROG Ally.
1 stars 0 forks source link

Build Fails on wlroots subproject #2

Open th3raid0r opened 4 weeks ago

th3raid0r commented 4 weeks ago
[4/195] Compiling C object subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o
FAILED: subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o 
cc -Isubprojects/wlroots/libwlroots.a.p -Isubprojects/wlroots -I../gamescope/subprojects/wlroots -Isubprojects/wlroots/include -I../gamescope/subprojects/wlroots/include -Isubprojects/wlroots/protocol -I/usr/include/libdrm -I/usr/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -DWLR_USE_UNSTABLE -DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Walloca -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter -fmacro-prefix-map=../gamescope/subprojects/wlroots/= -fPIC -MD -MQ subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o -MF subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o.d -o subprojects/wlroots/libwlroots.a.p/backend_libinput_tablet_pad.c.o -c ../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c: In function ‘add_pad_group_from_libinput’:
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:36:38: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
   36 |         group->rings = calloc(sizeof(unsigned int), group->ring_count);
      |                                      ^~~~~~~~
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:36:38: note: earlier argument should specify number of elements, later size of each element
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:53:39: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
   53 |         group->strips = calloc(sizeof(unsigned int), group->strip_count);
      |                                       ^~~~~~~~
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:53:39: note: earlier argument should specify number of elements, later size of each element
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:69:40: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
   69 |         group->buttons = calloc(sizeof(unsigned int), group->button_count);
      |                                        ^~~~~~~~
../gamescope/subprojects/wlroots/backend/libinput/tablet_pad.c:69:40: note: earlier argument should specify number of elements, later size of each element
cc1: all warnings being treated as errors
[21/195] Compiling C object subprojects/wlroots/libwlroots.a.p/types_wlr_cursor.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
th3raid0r commented 4 weeks ago

Update:

Rolling back libliftoff to 0.4.1 and re-cloning the repo resolved this. However, this PKGBUILD still tries to fetch the latest libliftoff.