swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.73k stars 1.11k forks source link

Build breakage #8471

Closed J0nnyMak0 closed 2 days ago

J0nnyMak0 commented 3 days ago

With latest sources:

ninja: Entering directory `build'
[207/666] Compiling C object sway/sway.p/ipc-json.c.o
FAILED: sway/sway.p/ipc-json.c.o
cc -Isway/sway.p -Isway -I../sway -Iinclude -I../include -Isubprojects/wlroots/include -I../subprojects/wlroots/include -Iprotocols -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/json-c -I/usr/include/libevdev-1.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O0 -g -DWLR_USE_UNSTABLE -D_POSIX_C_SOURCE=200809L -Wno-unused-parameter -Wno-unused-result -Wno-missing-braces -Wno-format-zero-length -Wundef -Wvla '-DSYSCONFDIR="//usr/local/etc"' '-DSWAY_VERSION="1.10-dev-53123760 (" __DATE__ ", branch '"'"'master'"'"')"' -fmacro-prefix-map=../= -pthread -MD -MQ sway/sway.p/ipc-json.c.o -MF sway/sway.p/ipc-json.c.o.d -o sway/sway.p/ipc-json.c.o -c ../sway/ipc-json.c
../sway/ipc-json.c: In function ‘describe_libinput_device’:
../sway/ipc-json.c:927:17: error: enumeration value ‘LIBINPUT_CONFIG_DRAG_LOCK_ENABLED_STICKY’ not handled in switch [-Werror=switch]
  927 |                 switch (libinput_device_config_tap_get_drag_lock_enabled(device)) {
      |                 ^~~~~~
cc1: all warnings being treated as errors
[224/666] Compiling C object subprojects/wlroots/libwlroots-0.19.so.p/meson-generated_.._protocol_wlr-layer-shell-unstable-v1-protocol.c.o
ninja: build stopped: subcommand failed.
max-moser commented 3 days ago

What worked for me is to not treat warnings as errors: meson configure -Dwerror=false

For subprojects, you can set it e.g. via meson configure -Dwlroots:werror=false

GreyXor commented 3 days ago

https://github.com/swaywm/sway/pull/8470

vyivel commented 2 days ago

Fixed by https://github.com/swaywm/sway/pull/8470.