util/meson.build: fix fdmon-io_uring build
PATCH 1/1 util/meson.build: fix fdmon-io_uring build
libqemuutil.a build fails with this error:
/usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in function `get_sqe':
qemu/build/../util/fdmon-io_uring.c:83: undefined reference to io_uring_get_sqe' /usr/bin/ld: qemu/build/../util/fdmon-io_uring.c:92: undefined reference to io_uring_submit' /usr/bin/ld: qemu/build/../util/fdmon-io_uring.c:96: undefined reference to io_uring_get_sqe' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in function fdmon_io_uring_wait':
qemu/build/../util/fdmon-io_uring.c:289: undefined reference to io_uring_submit_and_wait' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in function fdmon_io_uring_setup':
qemu/build/../util/fdmon-io_uring.c:328: undefined reference to io_uring_queue_init' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in function fdmon_io_uring_destroy':
qemu/build/../util/fdmon-io_uring.c:343: undefined reference to `io_uring_queue_exit'
collect2: error: ld returned 1 exit status
This patch fix the issue adding 'linux_io_uring' dependency for fdmon-io_uring.c
--- util/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
util/meson.build +1 -1
@@ -4,7 +4,7 @@ util_ss.add(when: 'CONFIG_ATOMIC64', if_false: files('atomic64.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('aio-posix.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('fdmon-poll.c')) util_ss.add(when: 'CONFIG_EPOLL_CREATE1', if_true: files('fdmon-epoll.c')) -util_ss.add(when: 'CONFIG_LINUX_IO_URING', if_true: files('fdmon-io_uring.c')) +util_ss.add(when: ['CONFIG_LINUX_IO_URING', linux_io_uring], if_true: files('fdmon-io_uring.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('compatfd.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('event_notifier-posix.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('mmap-alloc.c'))
Signature · 1 line
2.26.2
Hi Stefano,
Quoted 13 lines · Stefano Garzarella
libqemuutil.a build fails with this error:
/usr/bin/ld:libqemuutil.a(util_fdmon-io_uring.c.o): in function `get_sqe':
qemu/build/../util/fdmon-io_uring.c:83: undefined reference toio_uring_get_sqe' /usr/bin/ld: qemu/build/../util/fdmon-io_uring.c:92: undefined reference toio_uring_submit'/usr/bin/ld:qemu/build/../util/fdmon-io_uring.c:96: undefined reference toio_uring_get_sqe' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_wait':
qemu/build/../util/fdmon-io_uring.c:289: undefined reference toio_uring_submit_and_wait' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_setup':
qemu/build/../util/fdmon-io_uring.c:328: undefined reference toio_uring_queue_init' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_destroy':
qemu/build/../util/fdmon-io_uring.c:343: undefined reference to `io_uring_queue_exit'
collect2: error: ld returned 1 exit status
Can you add a gitlab job to reproduce this? (Or at least explain how to reproduce, so we add that job later). Thanks!
Quoted 25 lines
This patch fix the issue adding '
linux_io_uring' dependency forfdmon-io_uring.cFixes a81df1b68b ("libqemuutil, qapi, trace: convert to meson")Signed-off-by Stefano Garzarella <[email protected]>--- util/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)util/meson.build +1
-1@@ -4,7 +4,7 @@ util_ss.add(when: 'CONFIG_ATOMIC64', if_false: files('atomic64.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('aio-posix.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('fdmon-poll.c')) util_ss.add(when: 'CONFIG_EPOLL_CREATE1', if_true: files('fdmon-epoll.c')) -util_ss.add(when: 'CONFIG_LINUX_IO_URING', if_true: files('fdmon-io_uring.c')) +util_ss.add(when: ['CONFIG_LINUX_IO_URING', linux_io_uring], if_true: files('fdmon-io_uring.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('compatfd.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('event_notifier-posix.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('mmap-alloc.c'))
Quoted 17 lines · Philippe Mathieu-Daudé
Hi Stefano,
Quoted 13 lines · Stefano Garzarella
libqemuutil.a build fails with this error:
/usr/bin/ld:libqemuutil.a(util_fdmon-io_uring.c.o): in function `get_sqe':
qemu/build/../util/fdmon-io_uring.c:83: undefined reference toio_uring_get_sqe' /usr/bin/ld: qemu/build/../util/fdmon-io_uring.c:92: undefined reference toio_uring_submit'/usr/bin/ld:qemu/build/../util/fdmon-io_uring.c:96: undefined reference toio_uring_get_sqe' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_wait':
qemu/build/../util/fdmon-io_uring.c:289: undefined reference toio_uring_submit_and_wait' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_setup':
qemu/build/../util/fdmon-io_uring.c:328: undefined reference toio_uring_queue_init' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_destroy':
qemu/build/../util/fdmon-io_uring.c:343: undefined reference to `io_uring_queue_exit'
collect2: error: ld returned 1 exit status
Quoted 2 lines
Can you add a gitlab job to reproduce this? (Or at least explain how to reproduce, so we add that job later). Thanks!
I think the only prerequisite is to install 'liburing-devel' package (Fedora 32) on the build system, and then fdmon-io_uring.c will be built.
I'll try to add a gitlab job ;-)
Thanks,
Stefano
Quoted 27 lines
Quoted 26 lines
This patch fix the issue adding '
linux_io_uring' dependency forfdmon-io_uring.cFixes a81df1b68b ("libqemuutil, qapi, trace: convert to meson")Signed-off-by Stefano Garzarella <[email protected]>--- util/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)util/meson.build +1
-1@@ -4,7 +4,7 @@ util_ss.add(when: 'CONFIG_ATOMIC64', if_false: files('atomic64.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('aio-posix.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('fdmon-poll.c')) util_ss.add(when: 'CONFIG_EPOLL_CREATE1', if_true: files('fdmon-epoll.c')) -util_ss.add(when: 'CONFIG_LINUX_IO_URING', if_true: files('fdmon-io_uring.c')) +util_ss.add(when: ['CONFIG_LINUX_IO_URING', linux_io_uring], if_true: files('fdmon-io_uring.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('compatfd.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('event_notifier-posix.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('mmap-alloc.c'))
Quoted 18 lines · Stefano Garzarella
Quoted 17 lines · Philippe Mathieu-Daudé
Hi Stefano,
Quoted 13 lines · Stefano Garzarella
libqemuutil.a build fails with this error:
/usr/bin/ld:libqemuutil.a(util_fdmon-io_uring.c.o): in function `get_sqe':
qemu/build/../util/fdmon-io_uring.c:83: undefined reference toio_uring_get_sqe' /usr/bin/ld: qemu/build/../util/fdmon-io_uring.c:92: undefined reference toio_uring_submit'/usr/bin/ld:qemu/build/../util/fdmon-io_uring.c:96: undefined reference toio_uring_get_sqe' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_wait':
qemu/build/../util/fdmon-io_uring.c:289: undefined reference toio_uring_submit_and_wait' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_setup':
qemu/build/../util/fdmon-io_uring.c:328: undefined reference toio_uring_queue_init' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_destroy':
qemu/build/../util/fdmon-io_uring.c:343: undefined reference to `io_uring_queue_exit'
collect2: error: ld returned 1 exit status
Quoted 5 lines
Quoted 2 lines
Can you add a gitlab job to reproduce this? (Or at least explain how to reproduce, so we add that job later). Thanks!
I think the only prerequisite is to install 'liburing-devel' package (Fedora 32) on the build system, and then
fdmon-io_uring.cwill be built.
Oh easy then, simply add it to PACKAGES in
tests/docker/dockerfiles/fedora.docker :)
Quoted 34 lines
I'll try to add a gitlab job ;-)
Thanks,
StefanoQuoted 27 lines
Quoted 26 lines
This patch fix the issue adding '
linux_io_uring' dependency forfdmon-io_uring.cFixes a81df1b68b ("libqemuutil, qapi, trace: convert to meson")Signed-off-by Stefano Garzarella <[email protected]>--- util/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)util/meson.build +1
-1@@ -4,7 +4,7 @@ util_ss.add(when: 'CONFIG_ATOMIC64', if_false: files('atomic64.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('aio-posix.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('fdmon-poll.c')) util_ss.add(when: 'CONFIG_EPOLL_CREATE1', if_true: files('fdmon-epoll.c')) -util_ss.add(when: 'CONFIG_LINUX_IO_URING', if_true: files('fdmon-io_uring.c')) +util_ss.add(when: ['CONFIG_LINUX_IO_URING', linux_io_uring], if_true: files('fdmon-io_uring.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('compatfd.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('event_notifier-posix.c')) util_ss.add(when: 'CONFIG_POSIX', if_true: files('mmap-alloc.c'))
Quoted 19 lines · Philippe Mathieu-Daudé
Quoted 18 lines · Stefano Garzarella
Quoted 17 lines · Philippe Mathieu-Daudé
Hi Stefano,
Quoted 13 lines · Stefano Garzarella
libqemuutil.a build fails with this error:
/usr/bin/ld:libqemuutil.a(util_fdmon-io_uring.c.o): in function `get_sqe':
qemu/build/../util/fdmon-io_uring.c:83: undefined reference toio_uring_get_sqe' /usr/bin/ld: qemu/build/../util/fdmon-io_uring.c:92: undefined reference toio_uring_submit'/usr/bin/ld:qemu/build/../util/fdmon-io_uring.c:96: undefined reference toio_uring_get_sqe' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_wait':
qemu/build/../util/fdmon-io_uring.c:289: undefined reference toio_uring_submit_and_wait' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_setup':
qemu/build/../util/fdmon-io_uring.c:328: undefined reference toio_uring_queue_init' /usr/bin/ld: libqemuutil.a(util_fdmon-io_uring.c.o): in functionfdmon_io_uring_destroy':
qemu/build/../util/fdmon-io_uring.c:343: undefined reference to `io_uring_queue_exit'
collect2: error: ld returned 1 exit status
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Can you add a gitlab job to reproduce this? (Or at least explain how to reproduce, so we add that job later). Thanks!
I think the only prerequisite is to install 'liburing-devel' package (Fedora 32) on the build system, and then
fdmon-io_uring.cwill be built.Oh easy then, simply add it to PACKAGES in
tests/docker/dockerfiles/fedora.docker :)
Yeah, I just found it ;-)
I'll send a patch.
Thanks,
Stefano