[vim/vim] Linking fails intermittently due to missing wayland symbols (Issue #19419)

1 view
Skip to first unread message

Jan Palus

unread,
Feb 15, 2026, 4:52:41 PM (17 hours ago) Feb 15
to vim/vim, Subscribed
jpalus created an issue (vim/vim#19419)

Steps to reproduce

  1. Configure vim with wayland support preferably with --enable-wayland-focus-steal (enabled by default)
  2. Run build a number of time with high job count ie -j100

Sometimes build fails on missing symbols:

/usr/bin/ld: objects/wayland.o: in function `wl_registry_listener_event_global':
/home/users/jan/devel/vim/src/wayland.c:363:(.text+0xcaf): undefined reference to `zwp_primary_selection_device_manager_v1_interface'
/usr/bin/ld: objects/wayland.o: in function `zwp_primary_selection_device_manager_v1_get_device':
/home/users/jan/devel/vim/src/auto/wayland/primary-selection-unstable-v1.h:244:(.text+0x177d): undefined reference to `zwp_primary_selection_device_v1_interface'
/usr/bin/ld: objects/wayland.o: in function `zwp_primary_selection_device_manager_v1_create_source':
/home/users/jan/devel/vim/src/auto/wayland/primary-selection-unstable-v1.h:228:(.text+0x1895): undefined reference to `zwp_primary_selection_source_v1_interface'

which is caused by parallel run of 4 make instances, each generating same files, overwriting each other results which in turn leads to inconsistent outcome:

$ make -j100      
...
cd auto/wayland; make
cd auto/wayland; make
cd auto/wayland; make
cd auto/wayland; make
make[2]: Entering directory '/home/users/jan/devel/vim/src/auto/wayland'
wayland-scanner private-code protocols/ext-data-control-v1.xml ext-data-control-v1.c
wayland-scanner private-code protocols/primary-selection-unstable-v1.xml primary-selection-unstable-v1.c
make[2]: Entering directory '/home/users/jan/devel/vim/src/auto/wayland'
wayland-scanner private-code protocols/ext-data-control-v1.xml ext-data-control-v1.c
creating auto/pathdef.c
wayland-scanner private-code protocols/primary-selection-unstable-v1.xml primary-selection-unstable-v1.c
wayland-scanner private-code protocols/wlr-data-control-unstable-v1.xml wlr-data-control-unstable-v1.c
wayland-scanner private-code protocols/wlr-data-control-unstable-v1.xml wlr-data-control-unstable-v1.c
make[2]: Entering directory '/home/users/jan/devel/vim/src/auto/wayland'
wayland-scanner private-code protocols/ext-data-control-v1.xml ext-data-control-v1.c
wayland-scanner private-code protocols/xdg-shell.xml xdg-shell.c
wayland-scanner private-code protocols/xdg-shell.xml xdg-shell.c
wayland-scanner client-header protocols/ext-data-control-v1.xml ext-data-control-v1.h
wayland-scanner private-code protocols/xdg-shell.xml xdg-shell.c

Expected behaviour

All builds succeed.

Version of Vim

9.2.0

Environment

OS: PLD Linux
term: foot
$TERM: foot
zsh 5.9

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19419@github.com>

Reply all
Reply to author
Forward
0 new messages