I pushed a fix to build the package cleanly again.
However I'm going to disown this package: the lack of nvidia support in wlroots means I can't realistically use it.
| Git Clone URL: | https://aur.archlinux.org/river-git.git (read-only, click to copy) |
|---|---|
| Package Base: | river-git |
| Description: | A dynamic tiling wayland compositor |
| Upstream URL: | https://codeberg.org/river/river |
| Keywords: | river Tiling Wayland window-manager |
| Licenses: | GPL-3.0-only |
| Conflicts: | river, river-classic |
| Provides: | river, wayland-compositor |
| Submitter: | ifreund |
| Maintainer: | xiota |
| Last Packager: | xiota |
| Votes: | 20 |
| Popularity: | 0.031145 |
| First Submitted: | 2020-04-21 11:52 (UTC) |
| Last Updated: | 2026-07-13 19:16 (UTC) |
I pushed a fix to build the package cleanly again.
However I'm going to disown this package: the lack of nvidia support in wlroots means I can't realistically use it.
This package still fails to build even with the patch. Might be because of this https://github.com/ifreund/river/issues/270#issuecomment-829324655
Same error as euclio, are you sure the dependencies are right? More importantly, could you fix this package? (see also: https://github.com/ifreund/river/issues/270)
I am getting build failures because the cc invoked by zig-wayland is unable to find wayland-util.h in /usr/include. Using --verbose-cc it looks like the underlying C compiler is getting -nostdinc but /usr/include is not passed as an include directory.
LLVM Emit Output... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-shell-protocol.c:33:10: fatal error: 'wayland-util.h' file not found
error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-gestures-unstable-v1-protocol.c:5:10: fatal error: 'wayland-util.h' file not found
Compile C Objects [2/9] pointer-gestures-unstable-v1-protocol.c... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-output-unstable-v1-protocol.c:28:10: fatal error: 'wayland-util.h' file not found
error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-constraints-unstable-v1-protocol.c:29:10: fatal error: 'wayland-util.h' file not found
Compile C Objects [4/9] pointer-constraints-unstable-v1-protocol.c... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-control-unstable-v1-protocol.c:21:10: fatal error: 'wayland-util.h' file not found
error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-status-unstable-v1-protocol.c:21:10: fatal error: 'wayland-util.h' file not found
Compile C Objects [6/9] river-status-unstable-v1-protocol.c... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-layout-v2-protocol.c:21:10: fatal error: 'wayland-util.h' file not found
error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-layer-shell-unstable-v1-protocol.c:30:10: fatal error: 'wayland-util.h' file not found
Compile C Objects [8/9] wlr-layer-shell-unstable-v1-protocol.c... error(compilation): clang failed with stderr: /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-output-power-management-unstable-v1-protocol.c:28:10: fatal error: 'wayland-util.h' file not found
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-shell-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-gestures-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-output-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-constraints-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-control-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-status-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-layout-v2-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-layer-shell-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-output-power-management-unstable-v1-protocol.c:1:1: error: unable to build C object: clang exited with code 1
rivertile...The following command exited with error code 1:
/usr/bin/zig build-exe /home/euclio/.local/share/aur/river-git/src/river/rivertile/main.zig --library c --library wayland-client -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-shell-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-gestures-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/xdg-output-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/pointer-constraints-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-control-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-status-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/river-layout-v2-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-layer-shell-unstable-v1-protocol.c -cflags -std=c99 -- /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wlr-output-power-management-unstable-v1-protocol.c -OReleaseSafe --cache-dir /home/euclio/.local/share/aur/river-git/src/river/zig-cache --global-cache-dir /home/euclio/.cache/zig --name rivertile -target x86_64-linux-gnu --pkg-begin wayland /home/euclio/.local/share/aur/river-git/src/river/zig-cache/zig-wayland/wayland.zig --pkg-end --enable-cache
error: the following build command failed with exit code 1:
/home/euclio/.local/share/aur/river-git/src/river/zig-cache/o/dbe8cad39980afdc53d61155296a04dd/build /usr/bin/zig /home/euclio/.local/share/aur/river-git/src/river /home/euclio/.local/share/aur/river-git/src/river/zig-cache /home/euclio/.cache/zig --search-prefix /usr -Dtarget=x86_64-linux-gnu -Drelease-safe -Dxwayland -Dman-pages
Can you please make it work for aarch64 again? It was compiling fine before the last change and it seems it has some issue with wlroots (or maybe the wrapper) because it gives me an error, after I changed all the places with x86_64 to aarch64 in the PKGBUILD and tried to compile it:
ld.lld: error: undefined symbol: wlr_xdg_surface_for_each_popup_surface
>>> referenced by xdg_shell.zig:330 (/home/dwolf/river-git/src/river/deps/zig-wlroots/src/types/xdg_shell.zig:330)
Edit: I saw that you have updated it for wlroots 0.13 in the git repository. My bad.
Ok, zig builds as of today with glib 2.32, but Arch has glib 2.33 which is causing build errors... just to clarify for anyone else though.
The work around is:
1)run the terminal command first: zig libc > libc-paths
2) using your favorite text editor (nvim for me): find ".linkLibC()" instances ( i think there are three) and underneath append the line for .setLibCFile("libc-paths") in file 'build.zig'
example:
found --> riverctl.linkLibC();
insert next line --> riverctl.setLibCFile("libc-paths");
Agian I believe there are three instances, save and then run the build per instructions
Thanks, this workaround has resolved the build failure in Arch, and I have successfully built and run River
I tried to build from wlroots today (2021-03-3) from the official Arch repo, got a similar build error that was being reported from before when it was a git master issue.
As explained here on my issue tracker, river requires wlroots 0.12.0. wlroots master will not work.
Currently gives a build error:
ld.lld: error: undefined symbol: wlr_xdg_surface_for_each_popup
referenced by xdg_shell.zig:325 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/xdg_shell.zig:325) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93) referenced by xdg_shell.zig:325 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/xdg_shell.zig:325) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93)
ld.lld: error: undefined symbol: wlr_layer_surface_v1_for_each_popup
referenced by layer_shell_v1.zig:123 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/layer_shell_v1.zig:123) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93) referenced by layer_shell_v1.zig:123 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/layer_shell_v1.zig:123) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93) referenced by layer_shell_v1.zig:123 (/home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/types/layer_shell_v1.zig:123) /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/06747dfd811f122a68c1434333179a20/river.o:(.wayland.wayland_server_core.struct:461:17.wrapper.93) referenced 1 more times error: LLDReportedFailure river...The following command exited with error code 1: /usr/bin/zig build-exe /home/ekollof/.cache/yay/river-git/src/river/river/main.zig --library c --library evdev --library wayland-server --library xkbcommon --library pixman-1 --library wlroots -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/xdg-shell-protocol.c -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/river-control-unstable-v1-protocol.c -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/river-status-unstable-v1-protocol.c -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/wlr-layer-shell-unstable-v1-protocol.c -cflags -std=c99 -- /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/wlr-output-power-management-unstable-v1-protocol.c --pkg-begin build_options /home/ekollof/.cache/yay/river-git/src/river/zig-cache/river_build_options.zig --pkg-end -OReleaseSafe --cache-dir /home/ekollof/.cache/yay/river-git/src/river/zig-cache --global-cache-dir /home/ekollof/.cache/zig --name river --pkg-begin wayland /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/wayland.zig --pkg-end --pkg-begin xkbcommon /home/ekollof/.cache/yay/river-git/src/river/deps/zig-xkbcommon/src/xkbcommon.zig --pkg-end --pkg-begin pixman /home/ekollof/.cache/yay/river-git/src/river/deps/zig-pixman/pixman.zig --pkg-end --pkg-begin wlroots /home/ekollof/.cache/yay/river-git/src/river/deps/zig-wlroots/src/wlroots.zig --pkg-begin wayland /home/ekollof/.cache/yay/river-git/src/river/zig-cache/zig-wayland/wayland.zig --pkg-end --pkg-begin xkbcommon /home/ekollof/.cache/yay/river-git/src/river/deps/zig-xkbcommon/src/xkbcommon.zig --pkg-end --pkg-begin pixman /home/ekollof/.cache/yay/river-git/src/river/deps/zig-pixman/pixman.zig --pkg-end --pkg-end -I /usr/include/libevdev-1.0 -I /usr/include/pixman-1 -I /usr/include/libdrm -I /usr/include/pixman-1 -I /usr/include/uuid --enable-cache error: the following build command failed with exit code 1: /home/ekollof/.cache/yay/river-git/src/river/zig-cache/o/5ea24304caa68294e730363f491c2640/build /usr/bin/zig /home/ekollof/.cache/yay/river-git/src/river /home/ekollof/.cache/yay/river-git/src/river/zig-cache /home/ekollof/.cache/zig -Drelease-safe -Dxwayland -Dman-pages
So is this package still orphaned?
no.
Pinned Comments