ivshmem-server: ivshmem-client: Build when eventfd() is available
PATCH v3 1/1 ivshmem-server: ivshmem-client: Build when eventfd() is available
Currently ivshmem requires eventfd() which is Linux specific. Do not and build it unconditionally on every Linux/BSD/Solaris.
This patch indirectly fixes build failure on NetBSD, where these tools additionally require -lrt for shm_open(3). In future there should be added support for NetBSD and the linking addressed appropriately.
--- configure | 2 ++ contrib/ivshmem-client/Makefile.objs | 2 +- contrib/ivshmem-server/Makefile.objs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-)
configure +2 -0
@@ -4928,6 +4928,8 @@ if test "$want_tools" = "yes" ; then tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools" if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then tools="qemu-nbd\$(EXESUF) $tools" + fi + if [ "$eventfd" = "yes" ]; then tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools" fi fi
contrib/ivshmem-client/Makefile.objs +1 -1
@@ -1 +1 @@ -ivshmem-client-obj-y = ivshmem-client.o main.o +ivshmem-client-obj-$(CONFIG_IVSHMEM) = ivshmem-client.o main.o
contrib/ivshmem-server/Makefile.objs +1 -1
@@ -1 +1 @@ -ivshmem-server-obj-y = ivshmem-server.o main.o +ivshmem-server-obj-$(CONFIG_IVSHMEM) = ivshmem-server.o main.o
Signature · 1 line
2.13.0
Michael Tokarev
AppliedQuoted 6 lines · Kamil Rytarowski
Currently ivshmem requires
eventfd()which is Linux specific. Do not and build it unconditionally on every Linux/BSD/Solaris.This patch indirectly fixes build failure on NetBSD, where these tools additionally require -lrt for
shm_open(3). In future there should be added support for NetBSD and the linking addressed appropriately.
Applied to -trivial, thanks!
/mjt
Quoted 6 lines · Kamil Rytarowski
Currently ivshmem requires
eventfd()which is Linux specific. Do not and build it unconditionally on every Linux/BSD/Solaris.This patch indirectly fixes build failure on NetBSD, where these tools additionally require -lrt for
shm_open(3). In future there should be added support for NetBSD and the linking addressed appropriately.
Unfortunately this breaks static build.
$ ../configure --disable-system --disable-linux-user --static $ make V=1 ... c++ -I/usr/include/pixman-1 -Werror -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/libpng16 -I/build/qemu/git/tests -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g -Wl,--warn-common -m64 -static -g -o ivshmem-server libqemuutil.a libqemustub.a -lm -lgthread-2.0 -pthread -lglib-2.0 -pthread -lpcre -pthread -lz -lrt -lz -lnettle -lutil /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crt1.o: In function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status Makefile:475: error building «ivshmem-server» $ _
I'll take a look at this later. reverting it for now.
Thanks,
/mjt
Quoted 23 lines · Michael Tokarev
Quoted 6 lines · Kamil Rytarowski
Currently ivshmem requires
eventfd()which is Linux specific. Do not and build it unconditionally on every Linux/BSD/Solaris.This patch indirectly fixes build failure on NetBSD, where these tools additionally require -lrt for
shm_open(3). In future there should be added support for NetBSD and the linking addressed appropriately.Unfortunately this breaks static build.
$ ../configure --disable-system --disable-linux-user --static $ make V=1 ... c++ -I/usr/include/pixman-1 -Werror -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -m64 -mcx16 -D_GNU_SOURCE(quoted diff) +0
-4-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/libpng16 -I/build/qemu/git/tests -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g -Wl,--warn-common -m64 -static -g -o ivshmem-serverlibqemuutil.a libqemustub.a -lm -lgthread-2.0 -pthread -lglib-2.0 -pthread -lpcre -pthread -lz -lrt -lz -lnettle -lutil
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
Makefile:475: error building «ivshmem-server»
Quoted 8 lines
$ _I'll take a look at this later. reverting it for now.
Thanks,
/mjt
I will try to reproduce it locally.
Quoted 26 lines · Kamil Rytarowski
Quoted 25 lines · Michael Tokarev
Quoted 6 lines · Kamil Rytarowski
Currently ivshmem requires
eventfd()which is Linux specific. Do not and build it unconditionally on every Linux/BSD/Solaris.This patch indirectly fixes build failure on NetBSD, where these tools additionally require -lrt for
shm_open(3). In future there should be added support for NetBSD and the linking addressed appropriately.Unfortunately this breaks static build.
$ ../configure --disable-system --disable-linux-user --static $ make V=1 ... c++ -I/usr/include/pixman-1 -Werror -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -m64 -mcx16 -D_GNU_SOURCE(quoted diff) +0
-4-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/libpng16 -I/build/qemu/git/tests -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g -Wl,--warn-common -m64 -static -g -o ivshmem-serverlibqemuutil.a libqemustub.a -lm -lgthread-2.0 -pthread -lglib-2.0 -pthread -lpcre -pthread -lz -lrt -lz -lnettle -lutil
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
Makefile:475: error building «ivshmem-server»$ _
Quoted 8 lines
Quoted 6 lines
I'll take a look at this later. reverting it for now.
Thanks,
/mjt
I will try to reproduce it locally.
I haven't, but here's a quick guess on what we need to squash into the patch:
Makefile +2 -0
@@ -469,10 +469,12 @@ ifneq ($(EXESUF),) qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI) endif +ifdef CONFIG_IVSHMEM ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMMON_LDADDS) $(call LINK, $^) ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS) $(call LINK, $^) +endif module_block.h: $(SRC_PATH)/scripts/modules/module_block.py config-host.mak $(call quiet-command,$(PYTHON) $< $@ \
tests/Makefile.include +1 -1
@@ -203,7 +203,7 @@ gcov-files-pci-y += hw/display/virtio-gpu-pci.c gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c check-qtest-pci-y += tests/intel-hda-test$(EXESUF) gcov-files-pci-y += hw/audio/intel-hda.c hw/audio/hda-codec.c -check-qtest-pci-$(CONFIG_EVENTFD) += tests/ivshmem-test$(EXESUF) +check-qtest-pci-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF) gcov-files-pci-y += hw/misc/ivshmem.c check-qtest-i386-y = tests/endianness-test$(EXESUF)
06.06.2017 09:54, Markus Armbruster wrote:
[ ./configure --disable-linux-user --disable-system --static ]
Quoted 8 lines
I haven't, but here's a quick guess on what we need to squash into the patch:
Makefile +0
-0
Makefile ifneq ($(EXESUF),) · line 477
Quoted 9 lines
Makefile +2
-0@@ -469,10 +469,12 @@ ifneq ($(EXESUF),) qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI) endif +ifdef CONFIG_IVSHMEM ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMMON_LDADDS) $(call LINK, $^) ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS) $(call LINK, $^) +endif
This effectively disables building ivshmem executables on this config on linux, while previously they were building fine. Hmm..
/mjt
Quoted 15 lines · Michael Tokarev
06.06.2017 09:54, Markus Armbruster wrote:
[ ./configure --disable-linux-user --disable-system --static ]
Quoted 11 lines
I haven't, but here's a quick guess on what we need to squash into the patch:
Makefile +0
-0@@ -469,10 +469,12 @@ ifneq ($(EXESUF),) qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI) endif
Quoted 9 lines
Makefile ifneq ($(EXESUF),) · line 477
Quoted 6 lines
Makefile +2
-0+ifdef CONFIG_IVSHMEM ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMMON_LDADDS) $(call LINK, $^) ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS) $(call LINK, $^) +endifThis effectively disables building ivshmem executables on this config on linux, while previously they were building fine. Hmm..
These executables are only useful together with an ivshmem device. Not building them when they can't be useful makes sense to me.
See previous discussion
Message-ID: <[email protected]>
https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg05108.html
Quoted 25 lines · Michael Tokarev
06.06.2017 09:54, Markus Armbruster wrote:
[ ./configure --disable-linux-user --disable-system --static ]
Quoted 8 lines
I haven't, but here's a quick guess on what we need to squash into the patch:
Makefile +0
-0Makefile ifneq ($(EXESUF),) · line 477
Quoted 9 lines
Makefile +2
-0@@ -469,10 +469,12 @@ ifneq ($(EXESUF),) qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI) endif +ifdef CONFIG_IVSHMEM ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMMON_LDADDS) $(call LINK, $^) ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS) $(call LINK, $^) +endifThis effectively disables building ivshmem executables on this config on linux, while previously they were building fine. Hmm..
Quoted 2 lines
/mjt
I've linked qemu with the original patch and:
./configure --disable-linux-user --disable-system --static
I got some warnings, I think they are originated from our libc and are not related to qemu:
LINK sparc64-bsd-user/qemu-sparc64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common of environ' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of __progname' overridden by definition/usr/lib/crt0.o: warning: defined here
LINK x86_64-bsd-user/qemu-x86_64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common of environ' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of __progname' overridden by definition/usr/lib/crt0.o: warning: defined here
LINK i386-bsd-user/qemu-i386
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common of environ' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of __progname' overridden by definition/usr/lib/crt0.o: warning: defined here
I will ask other NetBSD developers about __ps_strings, environ and __progname.
Quoted 14 lines · Kamil Rytarowski
I've linked qemu with the original patch and:
./configure --disable-linux-user --disable-system --staticI got some warnings, I think they are originated from our libc and are not related to qemu:
LINK sparc64-bsd-user/qemu-sparc64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common ofenviron' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of__progname' overridden by definition/usr/lib/crt0.o: warning: defined here
Yes, I think I've seen those before on NetBSD -- they look like a bug in your libc to me, it shouldn't be confusing itself with itself like that :-)
thanks
-- PMM
Quoted 16 lines · Peter Maydell
Quoted 14 lines · Kamil Rytarowski
I've linked qemu with the original patch and:
./configure --disable-linux-user --disable-system --staticI got some warnings, I think they are originated from our libc and are not related to qemu:
LINK sparc64-bsd-user/qemu-sparc64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common ofenviron' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of__progname' overridden by definition/usr/lib/crt0.o: warning: defined here
Quoted 7 lines
Yes, I think I've seen those before on NetBSD -- they look like a bug in your libc to me, it shouldn't be confusing itself with itself like that :-)
thanks
-- PMM
I have filed this bug upstream: http://gnats.netbsd.org/52278
Quoted 21 lines · Kamil Rytarowski
Quoted 20 lines · Peter Maydell
Quoted 14 lines · Kamil Rytarowski
I've linked qemu with the original patch and:
./configure --disable-linux-user --disable-system --staticI got some warnings, I think they are originated from our libc and are not related to qemu:
LINK sparc64-bsd-user/qemu-sparc64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common ofenviron' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of__progname' overridden by definition/usr/lib/crt0.o: warning: defined hereYes, I think I've seen those before on NetBSD -- they look like a bug in your libc to me, it shouldn't be confusing itself with itself like that :-)
Quoted 7 lines
Quoted 3 lines
thanks
-- PMMI have filed this bug upstream: http://gnats.netbsd.org/52278
What's the status with this patch?
NetBSD build still breaks due to ivshmem-*.
Quoted 26 lines · Kamil Rytarowski
Quoted 25 lines · Kamil Rytarowski
Quoted 23 lines · Peter Maydell
Quoted 14 lines · Kamil Rytarowski
I've linked qemu with the original patch and:
./configure --disable-linux-user --disable-system --staticI got some warnings, I think they are originated from our libc and are not related to qemu:
LINK sparc64-bsd-user/qemu-sparc64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common ofenviron' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of__progname' overridden by definition/usr/lib/crt0.o: warning: defined hereYes, I think I've seen those before on NetBSD -- they look like a bug in your libc to me, it shouldn't be confusing itself with itself like that :-)
thanks
-- PMM
Quoted 8 lines
Quoted 3 lines
I have filed this bug upstream: http://gnats.netbsd.org/52278
What's the status with this patch?
NetBSD build still breaks due to ivshmem-*.
I guess Michael expects a v4 that doesn't break the static build.
Quoted 33 lines · Markus Armbruster
Quoted 31 lines · Kamil Rytarowski
Quoted 28 lines · Kamil Rytarowski
Quoted 16 lines · Peter Maydell
Quoted 14 lines · Kamil Rytarowski
I've linked qemu with the original patch and:
./configure --disable-linux-user --disable-system --staticI got some warnings, I think they are originated from our libc and are not related to qemu:
LINK sparc64-bsd-user/qemu-sparc64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common ofenviron' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of__progname' overridden by definition/usr/lib/crt0.o: warning: defined hereQuoted 7 lines
Yes, I think I've seen those before on NetBSD -- they look like a bug in your libc to me, it shouldn't be confusing itself with itself like that :-)
thanks
-- PMMI have filed this bug upstream: http://gnats.netbsd.org/52278
Quoted 6 lines
Quoted 3 lines
What's the status with this patch?
NetBSD build still breaks due to ivshmem-*.
I guess Michael expects a v4 that doesn't break the static build.
-static works for me, I have restricted options to test build on !NetBSD systems.
Was this patch ok?
Makefile +2 -0
@@ -469,10 +469,12 @@ ifneq ($(EXESUF),) qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI) endif +ifdef CONFIG_IVSHMEM ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMMON_LDADDS) $(call LINK, $^) ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS) $(call LINK, $^) +endif
So I could amend it.
Quoted 62 lines · Kamil Rytarowski
Quoted 33 lines · Markus Armbruster
Quoted 31 lines · Kamil Rytarowski
Quoted 28 lines · Kamil Rytarowski
Quoted 16 lines · Peter Maydell
Quoted 14 lines · Kamil Rytarowski
I've linked qemu with the original patch and:
./configure --disable-linux-user --disable-system --staticI got some warnings, I think they are originated from our libc and are not related to qemu:
LINK sparc64-bsd-user/qemu-sparc64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common ofenviron' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of__progname' overridden by definition/usr/lib/crt0.o: warning: defined hereQuoted 7 lines
Yes, I think I've seen those before on NetBSD -- they look like a bug in your libc to me, it shouldn't be confusing itself with itself like that :-)
thanks
-- PMMI have filed this bug upstream: http://gnats.netbsd.org/52278
Quoted 6 lines
Quoted 3 lines
What's the status with this patch?
NetBSD build still breaks due to ivshmem-*.
I guess Michael expects a v4 that doesn't break the static build.
-static works for me, I have restricted options to test build on !NetBSD systems.
Was this patch ok?
Makefile +2
-0@@ -469,10 +469,12 @@ ifneq ($(EXESUF),) qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI) endif +ifdef CONFIG_IVSHMEM ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMMON_LDADDS) $(call LINK, $^) ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS) $(call LINK, $^) +endif
Quoted 1 line
So I could amend it.
Please do. Additionally consider
tests/Makefile.include +1 -1
@@ -203,7 +203,7 @@ gcov-files-pci-y += hw/display/virtio-gpu-pci.c gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c check-qtest-pci-y += tests/intel-hda-test$(EXESUF) gcov-files-pci-y += hw/audio/intel-hda.c hw/audio/hda-codec.c -check-qtest-pci-$(CONFIG_EVENTFD) += tests/ivshmem-test$(EXESUF) +check-qtest-pci-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF) gcov-files-pci-y += hw/misc/ivshmem.c check-qtest-i386-y = tests/endianness-test$(EXESUF)
Quoted 74 lines · Markus Armbruster
Quoted 62 lines · Kamil Rytarowski
Quoted 33 lines · Markus Armbruster
Quoted 31 lines · Kamil Rytarowski
Quoted 28 lines · Kamil Rytarowski
Quoted 16 lines · Peter Maydell
Quoted 14 lines · Kamil Rytarowski
I've linked qemu with the original patch and:
./configure --disable-linux-user --disable-system --staticI got some warnings, I think they are originated from our libc and are not related to qemu:
LINK sparc64-bsd-user/qemu-sparc64
/usr/lib/libc.a(initfini.o): warning: common of `__ps_strings' overridden by definition/usr/lib/crt0.o: warning: defined here /usr/lib/libc.a(_env.o): warning: multiple common ofenviron' /usr/lib/crt0.o: warning: previous common is here /usr/lib/libc.a(getprogname.o): warning: common of__progname' overridden by definition/usr/lib/crt0.o: warning: defined hereQuoted 7 lines
Yes, I think I've seen those before on NetBSD -- they look like a bug in your libc to me, it shouldn't be confusing itself with itself like that :-)
thanks
-- PMMI have filed this bug upstream: http://gnats.netbsd.org/52278
Quoted 6 lines
Quoted 3 lines
What's the status with this patch?
NetBSD build still breaks due to ivshmem-*.
I guess Michael expects a v4 that doesn't break the static build.
-static works for me, I have restricted options to test build on !NetBSD systems.
Was this patch ok?
Makefile +2
-0@@ -469,10 +469,12 @@ ifneq ($(EXESUF),) qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI) endif +ifdef CONFIG_IVSHMEM ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMMON_LDADDS) $(call LINK, $^) ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS) $(call LINK, $^) +endifQuoted 1 line
So I could amend it.
Please do. Additionally consider
tests/Makefile.include +0
-0
tests/Makefile.include gcov-files-pci-y += hw/display/virtio-gpu-pci.c · line 209
Quoted 8 lines
tests/Makefile.include +1
-1@@ -203,7 +203,7 @@ gcov-files-pci-y += hw/display/virtio-gpu-pci.c gcov-files-pci-$(CONFIG_VIRTIO_VGA) += hw/display/virtio-vga.c check-qtest-pci-y += tests/intel-hda-test$(EXESUF) gcov-files-pci-y += hw/audio/intel-hda.c hw/audio/hda-codec.c -check-qtest-pci-$(CONFIG_EVENTFD) += tests/ivshmem-test$(EXESUF) +check-qtest-pci-$(CONFIG_IVSHMEM) += tests/ivshmem-test$(EXESUF) gcov-files-pci-y += hw/misc/ivshmem.c check-qtest-i386-y = tests/endianness-test$(EXESUF)
Thank you, I will give it a try.
Quoted 8 lines · Michael Tokarev
Quoted 6 lines · Kamil Rytarowski
Currently ivshmem requires
eventfd()which is Linux specific. Do not and build it unconditionally on every Linux/BSD/Solaris.This patch indirectly fixes build failure on NetBSD, where these tools additionally require -lrt for
shm_open(3). In future there should be added support for NetBSD and the linking addressed appropriately.
Quoted 5 lines
Unfortunately this breaks static build.
$ ../configure --disable-system --disable-linux-user --static $ make V=1 ...
Why are you trying to build with both system emulation QEMU and linux-user QEMU disabled anyway? That doesn't leave very much left to build...
thanks
-- PMM
Quoted 1 line · Peter Maydell
On 5 June 2017 at 15:29, Michael Tokarev <[email protected]> wrote:
[...]
Quoted 7 lines
Quoted 3 lines
$ ../configure --disable-system --disable-linux-user --static $ make V=1 ...Why are you trying to build with both system emulation QEMU and linux-user QEMU disabled anyway? That doesn't leave very much left to build...
Hmm the only point would be to build libqemuutil.a...
Should the ./configure script return an error if $target_list is empty?