Re: [Qemu-devel] [PATCH] build: handle deprecation of major() in sys/types.h
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Type: series Message-id: 20160922205647.18237-1-rkrc...@redhat.com Subject: [Qemu-devel] [PATCH] build: handle deprecation of major() in sys/types.h === TEST SCRIPT BEGIN === #!/bin/bash set -e git submodule update --init dtc make J=8 docker-test-quick@centos6 make J=8 docker-test-mingw@fedora === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 From https://github.com/patchew-project/qemu * [new tag] patchew/20160922205647.18237-1-rkrc...@redhat.com -> patchew/20160922205647.18237-1-rkrc...@redhat.com Switched to a new branch 'test' 4ccefec build: handle deprecation of major() in sys/types.h === OUTPUT BEGIN === Submodule 'dtc' (git://git.qemu-project.org/dtc.git) registered for path 'dtc' Cloning into 'dtc'... Submodule path 'dtc': checked out '65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf' BUILD centos6 ARCHIVE qemu.tgz ARCHIVE dtc.tgz COPY RUNNER RUN test-quick in centos6 No C++ compiler available; disabling C++ specific optional code Install prefix/tmp/qemu-test/src/tests/docker/install BIOS directory/tmp/qemu-test/src/tests/docker/install/share/qemu binary directory /tmp/qemu-test/src/tests/docker/install/bin library directory /tmp/qemu-test/src/tests/docker/install/lib module directory /tmp/qemu-test/src/tests/docker/install/lib/qemu libexec directory /tmp/qemu-test/src/tests/docker/install/libexec include directory /tmp/qemu-test/src/tests/docker/install/include config directory /tmp/qemu-test/src/tests/docker/install/etc local state directory /tmp/qemu-test/src/tests/docker/install/var Manual directory /tmp/qemu-test/src/tests/docker/install/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /tmp/qemu-test/src C compilercc Host C compiler cc C++ compiler Objective-C compiler cc ARFLAGS rv CFLAGS-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g QEMU_CFLAGS -I/usr/include/pixman-1-fPIE -DPIE -m64 -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 -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g make make install install pythonpython -B smbd /usr/sbin/smbd module supportno host CPU x86_64 host big endian no target list x86_64-softmmu aarch64-softmmu tcg debug enabled no gprof enabled no sparse enabledno strip binariesyes profiler no static build no pixmansystem SDL support yes (1.2.14) GTK support no GTK GL supportno VTE support no TLS priority NORMAL GNUTLS supportno GNUTLS rndno libgcrypt no libgcrypt kdf no nettleno nettle kdfno libtasn1 no curses supportno virgl support no curl support no mingw32 support no Audio drivers oss Block whitelist (rw) Block whitelist (ro) VirtFS supportno VNC support yes VNC SASL support no VNC JPEG support no VNC PNG support no xen support no brlapi supportno bluez supportno Documentation no PIE yes vde support no netmap supportno Linux AIO support no ATTR/XATTR support yes Install blobs yes KVM support yes RDMA support no TCG interpreter no fdt support yes preadv supportyes fdatasync yes madvise yes posix_madvise yes uuid support no libcap-ng support no vhost-net support yes vhost-scsi support yes vhost-vsock support yes Trace backendslog spice support no rbd support no xfsctl supportno smartcard support no libusbno usb net redir no OpenGL supportno OpenGL dmabufsno libiscsi support no libnfs supportno build guest agent yes QGA VSS support no QGA w32 disk info no QGA MSI support no seccomp support no coroutine backend ucontext coroutine poolyes GlusterFS support no Archipelago support no gcov gcov gcov enabled no TPM support yes libssh2 support no TPM passthrough yes QOM debugging yes vhdx no lzo support no snappy supportno bzip2 support no NUMA host support no tcmalloc support no jemalloc support no avx2 optimization no replication support yes GEN x86_64-softmmu/config-devices.mak.tmp GEN aarch64-softmmu/config-devices.mak.tmp GEN config-host.h GEN qemu-options.def GEN qmp-commands.h
Re: [Qemu-devel] [PATCH] build: handle deprecation of major() in sys/types.h
Hi On Fri, Sep 23, 2016 at 12:58 AM Radim Krčmářwrote: > GCC 6.2.1 stops the build of qga/commands-posix.c with: > > It would not be only qga, but at least: hw/9pfs/9p.c:major(stbuf->st_rdev), minor(stbuf->st_rdev)); linux-user/strace.c:print_raw_param("makedev(%d", major(arg2), 0); linux-user/strace.c:print_raw_param("makedev(%d", major(arg3), 0); qga/commands-posix.c:*devmajor = major(st.st_rdev); In the GNU C Library, `major' is defined by . > For historical compatibility, it is currently defined by >as well, but we plan to remove this soon. > > To use `major', include directly. > If you did not intend to use a system-defined macro `major', > you should #undef it after including . > > Include for all users of . > > Signed-off-by: Radim Krčmář > --- > include/qemu/osdep.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h > index 9e9fa6154642..fad31c3d5b56 100644 > --- a/include/qemu/osdep.h > +++ b/include/qemu/osdep.h > @@ -64,6 +64,7 @@ extern int daemon(int, int); > #include > #include > #include > +#include > I doubt this will work with mingw (I didn't try, but it is not in my mingw prefix), perhaps better in include/sysemu/os-posix.h? > #include > #include > #include > -- > 2.10.0 > > > -- Marc-André Lureau
Re: [Qemu-devel] [PATCH] build: handle deprecation of major() in sys/types.h
On 09/22/2016 03:56 PM, Radim Krčmář wrote: > GCC 6.2.1 stops the build of qga/commands-posix.c with: > > In the GNU C Library, `major' is defined by . > For historical compatibility, it is currently defined by >as well, but we plan to remove this soon. > > To use `major', include directly. > If you did not intend to use a system-defined macro `major', > you should #undef it after including . > > Include for all users of . > > Signed-off-by: Radim Krčmář> --- > include/qemu/osdep.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h > index 9e9fa6154642..fad31c3d5b56 100644 > --- a/include/qemu/osdep.h > +++ b/include/qemu/osdep.h > @@ -64,6 +64,7 @@ extern int daemon(int, int); > #include > #include > #include > +#include Works for glibc; but is non-standard and not present on some other systems, so this may fail to build elsewhere. You'll probably need a configure probe. Autoconf also says that some platforms have instead of (per its AC_HEADER_MAJOR macro). -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature
[Qemu-devel] [PATCH] build: handle deprecation of major() in sys/types.h
GCC 6.2.1 stops the build of qga/commands-posix.c with: In the GNU C Library, `major' is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use `major', include directly. If you did not intend to use a system-defined macro `major', you should #undef it after including . Include for all users of . Signed-off-by: Radim Krčmář--- include/qemu/osdep.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 9e9fa6154642..fad31c3d5b56 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -64,6 +64,7 @@ extern int daemon(int, int); #include #include #include +#include #include #include #include -- 2.10.0