Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Fails on wlroots subproject #2

Open
th3raid0r opened this issue Jun 24, 2024 · 1 comment
Open

Build Fails on wlroots subproject #2

th3raid0r opened this issue Jun 24, 2024 · 1 comment

Comments

@th3raid0r
Copy link

[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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant