Skip to content

Instantly share code, notes, and snippets.

@kerrickstaley
Created April 26, 2020 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerrickstaley/1ac06a1823b0383f31aac852894bd350 to your computer and use it in GitHub Desktop.
Save kerrickstaley/1ac06a1823b0383f31aac852894bd350 to your computer and use it in GitHub Desktop.
➜ build curl https://aur.archlinux.org/cgit/aur.git/snapshot/afl-qemu.tar.gz | tar -xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3732 0 3732 0 0 6390 0 --:--:-- --:--:-- --:--:-- 6379
➜ build cd afl-qemu
➜ afl-qemu makepkg
==> Making package: afl-qemu 2.52b-1 (Sun 26 Apr 2020 03:38:05 PM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading afl-2.52b.tgz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 816k 100 816k 0 0 1028k 0 --:--:-- --:--:-- --:--:-- 3806k
-> Downloading qemu-2.10.0.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 251 100 251 0 0 1091 0 --:--:-- --:--:-- --:--:-- 1091
100 228 100 228 0 0 498 0 --:--:-- --:--:-- --:--:-- 498
100 23.8M 100 23.8M 0 0 7825k 0 0:00:03 0:00:03 --:--:-- 10.1M
-> Found memfd.diff
-> Found glfs_truncate.diff
-> Found glfs_io_cbk.diff
==> Validating source files with md5sums...
afl-2.52b.tgz ... Passed
qemu-2.10.0.tar.xz ... Passed
memfd.diff ... Passed
glfs_truncate.diff ... Passed
glfs_io_cbk.diff ... Passed
==> Extracting sources...
-> Extracting afl-2.52b.tgz with bsdtar
-> Extracting qemu-2.10.0.tar.xz with bsdtar
==> Starting prepare()...
patching file accel/tcg/cpu-exec.c
patching file linux-user/elfload.c
patching file linux-user/syscall.c
patching file configure
Hunk #1 succeeded at 3855 (offset -68 lines).
patching file util/memfd.c
patching file block/gluster.c
Hunk #1 succeeded at 17 with fuzz 1 (offset -3 lines).
patching file configure
Hunk #1 succeeded at 384 with fuzz 2 (offset -72 lines).
Hunk #2 succeeded at 3673 (offset -419 lines).
Hunk #3 succeeded at 5980 (offset -1010 lines).
patching file block/gluster.c
Hunk #1 succeeded at 700 (offset -29 lines).
patching file configure
Hunk #1 succeeded at 385 with fuzz 2 (offset -72 lines).
Hunk #2 succeeded at 3687 (offset -419 lines).
Hunk #3 succeeded at 6004 (offset -1010 lines).
==> Starting build()...
Install prefix /usr/local
BIOS directory /usr/local/share/qemu
binary directory /usr/local/bin
library directory /usr/local/lib
module directory /usr/local/lib/qemu
libexec directory /usr/local/libexec
include directory /usr/local/include
config directory /usr/local/etc
local state directory /usr/local/var
Manual directory /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0
C compiler cc
Host C compiler cc
C++ compiler c++
Objective-C compiler cc
ARFLAGS rv
CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g -O3 -ggdb
QEMU_CFLAGS -I/usr/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt -DHAS_LIBSSH2_SFTP_FSYNC -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DNCURSES_WIDECHAR -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -fPIE -DPIE -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 -Wexpansion-to-defined -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/p11-kit-1 -I/usr/include/libdrm -I/usr/include/cacard -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/libusb-1.0
LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
make make
install install
python /usr/bin/python2 -B
smbd /usr/sbin/smbd
module support no
host CPU x86_64
host big endian no
target list x86_64-linux-user
gprof enabled no
sparse enabled no
strip binaries yes
profiler no
static build no
pixman system
SDL support no
GTK support no
GTK GL support no
VTE support yes (0.60.2)
TLS priority NORMAL
GNUTLS support yes
GNUTLS rnd yes
libgcrypt no
libgcrypt kdf no
nettle yes (3.5.1)
nettle kdf yes
libtasn1 yes
curses support yes
virgl support yes
curl support yes
mingw32 support no
Audio drivers oss
Block whitelist (rw)
Block whitelist (ro)
VirtFS support
VNC support no
xen support no
brlapi support yes
bluez support yes
Documentation yes
PIE yes
vde support yes
netmap support no
Linux AIO support yes
ATTR/XATTR support yes
Install blobs yes
KVM support yes
HAX support no
TCG support yes
TCG debug enabled no
TCG interpreter no
RDMA support no
fdt support yes
preadv support yes
fdatasync yes
madvise yes
posix_madvise yes
libcap-ng support yes
vhost-net support yes
vhost-scsi support yes
vhost-vsock support yes
vhost-user support yes
Trace backends log
spice support no
rbd support yes
xfsctl support yes
smartcard support yes
libusb yes
usb net redir yes
OpenGL support yes
OpenGL dmabufs yes
libiscsi support yes
libnfs support yes
build guest agent yes
QGA VSS support no
QGA w32 disk info no
QGA MSI support no
seccomp support yes
coroutine backend ucontext
coroutine pool yes
debug stack usage no
crypto afalg no
GlusterFS support yes
gcov gcov
gcov enabled no
TPM support yes
libssh2 support yes
TPM passthrough yes
QOM debugging yes
Live block migration yes
lzo support yes
snappy support yes
bzip2 support yes
NUMA host support yes
tcmalloc support no
jemalloc support no
avx2 optimization yes
replication support yes
VxHS block device no
GEN x86_64-linux-user/config-devices.mak.tmp
GEN x86_64-linux-user/config-devices.mak
GEN config-all-devices.mak
GEN config-host.h
DEP tests/dumptrees.c
DEP tests/trees.S
DEP tests/testutils.c
DEP tests/value-labels.c
DEP tests/asm_tree_dump.c
DEP tests/truncated_property.c
DEP tests/check_path.c
DEP tests/overlay_bad_fixup.c
DEP tests/overlay.c
DEP tests/subnode_iterate.c
DEP tests/property_iterate.c
DEP tests/integer-expressions.c
DEP tests/utilfdt_test.c
DEP tests/path_offset_aliases.c
DEP tests/add_subnode_with_nops.c
DEP tests/dtbs_equal_unordered.c
DEP tests/dtb_reverse.c
DEP tests/dtbs_equal_ordered.c
DEP tests/extra-terminating-null.c
DEP tests/incbin.c
DEP tests/boot-cpuid.c
DEP tests/phandle_format.c
DEP tests/path-references.c
DEP tests/references.c
DEP tests/string_escapes.c
DEP tests/propname_escapes.c
DEP tests/appendprop2.c
DEP tests/appendprop1.c
DEP tests/del_node.c
DEP tests/del_property.c
DEP tests/setprop.c
DEP tests/set_name.c
DEP tests/rw_tree1.c
DEP tests/open_pack.c
DEP tests/nopulate.c
DEP tests/mangle-layout.c
DEP tests/move_and_save.c
DEP tests/sw_tree1.c
DEP tests/nop_node.c
DEP tests/nop_property.c
DEP tests/setprop_inplace.c
DEP tests/stringlist.c
DEP tests/addr_size_cells.c
DEP tests/notfound.c
DEP tests/sized_cells.c
DEP tests/char_literal.c
DEP tests/get_alias.c
DEP tests/node_offset_by_compatible.c
DEP tests/node_check_compatible.c
DEP tests/node_offset_by_phandle.c
DEP tests/node_offset_by_prop_value.c
DEP tests/parent_offset.c
DEP tests/supernode_atdepth_offset.c
DEP tests/get_path.c
DEP tests/get_phandle.c
DEP tests/getprop.c
DEP tests/get_name.c
DEP tests/path_offset.c
DEP tests/subnode_offset.c
DEP tests/find_property.c
DEP tests/root_node.c
DEP tests/get_mem_rsv.c
DEP libfdt/fdt_overlay.c
DEP libfdt/fdt_addresses.c
DEP libfdt/fdt_empty_tree.c
DEP libfdt/fdt_strerror.c
DEP libfdt/fdt_rw.c
DEP libfdt/fdt_sw.c
DEP libfdt/fdt_wip.c
DEP libfdt/fdt_ro.c
DEP libfdt/fdt.c
DEP util.c
DEP fdtput.c
DEP fdtget.c
DEP fdtdump.c
LEX convert-dtsv0-lexer.lex.c
DEP convert-dtsv0-lexer.lex.c
DEP srcpos.c
BISON dtc-parser.tab.c
DEP dtc-parser.tab.c
LEX dtc-lexer.lex.c
DEP dtc-lexer.lex.c
DEP treesource.c
DEP livetree.c
DEP fstree.c
DEP flattree.c
DEP dtc.c
DEP data.c
DEP checks.c
CHK version_gen.h
UPD version_gen.h
DEP util.c
CHK version_gen.h
CC libfdt/fdt.o
CC libfdt/fdt_ro.o
CC libfdt/fdt_wip.o
CC libfdt/fdt_sw.o
CC libfdt/fdt_rw.o
CC libfdt/fdt_strerror.o
CC libfdt/fdt_empty_tree.o
CC libfdt/fdt_addresses.o
CC libfdt/fdt_overlay.o
AR libfdt/libfdt.a
ar: creating libfdt/libfdt.a
a - libfdt/fdt.o
a - libfdt/fdt_ro.o
a - libfdt/fdt_wip.o
a - libfdt/fdt_sw.o
a - libfdt/fdt_rw.o
a - libfdt/fdt_strerror.o
a - libfdt/fdt_empty_tree.o
a - libfdt/fdt_addresses.o
a - libfdt/fdt_overlay.o
GEN qemu-options.def
GEN qmp-commands.h
GEN qapi-types.h
GEN qapi-visit.h
GEN qapi-event.h
GEN qmp-marshal.c
GEN qapi-types.c
GEN qapi-visit.c
GEN qapi-event.c
GEN qmp-introspect.h
GEN qmp-introspect.c
GEN trace/generated-tcg-tracers.h
GEN trace/generated-helpers-wrappers.h
GEN trace/generated-helpers.h
GEN trace/generated-helpers.c
GEN module_block.h
GEN tests/test-qapi-types.h
GEN tests/test-qapi-visit.h
GEN tests/test-qmp-commands.h
GEN tests/test-qapi-event.h
GEN tests/test-qmp-introspect.h
GEN trace-root.h
GEN util/trace.h
GEN crypto/trace.h
GEN io/trace.h
GEN migration/trace.h
GEN block/trace.h
GEN chardev/trace.h
GEN hw/block/trace.h
GEN hw/block/dataplane/trace.h
GEN hw/char/trace.h
GEN hw/intc/trace.h
GEN hw/net/trace.h
GEN hw/virtio/trace.h
GEN hw/audio/trace.h
GEN hw/misc/trace.h
GEN hw/usb/trace.h
GEN hw/scsi/trace.h
GEN hw/nvram/trace.h
GEN hw/display/trace.h
GEN hw/input/trace.h
GEN hw/timer/trace.h
GEN hw/dma/trace.h
GEN hw/sparc/trace.h
GEN hw/sd/trace.h
GEN hw/isa/trace.h
GEN hw/mem/trace.h
GEN hw/i386/trace.h
GEN hw/i386/xen/trace.h
GEN hw/9pfs/trace.h
GEN hw/ppc/trace.h
GEN hw/pci/trace.h
GEN hw/s390x/trace.h
GEN hw/vfio/trace.h
GEN hw/acpi/trace.h
GEN hw/arm/trace.h
GEN hw/alpha/trace.h
GEN hw/xen/trace.h
GEN ui/trace.h
GEN audio/trace.h
GEN net/trace.h
GEN target/arm/trace.h
GEN target/i386/trace.h
GEN target/mips/trace.h
GEN target/sparc/trace.h
GEN target/s390x/trace.h
GEN target/ppc/trace.h
GEN qom/trace.h
GEN linux-user/trace.h
GEN qapi/trace.h
GEN accel/tcg/trace.h
GEN accel/kvm/trace.h
GEN nbd/trace.h
GEN trace-root.c
GEN util/trace.c
GEN crypto/trace.c
GEN io/trace.c
GEN migration/trace.c
GEN block/trace.c
GEN chardev/trace.c
GEN hw/block/trace.c
GEN hw/block/dataplane/trace.c
GEN hw/char/trace.c
GEN hw/intc/trace.c
GEN hw/net/trace.c
GEN hw/virtio/trace.c
GEN hw/audio/trace.c
GEN hw/misc/trace.c
GEN hw/usb/trace.c
GEN hw/scsi/trace.c
GEN hw/nvram/trace.c
GEN hw/display/trace.c
GEN hw/input/trace.c
GEN hw/timer/trace.c
GEN hw/dma/trace.c
GEN hw/sparc/trace.c
GEN hw/sd/trace.c
GEN hw/isa/trace.c
GEN hw/mem/trace.c
GEN hw/i386/trace.c
GEN hw/i386/xen/trace.c
GEN hw/9pfs/trace.c
GEN hw/ppc/trace.c
GEN hw/pci/trace.c
GEN hw/s390x/trace.c
GEN hw/vfio/trace.c
GEN hw/acpi/trace.c
GEN hw/arm/trace.c
GEN hw/alpha/trace.c
GEN hw/xen/trace.c
GEN ui/trace.c
GEN audio/trace.c
GEN net/trace.c
GEN target/arm/trace.c
GEN target/i386/trace.c
GEN target/mips/trace.c
GEN target/sparc/trace.c
GEN target/s390x/trace.c
GEN target/ppc/trace.c
GEN qom/trace.c
GEN linux-user/trace.c
GEN qapi/trace.c
GEN accel/tcg/trace.c
GEN accel/kvm/trace.c
GEN nbd/trace.c
CHK version_gen.h
CC tests/qemu-iotests/socket_scm_helper.o
LINK tests/qemu-iotests/socket_scm_helper
GEN docs/version.texi
GEN qemu-options.texi
GEN qemu-monitor.texi
GEN qemu-img-cmds.texi
GEN qemu-monitor-info.texi
GEN qemu-doc.html
GEN qemu-doc.txt
GEN qemu.1
GEN qemu-img.1
GEN qemu-nbd.8
GEN qemu-ga.8
GEN docs/interop/qemu-qmp-qapi.texi
GEN docs/interop/qemu-qmp-ref.html
GEN docs/interop/qemu-qmp-ref.txt
GEN docs/interop/qemu-qmp-ref.7
GEN docs/interop/qemu-ga-qapi.texi
GEN docs/interop/qemu-ga-ref.html
GEN docs/interop/qemu-ga-ref.txt
GEN docs/interop/qemu-ga-ref.7
GEN qga/qapi-generated/qga-qapi-types.h
GEN qga/qapi-generated/qga-qapi-visit.h
GEN qga/qapi-generated/qga-qmp-commands.h
CC qga/commands.o
CC qga/guest-agent-command-state.o
CC qga/main.o
qga/main.c: In function ‘ga_log’:
qga/main.c:300:5: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
300 | GTimeVal time;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/glib-compat.h:19,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:107,
from qga/main.c:13:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
qga/main.c:315:9: warning: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations]
315 | g_get_current_time(&time);
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:33,
from /usr/include/glib-2.0/glib.h:54,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/glib-compat.h:19,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:107,
from qga/main.c:13:
/usr/include/glib-2.0/glib/gmain.h:679:8: note: declared here
679 | void g_get_current_time (GTimeVal *result);
| ^~~~~~~~~~~~~~~~~~
CC qga/commands-posix.o
CC qga/channel-posix.o
GEN qga/qapi-generated/qga-qapi-types.c
CC qga/qapi-generated/qga-qapi-types.o
GEN qga/qapi-generated/qga-qapi-visit.c
CC qga/qapi-generated/qga-qapi-visit.o
GEN qga/qapi-generated/qga-qmp-marshal.c
CC qga/qapi-generated/qga-qmp-marshal.o
CC qmp-introspect.o
CC qapi-types.o
CC qapi-visit.o
CC qapi-event.o
CC qapi/qapi-visit-core.o
CC qapi/qapi-dealloc-visitor.o
CC qapi/qobject-input-visitor.o
CC qapi/qobject-output-visitor.o
CC qapi/qmp-registry.o
CC qapi/qmp-dispatch.o
CC qapi/string-input-visitor.o
qapi/string-input-visitor.c: In function ‘parse_type_uint64’:
qapi/string-input-visitor.c:261:14: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized]
261 | *obj = i;
| ~~~~~^~~
CC qapi/string-output-visitor.o
CC qapi/opts-visitor.o
CC qapi/qapi-clone-visitor.o
CC qapi/qmp-event.o
CC qapi/qapi-util.o
CC qobject/qnull.o
CC qobject/qnum.o
CC qobject/qstring.o
CC qobject/qdict.o
CC qobject/qlist.o
CC qobject/qbool.o
CC qobject/qjson.o
CC qobject/qobject.o
CC qobject/json-lexer.o
CC qobject/json-streamer.o
CC qobject/json-parser.o
CC trace/control.o
CC trace/qmp.o
CC util/osdep.o
CC util/cutils.o
CC util/unicode.o
CC util/qemu-timer-common.o
CC util/bufferiszero.o
CC util/lockcnt.o
CC util/aiocb.o
CC util/async.o
CC util/thread-pool.o
CC util/qemu-timer.o
CC util/main-loop.o
CC util/iohandler.o
CC util/aio-posix.o
CC util/compatfd.o
CC util/event_notifier-posix.o
CC util/mmap-alloc.o
CC util/oslib-posix.o
CC util/qemu-openpty.o
CC util/qemu-thread-posix.o
CC util/memfd.o
CC util/envlist.o
CC util/path.o
CC util/module.o
CC util/host-utils.o
CC util/bitmap.o
CC util/bitops.o
CC util/hbitmap.o
CC util/fifo8.o
CC util/acl.o
CC util/cacheinfo.o
CC util/error.o
CC util/qemu-error.o
util/qemu-error.c: In function ‘vreport’:
util/qemu-error.c:201:5: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
201 | GTimeVal tv;
| ^~~~~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/glib-compat.h:19,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:107,
from util/qemu-error.c:13:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
547 | struct _GTimeVal
| ^~~~~~~~~
util/qemu-error.c:205:9: warning: ‘g_get_current_time’ is deprecated: Use 'g_get_real_time' instead [-Wdeprecated-declarations]
205 | g_get_current_time(&tv);
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/giochannel.h:33,
from /usr/include/glib-2.0/glib.h:54,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/glib-compat.h:19,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:107,
from util/qemu-error.c:13:
/usr/include/glib-2.0/glib/gmain.h:679:8: note: declared here
679 | void g_get_current_time (GTimeVal *result);
| ^~~~~~~~~~~~~~~~~~
util/qemu-error.c:206:9: warning: ‘g_time_val_to_iso8601’ is deprecated: Use 'g_date_time_format' instead [-Wdeprecated-declarations]
206 | timestr = g_time_val_to_iso8601(&tv);
| ^~~~~~~
In file included from /usr/include/glib-2.0/glib.h:88,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/glib-compat.h:19,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:107,
from util/qemu-error.c:13:
/usr/include/glib-2.0/glib/gtimer.h:73:10: note: declared here
73 | gchar* g_time_val_to_iso8601 (GTimeVal *time_) G_GNUC_MALLOC;
| ^~~~~~~~~~~~~~~~~~~~~
CC util/id.o
CC util/iov.o
CC util/qemu-config.o
CC util/qemu-sockets.o
In file included from /usr/include/string.h:495,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:69,
from util/qemu-sockets.c:18:
In function ‘strncpy’,
inlined from ‘unix_listen_saddr’ at util/qemu-sockets.c:930:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
inlined from ‘unix_connect_saddr.isra.0’ at util/qemu-sockets.c:989:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 108 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC util/uri.o
CC util/notify.o
CC util/qemu-option.o
CC util/qemu-progress.o
CC util/keyval.o
CC util/hexdump.o
CC util/crc32c.o
CC util/uuid.o
CC util/throttle.o
CC util/getauxval.o
CC util/readline.o
CC util/rcu.o
CC util/qemu-coroutine.o
CC util/qemu-coroutine-lock.o
CC util/qemu-coroutine-io.o
CC util/qemu-coroutine-sleep.o
CC util/coroutine-ucontext.o
CC util/buffer.o
CC util/timed-average.o
CC util/base64.o
CC util/log.o
CC util/qdist.o
CC util/qht.o
CC util/range.o
CC util/stats64.o
CC util/systemd.o
CC trace-root.o
CC util/trace.o
CC crypto/trace.o
CC io/trace.o
CC migration/trace.o
CC block/trace.o
CC chardev/trace.o
CC hw/block/trace.o
CC hw/block/dataplane/trace.o
CC hw/char/trace.o
CC hw/intc/trace.o
CC hw/net/trace.o
CC hw/virtio/trace.o
CC hw/audio/trace.o
CC hw/misc/trace.o
CC hw/usb/trace.o
CC hw/scsi/trace.o
CC hw/nvram/trace.o
CC hw/display/trace.o
CC hw/input/trace.o
CC hw/timer/trace.o
CC hw/dma/trace.o
CC hw/sparc/trace.o
CC hw/sd/trace.o
CC hw/isa/trace.o
CC hw/mem/trace.o
CC hw/i386/trace.o
CC hw/i386/xen/trace.o
CC hw/9pfs/trace.o
CC hw/ppc/trace.o
CC hw/pci/trace.o
CC hw/s390x/trace.o
CC hw/vfio/trace.o
CC hw/acpi/trace.o
CC hw/arm/trace.o
CC hw/alpha/trace.o
CC hw/xen/trace.o
CC ui/trace.o
CC audio/trace.o
CC net/trace.o
CC target/arm/trace.o
CC target/i386/trace.o
CC target/mips/trace.o
CC target/sparc/trace.o
CC target/s390x/trace.o
CC target/ppc/trace.o
CC qom/trace.o
CC linux-user/trace.o
CC qapi/trace.o
CC accel/tcg/trace.o
CC accel/kvm/trace.o
CC nbd/trace.o
AR libqemuutil.a
CC crypto/pbkdf-stub.o
CC stubs/arch-query-cpu-def.o
CC stubs/arch-query-cpu-model-expansion.o
CC stubs/arch-query-cpu-model-comparison.o
CC stubs/arch-query-cpu-model-baseline.o
CC stubs/bdrv-next-monitor-owned.o
CC stubs/blk-commit-all.o
CC stubs/blockdev-close-all-bdrv-states.o
CC stubs/clock-warp.o
CC stubs/cpu-get-clock.o
CC stubs/cpu-get-icount.o
CC stubs/dump.o
CC stubs/error-printf.o
CC stubs/fdset.o
CC stubs/gdbstub.o
CC stubs/get-vm-name.o
CC stubs/iothread.o
CC stubs/iothread-lock.o
CC stubs/is-daemonized.o
CC stubs/linux-aio.o
CC stubs/machine-init-done.o
CC stubs/migr-blocker.o
CC stubs/change-state-handler.o
CC stubs/monitor.o
CC stubs/notify-event.o
CC stubs/qtest.o
CC stubs/replay.o
CC stubs/runstate-check.o
CC stubs/set-fd-handler.o
CC stubs/slirp.o
CC stubs/sysbus.o
CC stubs/trace-control.o
CC stubs/uuid.o
CC stubs/vm-stop.o
CC stubs/vmstate.o
CC stubs/qmp_pc_dimm_device_list.o
CC stubs/target-monitor-defs.o
CC stubs/target-get-monitor-def.o
CC stubs/pc_madt_cpu_entry.o
CC stubs/vmgenid.o
CC stubs/xen-common.o
CC stubs/xen-hvm.o
AR libqemustub.a
LINK qemu-ga
CC contrib/ivshmem-client/ivshmem-client.o
CC contrib/ivshmem-client/main.o
LINK ivshmem-client
CC contrib/ivshmem-server/ivshmem-server.o
CC contrib/ivshmem-server/main.o
LINK ivshmem-server
CC qemu-nbd.o
CC block.o
CC blockjob.o
CC qemu-io-cmds.o
In file included from /usr/include/stdio.h:867,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:68,
from qemu-io-cmds.c:11:
In function ‘printf’,
inlined from ‘help_oneline’ at qemu-io-cmds.c:2216:9,
inlined from ‘help_all’ at qemu-io-cmds.c:2241:9,
inlined from ‘help_f’ at qemu-io-cmds.c:2251:9:
/usr/include/bits/stdio2.h:107:10: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
107 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC replication.o
CC block/raw-format.o
CC block/qcow.o
block/qcow.c: In function ‘qcow_open’:
block/qcow.c:138:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
138 | be32_to_cpus(&header.magic);
| ^~~~~~~~~~~~~
block/qcow.c:139:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
139 | be32_to_cpus(&header.version);
| ^~~~~~~~~~~~~~~
block/qcow.c:140:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
140 | be64_to_cpus(&header.backing_file_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow.c:141:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
141 | be32_to_cpus(&header.backing_file_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow.c:142:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
142 | be32_to_cpus(&header.mtime);
| ^~~~~~~~~~~~~
block/qcow.c:143:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
143 | be64_to_cpus(&header.size);
| ^~~~~~~~~~~~
block/qcow.c:144:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
144 | be32_to_cpus(&header.crypt_method);
| ^~~~~~~~~~~~~~~~~~~~
block/qcow.c:145:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
145 | be64_to_cpus(&header.l1_table_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~
CC block/vdi.o
block/vdi.c: In function ‘vdi_header_to_cpu’:
block/vdi.c:182:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
182 | le32_to_cpus(&header->signature);
| ^~~~~~~~~~~~~~~~~~
block/vdi.c:183:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
183 | le32_to_cpus(&header->version);
| ^~~~~~~~~~~~~~~~
block/vdi.c:184:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
184 | le32_to_cpus(&header->header_size);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:185:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
185 | le32_to_cpus(&header->image_type);
| ^~~~~~~~~~~~~~~~~~~
block/vdi.c:186:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
186 | le32_to_cpus(&header->image_flags);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:187:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
187 | le32_to_cpus(&header->offset_bmap);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:188:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
188 | le32_to_cpus(&header->offset_data);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:189:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
189 | le32_to_cpus(&header->cylinders);
| ^~~~~~~~~~~~~~~~~~
block/vdi.c:190:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
190 | le32_to_cpus(&header->heads);
| ^~~~~~~~~~~~~~
block/vdi.c:191:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
191 | le32_to_cpus(&header->sectors);
| ^~~~~~~~~~~~~~~~
block/vdi.c:192:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
192 | le32_to_cpus(&header->sector_size);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:193:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
193 | le64_to_cpus(&header->disk_size);
| ^~~~~~~~~~~~~~~~~~
block/vdi.c:194:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
194 | le32_to_cpus(&header->block_size);
| ^~~~~~~~~~~~~~~~~~~
block/vdi.c:195:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
195 | le32_to_cpus(&header->block_extra);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:196:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
196 | le32_to_cpus(&header->blocks_in_image);
| ^~~~~~~~~~~~~~~~~~~~~~~~
block/vdi.c:197:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
197 | le32_to_cpus(&header->blocks_allocated);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
block/vdi.c:198:21: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
198 | qemu_uuid_bswap(&header->uuid_image);
| ^~~~~~~~~~~~~~~~~~~
block/vdi.c:199:21: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
199 | qemu_uuid_bswap(&header->uuid_last_snap);
| ^~~~~~~~~~~~~~~~~~~~~~~
block/vdi.c:200:21: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
200 | qemu_uuid_bswap(&header->uuid_link);
| ^~~~~~~~~~~~~~~~~~
block/vdi.c:201:21: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | qemu_uuid_bswap(&header->uuid_parent);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c: In function ‘vdi_header_to_le’:
block/vdi.c:206:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
206 | cpu_to_le32s(&header->signature);
| ^~~~~~~~~~~~~~~~~~
block/vdi.c:207:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
207 | cpu_to_le32s(&header->version);
| ^~~~~~~~~~~~~~~~
block/vdi.c:208:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | cpu_to_le32s(&header->header_size);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:209:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
209 | cpu_to_le32s(&header->image_type);
| ^~~~~~~~~~~~~~~~~~~
block/vdi.c:210:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
210 | cpu_to_le32s(&header->image_flags);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:211:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
211 | cpu_to_le32s(&header->offset_bmap);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:212:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
212 | cpu_to_le32s(&header->offset_data);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:213:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
213 | cpu_to_le32s(&header->cylinders);
| ^~~~~~~~~~~~~~~~~~
block/vdi.c:214:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
214 | cpu_to_le32s(&header->heads);
| ^~~~~~~~~~~~~~
block/vdi.c:215:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
215 | cpu_to_le32s(&header->sectors);
| ^~~~~~~~~~~~~~~~
block/vdi.c:216:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
216 | cpu_to_le32s(&header->sector_size);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:217:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
217 | cpu_to_le64s(&header->disk_size);
| ^~~~~~~~~~~~~~~~~~
block/vdi.c:218:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
218 | cpu_to_le32s(&header->block_size);
| ^~~~~~~~~~~~~~~~~~~
block/vdi.c:219:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
219 | cpu_to_le32s(&header->block_extra);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c:220:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
220 | cpu_to_le32s(&header->blocks_in_image);
| ^~~~~~~~~~~~~~~~~~~~~~~~
block/vdi.c:221:18: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
221 | cpu_to_le32s(&header->blocks_allocated);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
block/vdi.c:222:21: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
222 | qemu_uuid_bswap(&header->uuid_image);
| ^~~~~~~~~~~~~~~~~~~
block/vdi.c:223:21: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
223 | qemu_uuid_bswap(&header->uuid_last_snap);
| ^~~~~~~~~~~~~~~~~~~~~~~
block/vdi.c:224:21: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
224 | qemu_uuid_bswap(&header->uuid_link);
| ^~~~~~~~~~~~~~~~~~
block/vdi.c:225:21: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
225 | qemu_uuid_bswap(&header->uuid_parent);
| ^~~~~~~~~~~~~~~~~~~~
block/vdi.c: In function ‘vdi_open’:
block/vdi.c:440:35: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
440 | } else if (!qemu_uuid_is_null(&header.uuid_link)) {
| ^~~~~~~~~~~~~~~~~
block/vdi.c:444:35: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
444 | } else if (!qemu_uuid_is_null(&header.uuid_parent)) {
| ^~~~~~~~~~~~~~~~~~~
block/vdi.c: In function ‘vdi_create’:
block/vdi.c:798:24: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
798 | qemu_uuid_generate(&header.uuid_image);
| ^~~~~~~~~~~~~~~~~~
block/vdi.c:799:24: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
799 | qemu_uuid_generate(&header.uuid_last_snap);
| ^~~~~~~~~~~~~~~~~~~~~~
CC block/vmdk.o
CC block/cloop.o
CC block/bochs.o
CC block/vpc.o
block/vpc.c: In function ‘vpc_create’:
block/vpc.c:1017:24: warning: taking address of packed member of ‘struct vhd_footer’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1017 | qemu_uuid_generate(&footer->uuid);
| ^~~~~~~~~~~~~
CC block/vvfat.o
CC block/dmg.o
CC block/qcow2.o
block/qcow2.c: In function ‘qcow2_read_extensions’:
block/qcow2.c:207:22: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
207 | be32_to_cpus(&ext.magic);
| ^~~~~~~~~~
block/qcow2.c:208:22: warning: taking address of packed member of ‘struct <anonymous>’ may result in an unaligned pointer value [-Waddress-of-packed-member]
208 | be32_to_cpus(&ext.len);
| ^~~~~~~~
block/qcow2.c:276:26: warning: taking address of packed member of ‘struct Qcow2CryptoHeaderExtension’ may result in an unaligned pointer value [-Waddress-of-packed-member]
276 | be64_to_cpus(&s->crypto_header.offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:277:26: warning: taking address of packed member of ‘struct Qcow2CryptoHeaderExtension’ may result in an unaligned pointer value [-Waddress-of-packed-member]
277 | be64_to_cpus(&s->crypto_header.length);
| ^~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:330:26: warning: taking address of packed member of ‘struct Qcow2BitmapHeaderExt’ may result in an unaligned pointer value [-Waddress-of-packed-member]
330 | be32_to_cpus(&bitmaps_ext.nb_bitmaps);
| ^~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:331:26: warning: taking address of packed member of ‘struct Qcow2BitmapHeaderExt’ may result in an unaligned pointer value [-Waddress-of-packed-member]
331 | be64_to_cpus(&bitmaps_ext.bitmap_directory_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:332:26: warning: taking address of packed member of ‘struct Qcow2BitmapHeaderExt’ may result in an unaligned pointer value [-Waddress-of-packed-member]
332 | be64_to_cpus(&bitmaps_ext.bitmap_directory_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c: In function ‘qcow2_do_open’:
block/qcow2.c:1104:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1104 | be32_to_cpus(&header.magic);
| ^~~~~~~~~~~~~
block/qcow2.c:1105:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1105 | be32_to_cpus(&header.version);
| ^~~~~~~~~~~~~~~
block/qcow2.c:1106:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1106 | be64_to_cpus(&header.backing_file_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1107:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1107 | be32_to_cpus(&header.backing_file_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1108:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1108 | be64_to_cpus(&header.size);
| ^~~~~~~~~~~~
block/qcow2.c:1109:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1109 | be32_to_cpus(&header.cluster_bits);
| ^~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1110:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1110 | be32_to_cpus(&header.crypt_method);
| ^~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1111:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1111 | be64_to_cpus(&header.l1_table_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1112:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1112 | be32_to_cpus(&header.l1_size);
| ^~~~~~~~~~~~~~~
block/qcow2.c:1113:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1113 | be64_to_cpus(&header.refcount_table_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1114:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1114 | be32_to_cpus(&header.refcount_table_clusters);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1115:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1115 | be64_to_cpus(&header.snapshots_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1116:18: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1116 | be32_to_cpus(&header.nb_snapshots);
| ^~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1152:22: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1152 | be64_to_cpus(&header.incompatible_features);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1153:22: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1153 | be64_to_cpus(&header.compatible_features);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1154:22: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1154 | be64_to_cpus(&header.autoclear_features);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1155:22: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1155 | be32_to_cpus(&header.refcount_order);
| ^~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:1156:22: warning: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1156 | be32_to_cpus(&header.header_length);
| ^~~~~~~~~~~~~~~~~~~~~
block/qcow2.c: In function ‘qcow2_update_header’:
block/qcow2.c:2279:22: warning: taking address of packed member of ‘struct Qcow2CryptoHeaderExtension’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2279 | cpu_to_be64s(&s->crypto_header.offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:2280:22: warning: taking address of packed member of ‘struct Qcow2CryptoHeaderExtension’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2280 | cpu_to_be64s(&s->crypto_header.length);
| ^~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:2284:22: warning: taking address of packed member of ‘struct Qcow2CryptoHeaderExtension’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2284 | be64_to_cpus(&s->crypto_header.offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2.c:2285:22: warning: taking address of packed member of ‘struct Qcow2CryptoHeaderExtension’ may result in an unaligned pointer value [-Waddress-of-packed-member]
2285 | be64_to_cpus(&s->crypto_header.length);
| ^~~~~~~~~~~~~~~~~~~~~~~~
CC block/qcow2-refcount.o
CC block/qcow2-cluster.o
CC block/qcow2-snapshot.o
CC block/qcow2-cache.o
CC block/qcow2-bitmap.o
block/qcow2-bitmap.c: In function ‘bitmap_dir_entry_to_cpu’:
block/qcow2-bitmap.c:397:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
397 | be64_to_cpus(&entry->bitmap_table_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2-bitmap.c:398:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
398 | be32_to_cpus(&entry->bitmap_table_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2-bitmap.c:399:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
399 | be32_to_cpus(&entry->flags);
| ^~~~~~~~~~~~~
block/qcow2-bitmap.c:400:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
400 | be16_to_cpus(&entry->name_size);
| ^~~~~~~~~~~~~~~~~
block/qcow2-bitmap.c:401:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
401 | be32_to_cpus(&entry->extra_data_size);
| ^~~~~~~~~~~~~~~~~~~~~~~
block/qcow2-bitmap.c: In function ‘bitmap_dir_entry_to_be’:
block/qcow2-bitmap.c:406:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
406 | cpu_to_be64s(&entry->bitmap_table_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2-bitmap.c:407:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
407 | cpu_to_be32s(&entry->bitmap_table_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
block/qcow2-bitmap.c:408:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
408 | cpu_to_be32s(&entry->flags);
| ^~~~~~~~~~~~~
block/qcow2-bitmap.c:409:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
409 | cpu_to_be16s(&entry->name_size);
| ^~~~~~~~~~~~~~~~~
block/qcow2-bitmap.c:410:18: warning: taking address of packed member of ‘struct Qcow2BitmapDirEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
410 | cpu_to_be32s(&entry->extra_data_size);
| ^~~~~~~~~~~~~~~~~~~~~~~
CC block/qed.o
CC block/qed-l2-cache.o
CC block/qed-table.o
CC block/qed-cluster.o
CC block/qed-check.o
CC block/vhdx.o
In file included from block/vhdx.c:26:
./block/vhdx.h: In function ‘leguid_to_cpus’:
./block/vhdx.h:423:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
423 | le32_to_cpus(&guid->data1);
| ^~~~~~~~~~~~
./block/vhdx.h:424:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
424 | le16_to_cpus(&guid->data2);
| ^~~~~~~~~~~~
./block/vhdx.h:425:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
425 | le16_to_cpus(&guid->data3);
| ^~~~~~~~~~~~
./block/vhdx.h: In function ‘cpu_to_leguids’:
./block/vhdx.h:430:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
430 | cpu_to_le32s(&guid->data1);
| ^~~~~~~~~~~~
./block/vhdx.h:431:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
431 | cpu_to_le16s(&guid->data2);
| ^~~~~~~~~~~~
./block/vhdx.h:432:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
432 | cpu_to_le16s(&guid->data3);
| ^~~~~~~~~~~~
block/vhdx.c: In function ‘vhdx_parse_metadata’:
block/vhdx.c:750:18: warning: taking address of packed member of ‘struct VHDXFileParameters’ may result in an unaligned pointer value [-Waddress-of-packed-member]
750 | le32_to_cpus(&s->params.block_size);
| ^~~~~~~~~~~~~~~~~~~~~
block/vhdx.c:751:18: warning: taking address of packed member of ‘struct VHDXFileParameters’ may result in an unaligned pointer value [-Waddress-of-packed-member]
751 | le32_to_cpus(&s->params.data_bits);
| ^~~~~~~~~~~~~~~~~~~~
block/vhdx.c: In function ‘vhdx_create_new_metadata’:
block/vhdx.c:1511:22: warning: taking address of packed member of ‘struct VHDXFileParameters’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1511 | cpu_to_le32s(&mt_file_params->data_bits);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
CC block/vhdx-endian.o
In file included from block/vhdx-endian.c:22:
./block/vhdx.h: In function ‘leguid_to_cpus’:
./block/vhdx.h:423:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
423 | le32_to_cpus(&guid->data1);
| ^~~~~~~~~~~~
./block/vhdx.h:424:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
424 | le16_to_cpus(&guid->data2);
| ^~~~~~~~~~~~
./block/vhdx.h:425:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
425 | le16_to_cpus(&guid->data3);
| ^~~~~~~~~~~~
./block/vhdx.h: In function ‘cpu_to_leguids’:
./block/vhdx.h:430:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
430 | cpu_to_le32s(&guid->data1);
| ^~~~~~~~~~~~
./block/vhdx.h:431:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
431 | cpu_to_le16s(&guid->data2);
| ^~~~~~~~~~~~
./block/vhdx.h:432:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
432 | cpu_to_le16s(&guid->data3);
| ^~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_header_le_import’:
block/vhdx-endian.c:38:18: warning: taking address of packed member of ‘struct VHDXHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
38 | le32_to_cpus(&h->signature);
| ^~~~~~~~~~~~~
block/vhdx-endian.c:39:18: warning: taking address of packed member of ‘struct VHDXHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
39 | le32_to_cpus(&h->checksum);
| ^~~~~~~~~~~~
block/vhdx-endian.c:40:18: warning: taking address of packed member of ‘struct VHDXHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
40 | le64_to_cpus(&h->sequence_number);
| ^~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:46:18: warning: taking address of packed member of ‘struct VHDXHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
46 | le16_to_cpus(&h->log_version);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:47:18: warning: taking address of packed member of ‘struct VHDXHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
47 | le16_to_cpus(&h->version);
| ^~~~~~~~~~~
block/vhdx-endian.c:48:18: warning: taking address of packed member of ‘struct VHDXHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
48 | le32_to_cpus(&h->log_length);
| ^~~~~~~~~~~~~~
block/vhdx-endian.c:49:18: warning: taking address of packed member of ‘struct VHDXHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
49 | le64_to_cpus(&h->log_offset);
| ^~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_log_desc_le_import’:
block/vhdx-endian.c:83:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
83 | le32_to_cpus(&d->signature);
| ^~~~~~~~~~~~~
block/vhdx-endian.c:84:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
84 | le64_to_cpus(&d->file_offset);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:85:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
85 | le64_to_cpus(&d->sequence_number);
| ^~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_log_desc_le_export’:
block/vhdx-endian.c:92:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
92 | cpu_to_le32s(&d->signature);
| ^~~~~~~~~~~~~
block/vhdx-endian.c:93:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
93 | cpu_to_le32s(&d->trailing_bytes);
| ^~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:94:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
94 | cpu_to_le64s(&d->leading_bytes);
| ^~~~~~~~~~~~~~~~~
block/vhdx-endian.c:95:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
95 | cpu_to_le64s(&d->file_offset);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:96:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
96 | cpu_to_le64s(&d->sequence_number);
| ^~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_log_data_le_import’:
block/vhdx-endian.c:103:18: warning: taking address of packed member of ‘struct VHDXLogDataSector’ may result in an unaligned pointer value [-Waddress-of-packed-member]
103 | le32_to_cpus(&d->data_signature);
| ^~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:104:18: warning: taking address of packed member of ‘struct VHDXLogDataSector’ may result in an unaligned pointer value [-Waddress-of-packed-member]
104 | le32_to_cpus(&d->sequence_high);
| ^~~~~~~~~~~~~~~~~
block/vhdx-endian.c:105:18: warning: taking address of packed member of ‘struct VHDXLogDataSector’ may result in an unaligned pointer value [-Waddress-of-packed-member]
105 | le32_to_cpus(&d->sequence_low);
| ^~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_log_data_le_export’:
block/vhdx-endian.c:112:18: warning: taking address of packed member of ‘struct VHDXLogDataSector’ may result in an unaligned pointer value [-Waddress-of-packed-member]
112 | cpu_to_le32s(&d->data_signature);
| ^~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:113:18: warning: taking address of packed member of ‘struct VHDXLogDataSector’ may result in an unaligned pointer value [-Waddress-of-packed-member]
113 | cpu_to_le32s(&d->sequence_high);
| ^~~~~~~~~~~~~~~~~
block/vhdx-endian.c:114:18: warning: taking address of packed member of ‘struct VHDXLogDataSector’ may result in an unaligned pointer value [-Waddress-of-packed-member]
114 | cpu_to_le32s(&d->sequence_low);
| ^~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_log_entry_hdr_le_import’:
block/vhdx-endian.c:121:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
121 | le32_to_cpus(&hdr->signature);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:122:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
122 | le32_to_cpus(&hdr->checksum);
| ^~~~~~~~~~~~~~
block/vhdx-endian.c:123:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
123 | le32_to_cpus(&hdr->entry_length);
| ^~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:124:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
124 | le32_to_cpus(&hdr->tail);
| ^~~~~~~~~~
block/vhdx-endian.c:125:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
125 | le64_to_cpus(&hdr->sequence_number);
| ^~~~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:126:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
126 | le32_to_cpus(&hdr->descriptor_count);
| ^~~~~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:128:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
128 | le64_to_cpus(&hdr->flushed_file_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:129:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
129 | le64_to_cpus(&hdr->last_file_offset);
| ^~~~~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_log_entry_hdr_le_export’:
block/vhdx-endian.c:136:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
136 | cpu_to_le32s(&hdr->signature);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:137:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
137 | cpu_to_le32s(&hdr->checksum);
| ^~~~~~~~~~~~~~
block/vhdx-endian.c:138:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
138 | cpu_to_le32s(&hdr->entry_length);
| ^~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:139:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
139 | cpu_to_le32s(&hdr->tail);
| ^~~~~~~~~~
block/vhdx-endian.c:140:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
140 | cpu_to_le64s(&hdr->sequence_number);
| ^~~~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:141:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
141 | cpu_to_le32s(&hdr->descriptor_count);
| ^~~~~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:143:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
143 | cpu_to_le64s(&hdr->flushed_file_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c:144:18: warning: taking address of packed member of ‘struct VHDXLogEntryHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
144 | cpu_to_le64s(&hdr->last_file_offset);
| ^~~~~~~~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_region_header_le_import’:
block/vhdx-endian.c:153:18: warning: taking address of packed member of ‘struct VHDXRegionTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
153 | le32_to_cpus(&hdr->signature);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:154:18: warning: taking address of packed member of ‘struct VHDXRegionTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
154 | le32_to_cpus(&hdr->checksum);
| ^~~~~~~~~~~~~~
block/vhdx-endian.c:155:18: warning: taking address of packed member of ‘struct VHDXRegionTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
155 | le32_to_cpus(&hdr->entry_count);
| ^~~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_region_header_le_export’:
block/vhdx-endian.c:162:18: warning: taking address of packed member of ‘struct VHDXRegionTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
162 | cpu_to_le32s(&hdr->signature);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:163:18: warning: taking address of packed member of ‘struct VHDXRegionTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
163 | cpu_to_le32s(&hdr->checksum);
| ^~~~~~~~~~~~~~
block/vhdx-endian.c:164:18: warning: taking address of packed member of ‘struct VHDXRegionTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
164 | cpu_to_le32s(&hdr->entry_count);
| ^~~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_region_entry_le_import’:
block/vhdx-endian.c:172:18: warning: taking address of packed member of ‘struct VHDXRegionTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
172 | le64_to_cpus(&e->file_offset);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:173:18: warning: taking address of packed member of ‘struct VHDXRegionTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
173 | le32_to_cpus(&e->length);
| ^~~~~~~~~~
block/vhdx-endian.c:174:18: warning: taking address of packed member of ‘struct VHDXRegionTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
174 | le32_to_cpus(&e->data_bits);
| ^~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_region_entry_le_export’:
block/vhdx-endian.c:182:18: warning: taking address of packed member of ‘struct VHDXRegionTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
182 | cpu_to_le64s(&e->file_offset);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:183:18: warning: taking address of packed member of ‘struct VHDXRegionTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
183 | cpu_to_le32s(&e->length);
| ^~~~~~~~~~
block/vhdx-endian.c:184:18: warning: taking address of packed member of ‘struct VHDXRegionTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
184 | cpu_to_le32s(&e->data_bits);
| ^~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_metadata_header_le_import’:
block/vhdx-endian.c:193:18: warning: taking address of packed member of ‘struct VHDXMetadataTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
193 | le64_to_cpus(&hdr->signature);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:194:18: warning: taking address of packed member of ‘struct VHDXMetadataTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
194 | le16_to_cpus(&hdr->entry_count);
| ^~~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_metadata_header_le_export’:
block/vhdx-endian.c:201:18: warning: taking address of packed member of ‘struct VHDXMetadataTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
201 | cpu_to_le64s(&hdr->signature);
| ^~~~~~~~~~~~~~~
block/vhdx-endian.c:202:18: warning: taking address of packed member of ‘struct VHDXMetadataTableHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
202 | cpu_to_le16s(&hdr->entry_count);
| ^~~~~~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_metadata_entry_le_import’:
block/vhdx-endian.c:210:18: warning: taking address of packed member of ‘struct VHDXMetadataTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
210 | le32_to_cpus(&e->offset);
| ^~~~~~~~~~
block/vhdx-endian.c:211:18: warning: taking address of packed member of ‘struct VHDXMetadataTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
211 | le32_to_cpus(&e->length);
| ^~~~~~~~~~
block/vhdx-endian.c:212:18: warning: taking address of packed member of ‘struct VHDXMetadataTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
212 | le32_to_cpus(&e->data_bits);
| ^~~~~~~~~~~~~
block/vhdx-endian.c: In function ‘vhdx_metadata_entry_le_export’:
block/vhdx-endian.c:219:18: warning: taking address of packed member of ‘struct VHDXMetadataTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
219 | cpu_to_le32s(&e->offset);
| ^~~~~~~~~~
block/vhdx-endian.c:220:18: warning: taking address of packed member of ‘struct VHDXMetadataTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
220 | cpu_to_le32s(&e->length);
| ^~~~~~~~~~
block/vhdx-endian.c:221:18: warning: taking address of packed member of ‘struct VHDXMetadataTableEntry’ may result in an unaligned pointer value [-Waddress-of-packed-member]
221 | cpu_to_le32s(&e->data_bits);
| ^~~~~~~~~~~~~
CC block/vhdx-log.o
In file included from block/vhdx-log.c:27:
./block/vhdx.h: In function ‘leguid_to_cpus’:
./block/vhdx.h:423:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
423 | le32_to_cpus(&guid->data1);
| ^~~~~~~~~~~~
./block/vhdx.h:424:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
424 | le16_to_cpus(&guid->data2);
| ^~~~~~~~~~~~
./block/vhdx.h:425:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
425 | le16_to_cpus(&guid->data3);
| ^~~~~~~~~~~~
./block/vhdx.h: In function ‘cpu_to_leguids’:
./block/vhdx.h:430:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
430 | cpu_to_le32s(&guid->data1);
| ^~~~~~~~~~~~
./block/vhdx.h:431:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
431 | cpu_to_le16s(&guid->data2);
| ^~~~~~~~~~~~
./block/vhdx.h:432:18: warning: taking address of packed member of ‘struct MSGUID’ may result in an unaligned pointer value [-Waddress-of-packed-member]
432 | cpu_to_le16s(&guid->data3);
| ^~~~~~~~~~~~
block/vhdx-log.c: In function ‘vhdx_log_raw_to_le_sector’:
block/vhdx-log.c:838:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
838 | cpu_to_le64s(&desc->leading_bytes);
| ^~~~~~~~~~~~~~~~~~~~
block/vhdx-log.c:842:18: warning: taking address of packed member of ‘struct VHDXLogDescriptor’ may result in an unaligned pointer value [-Waddress-of-packed-member]
842 | cpu_to_le32s(&desc->trailing_bytes);
| ^~~~~~~~~~~~~~~~~~~~~
CC block/quorum.o
CC block/parallels.o
CC block/blkdebug.o
CC block/blkverify.o
CC block/blkreplay.o
CC block/block-backend.o
CC block/snapshot.o
CC block/qapi.o
CC block/file-posix.o
CC block/linux-aio.o
CC block/null.o
CC block/mirror.o
CC block/commit.o
CC block/io.o
block/io.c: In function ‘bdrv_is_allocated_above’:
block/io.c:1997:44: warning: ‘pnum_inter’ may be used uninitialized in this function [-Wmaybe-uninitialized]
1997 | (intermediate == top || offset + pnum_inter < size_inter)) {
| ~~~~~~~^~~~~~~~~~~~
CC block/throttle-groups.o
CC block/nbd.o
CC block/nbd-client.o
CC block/sheepdog.o
In file included from /usr/include/string.h:495,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:69,
from block/sheepdog.c:15:
In function ‘strncpy’,
inlined from ‘find_vdi_name’ at block/sheepdog.c:1264:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 256 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC block/iscsi-opts.o
CC block/accounting.o
CC block/dirty-bitmap.o
CC block/write-threshold.o
CC block/backup.o
CC block/replication.o
CC block/crypto.o
CC nbd/server.o
CC nbd/client.o
nbd/client.c: In function ‘nbd_receive_option_reply’:
nbd/client.c:152:18: warning: taking address of packed member of ‘struct nbd_opt_reply’ may result in an unaligned pointer value [-Waddress-of-packed-member]
152 | be64_to_cpus(&reply->magic);
| ^~~~~~~~~~~~~
nbd/client.c:153:18: warning: taking address of packed member of ‘struct nbd_opt_reply’ may result in an unaligned pointer value [-Waddress-of-packed-member]
153 | be32_to_cpus(&reply->option);
| ^~~~~~~~~~~~~~
nbd/client.c:154:18: warning: taking address of packed member of ‘struct nbd_opt_reply’ may result in an unaligned pointer value [-Waddress-of-packed-member]
154 | be32_to_cpus(&reply->type);
| ^~~~~~~~~~~~
nbd/client.c:155:18: warning: taking address of packed member of ‘struct nbd_opt_reply’ may result in an unaligned pointer value [-Waddress-of-packed-member]
155 | be32_to_cpus(&reply->length);
| ^~~~~~~~~~~~~~
CC nbd/common.o
CC block/iscsi.o
CC block/nfs.o
CC block/curl.o
CC block/rbd.o
CC block/gluster.o
CC block/ssh.o
CC block/dmg-bz2.o
CC crypto/init.o
CC crypto/hash.o
CC crypto/hash-nettle.o
CC crypto/hmac.o
CC crypto/hmac-nettle.o
CC crypto/aes.o
CC crypto/desrfb.o
CC crypto/cipher.o
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c: In function ‘aes_encrypt_native’:
./crypto/cipher-nettle.c:60:5: warning: ‘nettle_aes_encrypt’ is deprecated [-Wdeprecated-declarations]
60 | aes_encrypt(&aesctx->enc, length, dst, src);
| ^~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:173:1: note: declared here
173 | aes_encrypt(const struct aes_ctx *ctx,
| ^~~~~~~~~~~
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c: In function ‘aes_decrypt_native’:
./crypto/cipher-nettle.c:67:5: warning: ‘nettle_aes_decrypt’ is deprecated [-Wdeprecated-declarations]
67 | aes_decrypt(&aesctx->dec, length, dst, src);
| ^~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:177:1: note: declared here
177 | aes_decrypt(const struct aes_ctx *ctx,
| ^~~~~~~~~~~
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c: In function ‘aes_encrypt_wrapper’:
./crypto/cipher-nettle.c:134:5: warning: ‘nettle_aes_encrypt’ is deprecated [-Wdeprecated-declarations]
134 | aes_encrypt(&aesctx->enc, length, dst, src);
| ^~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:173:1: note: declared here
173 | aes_encrypt(const struct aes_ctx *ctx,
| ^~~~~~~~~~~
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c: In function ‘aes_decrypt_wrapper’:
./crypto/cipher-nettle.c:141:5: warning: ‘nettle_aes_decrypt’ is deprecated [-Wdeprecated-declarations]
141 | aes_decrypt(&aesctx->dec, length, dst, src);
| ^~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:177:1: note: declared here
177 | aes_decrypt(const struct aes_ctx *ctx,
| ^~~~~~~~~~~
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c: In function ‘qcrypto_cipher_ctx_new’:
./crypto/cipher-nettle.c:330:13: warning: ‘nettle_aes_set_encrypt_key’ is deprecated [-Wdeprecated-declarations]
330 | aes_set_encrypt_key(&((QCryptoNettleAES *)ctx->ctx)->enc,
| ^~~~~~~~~~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:158:1: note: declared here
158 | aes_set_encrypt_key(struct aes_ctx *ctx,
| ^~~~~~~~~~~~~~~~~~~
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c:332:13: warning: ‘nettle_aes_set_decrypt_key’ is deprecated [-Wdeprecated-declarations]
332 | aes_set_decrypt_key(&((QCryptoNettleAES *)ctx->ctx)->dec,
| ^~~~~~~~~~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:163:1: note: declared here
163 | aes_set_decrypt_key(struct aes_ctx *ctx,
| ^~~~~~~~~~~~~~~~~~~
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c:335:13: warning: ‘nettle_aes_set_encrypt_key’ is deprecated [-Wdeprecated-declarations]
335 | aes_set_encrypt_key(&((QCryptoNettleAES *)ctx->ctx_tweak)->enc,
| ^~~~~~~~~~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:158:1: note: declared here
158 | aes_set_encrypt_key(struct aes_ctx *ctx,
| ^~~~~~~~~~~~~~~~~~~
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c:337:13: warning: ‘nettle_aes_set_decrypt_key’ is deprecated [-Wdeprecated-declarations]
337 | aes_set_decrypt_key(&((QCryptoNettleAES *)ctx->ctx_tweak)->dec,
| ^~~~~~~~~~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:163:1: note: declared here
163 | aes_set_decrypt_key(struct aes_ctx *ctx,
| ^~~~~~~~~~~~~~~~~~~
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c:340:13: warning: ‘nettle_aes_set_encrypt_key’ is deprecated [-Wdeprecated-declarations]
340 | aes_set_encrypt_key(&((QCryptoNettleAES *)ctx->ctx)->enc,
| ^~~~~~~~~~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:158:1: note: declared here
158 | aes_set_encrypt_key(struct aes_ctx *ctx,
| ^~~~~~~~~~~~~~~~~~~
In file included from crypto/cipher.c:155:
./crypto/cipher-nettle.c:342:13: warning: ‘nettle_aes_set_decrypt_key’ is deprecated [-Wdeprecated-declarations]
342 | aes_set_decrypt_key(&((QCryptoNettleAES *)ctx->ctx)->dec,
| ^~~~~~~~~~~~~~~~~~~
In file included from ./crypto/cipher-nettle.c:26,
from crypto/cipher.c:155:
/usr/include/nettle/aes.h:163:1: note: declared here
163 | aes_set_decrypt_key(struct aes_ctx *ctx,
| ^~~~~~~~~~~~~~~~~~~
CC crypto/tlscreds.o
CC crypto/tlscredsanon.o
CC crypto/tlscredsx509.o
CC crypto/tlssession.o
CC crypto/secret.o
CC crypto/random-gnutls.o
CC crypto/pbkdf.o
CC crypto/pbkdf-nettle.o
CC crypto/ivgen.o
CC crypto/ivgen-essiv.o
CC crypto/ivgen-plain.o
CC crypto/ivgen-plain64.o
CC crypto/afsplit.o
CC crypto/xts.o
CC crypto/block.o
CC crypto/block-qcow.o
CC crypto/block-luks.o
crypto/block-luks.c: In function ‘qcrypto_block_luks_open’:
crypto/block-luks.c:693:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
693 | be16_to_cpus(&luks->header.version);
| ^~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:694:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
694 | be32_to_cpus(&luks->header.payload_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:695:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
695 | be32_to_cpus(&luks->header.key_bytes);
| ^~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:696:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
696 | be32_to_cpus(&luks->header.master_key_iterations);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:699:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
699 | be32_to_cpus(&luks->header.key_slots[i].active);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:700:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
700 | be32_to_cpus(&luks->header.key_slots[i].iterations);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:701:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
701 | be32_to_cpus(&luks->header.key_slots[i].key_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:702:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
702 | be32_to_cpus(&luks->header.key_slots[i].stripes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c: In function ‘qcrypto_block_luks_create’:
crypto/block-luks.c:1261:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1261 | cpu_to_be16s(&luks->header.version);
| ^~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1262:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1262 | cpu_to_be32s(&luks->header.payload_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1263:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1263 | cpu_to_be32s(&luks->header.key_bytes);
| ^~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1264:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1264 | cpu_to_be32s(&luks->header.master_key_iterations);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1267:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1267 | cpu_to_be32s(&luks->header.key_slots[i].active);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1268:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1268 | cpu_to_be32s(&luks->header.key_slots[i].iterations);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1269:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1269 | cpu_to_be32s(&luks->header.key_slots[i].key_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1270:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1270 | cpu_to_be32s(&luks->header.key_slots[i].stripes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1285:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1285 | be16_to_cpus(&luks->header.version);
| ^~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1286:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1286 | be32_to_cpus(&luks->header.payload_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1287:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1287 | be32_to_cpus(&luks->header.key_bytes);
| ^~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1288:18: warning: taking address of packed member of ‘struct QCryptoBlockLUKSHeader’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1288 | be32_to_cpus(&luks->header.master_key_iterations);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1291:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1291 | be32_to_cpus(&luks->header.key_slots[i].active);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1292:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1292 | be32_to_cpus(&luks->header.key_slots[i].iterations);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1293:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1293 | be32_to_cpus(&luks->header.key_slots[i].key_offset);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crypto/block-luks.c:1294:22: warning: taking address of packed member of ‘struct QCryptoBlockLUKSKeySlot’ may result in an unaligned pointer value [-Waddress-of-packed-member]
1294 | be32_to_cpus(&luks->header.key_slots[i].stripes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC io/channel.o
CC io/channel-buffer.o
CC io/channel-command.o
CC io/channel-file.o
CC io/channel-socket.o
CC io/channel-tls.o
CC io/channel-watch.o
CC io/channel-websock.o
CC io/channel-util.o
CC io/dns-resolver.o
CC io/task.o
CC qom/object.o
CC qom/container.o
CC qom/qom-qobject.o
CC qom/object_interfaces.o
LINK qemu-nbd
GEN qemu-img-cmds.h
CC qemu-img.o
LINK qemu-img
CC qemu-io.o
LINK qemu-io
CC qemu-bridge-helper.o
LINK qemu-bridge-helper
CC cpus-common.o
CC disas/i386.o
CC hw/core/qdev.o
CC hw/core/qdev-properties.o
CC hw/core/bus.o
CC hw/core/reset.o
CC hw/core/fw-path-provider.o
CC hw/core/irq.o
CC hw/core/hotplug.o
CC hw/core/nmi.o
CC qom/cpu.o
CC chardev/char.o
CC chardev/char-fd.o
CC chardev/char-fe.o
CC chardev/char-file.o
CC chardev/char-io.o
CC chardev/char-mux.o
CC chardev/char-null.o
CC chardev/char-parallel.o
CC chardev/char-pipe.o
CC chardev/char-pty.o
CC chardev/char-ringbuf.o
CC chardev/char-serial.o
CC chardev/char-socket.o
CC chardev/char-stdio.o
CC chardev/char-udp.o
GEN x86_64-linux-user/config-target.h
CC x86_64-linux-user/exec.o
CC x86_64-linux-user/tcg/tcg.o
CC x86_64-linux-user/tcg/tcg-op.o
CC x86_64-linux-user/tcg/optimize.o
CC x86_64-linux-user/tcg/tcg-common.o
CC x86_64-linux-user/tcg/tcg-runtime.o
CC x86_64-linux-user/fpu/softfloat.o
CC x86_64-linux-user/disas.o
GEN x86_64-linux-user/gdbstub-xml.c
CC x86_64-linux-user/gdbstub-xml.o
CC x86_64-linux-user/hax-stub.o
CC x86_64-linux-user/gdbstub.o
CC x86_64-linux-user/thunk.o
CC x86_64-linux-user/user-exec.o
CC x86_64-linux-user/user-exec-stub.o
CC x86_64-linux-user/accel/stubs/kvm-stub.o
CC x86_64-linux-user/accel/tcg/cpu-exec.o
In file included from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/../patches/../../config.h:20,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/../patches/afl-qemu-cpu-inl.h:30,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/accel/tcg/cpu-exec.c:39:
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/../patches/../../types.h:83: warning: "likely" redefined
83 | #define likely(_x) __builtin_expect(!!(_x), 1)
|
In file included from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:36,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/accel/tcg/cpu-exec.c:19:
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/compiler.h:57: note: this is the location of the previous definition
57 | #define likely(x) __builtin_expect(!!(x), 1)
|
In file included from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/../patches/../../config.h:20,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/../patches/afl-qemu-cpu-inl.h:30,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/accel/tcg/cpu-exec.c:39:
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/../patches/../../types.h:84: warning: "unlikely" redefined
84 | #define unlikely(_x) __builtin_expect(!!(_x), 0)
|
In file included from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:36,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/accel/tcg/cpu-exec.c:19:
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/compiler.h:58: note: this is the location of the previous definition
58 | #define unlikely(x) __builtin_expect(!!(x), 0)
|
In file included from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/accel/tcg/cpu-exec.c:39:
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/../patches/afl-qemu-cpu-inl.h:100:19: warning: redundant redeclaration of ‘tb_htable_lookup’ [-Wredundant-decls]
100 | TranslationBlock *tb_htable_lookup(CPUState*, target_ulong, target_ulong, uint32_t);
| ^~~~~~~~~~~~~~~~
In file included from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/accel/tcg/cpu-exec.c:23:
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/exec/exec-all.h:403:19: note: previous declaration of ‘tb_htable_lookup’ was here
403 | TranslationBlock *tb_htable_lookup(CPUState *cpu, target_ulong pc,
| ^~~~~~~~~~~~~~~~
CC x86_64-linux-user/accel/tcg/cpu-exec-common.o
CC x86_64-linux-user/accel/tcg/translate-all.o
CC x86_64-linux-user/linux-user/main.o
CC x86_64-linux-user/linux-user/syscall.o
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/linux-user/syscall.c:261:16: error: static declaration of ‘gettid’ follows non-static declaration
261 | _syscall0(int, gettid)
| ^~~~~~
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/linux-user/syscall.c:191:13: note: in definition of macro ‘_syscall0’
191 | static type name (void) \
| ^~~~
In file included from /usr/include/unistd.h:1170,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/include/qemu/osdep.h:75,
from /home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/linux-user/syscall.c:20:
/usr/include/bits/unistd_ext.h:34:16: note: previous declaration of ‘gettid’ was here
34 | extern __pid_t gettid (void) __THROW;
| ^~~~~~
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/linux-user/ioctls.h:173:9: error: ‘SIOCGSTAMP’ undeclared here (not in a function); did you mean ‘SIOCSRARP’?
173 | IOCTL(SIOCGSTAMP, IOC_R, MK_PTR(MK_STRUCT(STRUCT_timeval)))
| ^~~~~~~~~~
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/linux-user/syscall.c:5597:23: note: in definition of macro ‘IOCTL’
5597 | { TARGET_ ## cmd, cmd, #cmd, access, 0, { __VA_ARGS__ } },
| ^~~
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/linux-user/ioctls.h:174:9: error: ‘SIOCGSTAMPNS’ undeclared here (not in a function); did you mean ‘SIOCGSTAMP_OLD’?
174 | IOCTL(SIOCGSTAMPNS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_timespec)))
| ^~~~~~~~~~~~
/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/linux-user/syscall.c:5597:23: note: in definition of macro ‘IOCTL’
5597 | { TARGET_ ## cmd, cmd, #cmd, access, 0, { __VA_ARGS__ } },
| ^~~
make[1]: *** [/home/kerrick/build/afl-qemu/src/afl-2.52b/qemu_mode/qemu-2.10.0/rules.mak:66: linux-user/syscall.o] Error 1
make: *** [Makefile:326: subdir-x86_64-linux-user] Error 2
==> ERROR: A failure occurred in build().
Aborting...
➜ afl-qemu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment