Hi I recently got this error while building packages for hyprland:
"Found ninja-1.12.1 at /usr/bin/ninja WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated. ninja: Entering directory `build/' [121/423] Compiling C object examples/touch.p/touch.c.o FAILED: examples/touch.p/touch.c.o cc -Iexamples/touch.p -Iexamples -I../examples -Iinclude -I../include -Iprotocol -I../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 -O3 -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=../= -MD -MQ examples/touch.p/touch.c.o -MF examples/touch.p/touch.c.o.d -o examples/touch.p/touch.c.o -c ../examples/touch.c ../examples/touch.c: In function ‘new_input_notify’: ../examples/touch.c:223:60: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 223 | struct touch_state *tstate = calloc(sizeof(struct touch_state), 1); | ^~~~~~ ../examples/touch.c:223:60: note: earlier argument should specify number of elements, later size of each element cc1: all warnings being treated as errors [125/423] Compiling C object examples/tablet.p/tablet.c.o FAILED: examples/tablet.p/tablet.c.o cc -Iexamples/tablet.p -Iexamples -I../examples -Iinclude -I../include -Iprotocol -I../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 -O3 -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=../= -MD -MQ examples/tablet.p/tablet.c.o -MF examples/tablet.p/tablet.c.o.d -o examples/tablet.p/tablet.c.o -c ../examples/tablet.c ../examples/tablet.c: In function ‘new_input_notify’: ../examples/tablet.c:312:65: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 312 | struct tablet_pad_state *pstate = calloc(sizeof(struct tablet_pad_state), 1); | ^~~~~~ ../examples/tablet.c:312:65: note: earlier argument should specify number of elements, later size of each element ../examples/tablet.c:330:66: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 330 | struct tablet_tool_state *tstate = calloc(sizeof(struct tablet_tool_state), 1); | ^~~~~~ ../examples/tablet.c:330:66: note: earlier argument should specify number of elements, later size of each element cc1: all warnings being treated as errors [138/423] Compiling C object examples/keyboard-shortcuts-inhibit.p/keyboard-shortcuts-inhibit.c.o ninja: build stopped: subcommand failed. /home/atso/hyprland/PKGBUILD: line 62: cd: ./subprojects/udis86: No such file or directory make: *** No rule to make target 'protocols'. Stop. ERROR: A failure occurred in build(). Aborting"
Should I try changing for example change the line error ...calloc(sizeof(struct tablet_tool_state), 1); to ...calloc(1, sizeof(struct touch_state));?
#[SOLVED]Error during makepkg progress(Hyprland)
8 messages · Page 1 of 1 (latest)
@ripe fulcrum why not pacman -Syu 
Hi, will that fix it?
pacman -S hyprland
Alright I will try it thank you
killertofus received a thank you cookie!
you're welcome
[SOLVED]Error during makepkg progress(Hyprland)