AFLplusplus / qemuafl

This fork of QEMU enables fuzzing userspace ELF binaries under AFL++.

Home Page:https://aflplus.plus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make error

x1280 opened this issue · comments

commented

GIT ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 meson dtc capstone slirp
[1/8504] Generating qemu-version.h with a meson_exe.py custom command
[2/8504] Compiling C object libqemu-cris-softmmu.fa.p/tcg_tcg-op.c.o
FAILED: libqemu-cris-softmmu.fa.p/tcg_tcg-op.c.o
cc -Ilibqemu-cris-softmmu.fa.p -I. -I.. -Itarget/cris -I../target/cris -I../capstone/include/capstone -Itrace -Iqapi -Iui -Iui/shader -I/usr/include/pixman-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=auto -pipe -Wall -Winvalid-pch -Werror -std=gnu99 -O2 -g -isystem /home/x/FitM/AFLplusplus/qemuafl/linux-headers -isystem linux-headers -iquote . -iquote /home/x/FitM/AFLplusplus/qemuafl -iquote /home/x/FitM/AFLplusplus/qemuafl/include -iquote /home/x/FitM/AFLplusplus/qemuafl/disas/libvixl -iquote /home/x/FitM/AFLplusplus/qemuafl/tcg/i386 -iquote /home/x/FitM/AFLplusplus/qemuafl/accel/tcg -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -Wno-unused-function -fPIC -isystem../linux-headers -isystemlinux-headers -DNEED_CPU_H '-DCONFIG_TARGET="cris-softmmu-config-target.h"' '-DCONFIG_DEVICES="cris-softmmu-config-devices.h"' -MD -MQ libqemu-cris-softmmu.fa.p/tcg_tcg-op.c.o -MF libqemu-cris-softmmu.fa.p/tcg_tcg-op.c.o.d -o libqemu-cris-softmmu.fa.p/tcg_tcg-op.c.o -c ../tcg/tcg-op.c
In file included from /home/x/FitM/AFLplusplus/qemuafl/qemuafl/qasan-qemu.h:36,
from ../tcg/tcg-op.c:35:
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h:98:8: error: unknown type name ‘abi_ulong’
98 | extern abi_ulong afl_entry_point, afl_start_code, afl_end_code;
| ^~~~~~~~~
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h:99:8: error: unknown type name ‘abi_ulong’
99 | extern abi_ulong afl_persistent_addr;
| ^~~~~~~~~
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h:100:8: error: unknown type name ‘abi_ulong’
100 | extern abi_ulong afl_persistent_ret_addr;
| ^~~~~~~~~
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h:121:17: error: unknown type name ‘abi_ulong’
121 | extern __thread abi_ulong afl_prev_loc;
| ^~~~~~~~~
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h:141:1: error: unknown type name ‘abi_ulong’
141 | abi_ulong afl_get_brk(void);
| ^~~~~~~~~
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h:142:1: error: unknown type name ‘abi_ulong’
142 | abi_ulong afl_set_brk(abi_ulong new_brk);
| ^~~~~~~~~
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h:142:23: error: unknown type name ‘abi_ulong’
142 | abi_ulong afl_set_brk(abi_ulong new_brk);
| ^~~~~~~~~
In file included from /home/x/FitM/AFLplusplus/qemuafl/qemuafl/qasan-qemu.h:36,
from ../tcg/tcg-op.c:35:
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h: In function ‘is_valid_addr’:
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h:167:11: error: implicit declaration of function ‘page_get_flags’ [-Werror=implicit-function-declaration]
167 | flags = page_get_flags(page);
| ^~~~~~~~~~~~~~
/home/x/FitM/AFLplusplus/qemuafl/qemuafl/common.h:167:11: error: nested extern declaration of ‘page_get_flags’ [-Werror=nested-externs]
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.
make: *** [Makefile:152: run-ninja] Error 1

this is not a good issue.
what is your setup? linux distribution, did you set your compilation to e.g. mips, sparc, ... ? what compiler are you using etc.

I'm having the same problem.
Ubuntu 22.04.1 - Linux 5.15.0-52-generic
gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0

$ ../configure --disable-werror --target-list=x86_64-softmmu
The Meson build system
Version: 0.55.0
Source dir: /home/dmo/projects/qemuafl
Build dir: /home/dmo/projects/qemuafl/build
Build type: native build
Project name: qemu
Project version: 5.2.50
C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
C linker for the host machine: cc ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
../meson.build:10: WARNING: Module unstable-keyval has no backwards or forwards compatibility and might not exist in future releases.
Program sh found: YES
Program python3 found: YES (/usr/bin/python3)
Program bzip2 found: YES
C++ compiler for the host machine: c++ (gcc 11.3.0 "c++ (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Program cgcc found: NO
Library m found: YES
Library util found: YES
Run-time dependency appleframeworks found: NO (tried framework)
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency pixman-1 found: YES 0.40.0
Library aio found: NO
Run-time dependency zlib found: YES 1.2.11
Run-time dependency libnfs found: NO (tried pkgconfig)
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency libseccomp found: NO (tried pkgconfig)
Has header "cap-ng.h" : NO 
Run-time dependency xkbcommon found: NO (tried pkgconfig)
Library rt found: YES
Run-time dependency libiscsi found: NO (tried pkgconfig)
Run-time dependency libzstd found: NO (tried pkgconfig)
Run-time dependency libcurl found: NO (tried pkgconfig)
Run-time dependency libudev found: NO (tried pkgconfig)
Library mpathpersist found: NO
Run-time dependency ncursesw found: YES 6.3.20211021
Has header "brlapi.h" : NO 
sdl2-config found: NO
Run-time dependency sdl2 found: NO (tried pkgconfig and config-tool)
Library rados found: NO
Has header "rbd/librbd.h" : NO 
Run-time dependency glusterfs-api found: NO (tried pkgconfig)
Has header "bzlib.h" : NO 
Has header "lzfse.h" : NO 
Run-time dependency gtk+-3.0 found: NO (tried pkgconfig)
Run-time dependency libpng found: NO (tried pkgconfig)
Run-time dependency libjpeg found: NO (tried pkgconfig)
Has header "sasl/sasl.h" : NO 
Has header "snappy-c.h" : NO 
Has header "lzo/lzo1x.h" : NO 
Run-time dependency u2f-emu found: NO (tried pkgconfig)
Run-time dependency libkeyutils found: NO (tried pkgconfig)
Checking for function "gettid" : YES 
Run-time dependency fuse3 found: NO (tried pkgconfig)
Has header "linux/btrfs.h" : YES 
Has header "libdrm/drm.h" : NO 
Has header "pty.h" : YES 
Has header "sys/ioccom.h" : NO 
Has header "sys/kcov.h" : NO 
Checking for function "system" : YES 
Header <sys/mount.h> has symbol "FSCONFIG_SET_FLAG" : NO 
Checking for function "preadv" : YES 
Program scripts/minikconf.py found: YES
Configuring x86_64-softmmu-config-target.h using configuration
Configuring x86_64-softmmu-config-devices.mak with command
Reading depfile: /home/dmo/projects/qemuafl/build/meson-private/x86_64-softmmu-config-devices.mak.d
Configuring x86_64-softmmu-config-devices.h using configuration
Run-time dependency capstone found: NO (tried pkgconfig)
Configuring capstone-defs.h using configuration
Run-time dependency slirp found: NO (tried pkgconfig)
Configuring libslirp-version.h using configuration
Library fdt found: NO
Configuring config-host.h using configuration
Program scripts/hxtool found: YES
Program scripts/shaderinclude.pl found: YES
Program scripts/qapi-gen.py found: YES
Program scripts/qemu-version.sh found: YES

|Executing subproject libvhost-user method meson 
|
|Project name: libvhost-user
|Project version: undefined
|C compiler for the host machine: cc (gcc 11.3.0 "cc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0")
|C linker for the host machine: cc ld.bfd 2.38
|Run-time dependency threads found: YES
|Dependency glib-2.0 found: YES 5.2.50 (overridden)
|Build targets in project: 11
|Subproject libvhost-user finished.

Dependency threads found: YES unknown (cached)
Program keycodemapdb/tools/keymap-gen found: YES
Program scripts/decodetree.py found: YES
Program ../scripts/modules/module_block.py found: YES
Program ../scripts/block-coroutine-wrapper.py found: YES
Program nm found: YES
Program scripts/undefsym.py found: YES
Program scripts/feature_to_c.sh found: YES
Configuring 50-edk2-i386-secure.json using configuration
Configuring 50-edk2-x86_64-secure.json using configuration
Configuring 60-edk2-aarch64.json using configuration
Configuring 60-edk2-arm.json using configuration
Configuring 60-edk2-i386.json using configuration
Configuring 60-edk2-x86_64.json using configuration
Program qemu-keymap found: NO
Program sphinx-build-3 sphinx-build found: NO
Program python3 found: YES (/usr/bin/python3)
Program diff found: YES
Program dbus-daemon found: YES
Program initrd-stress.sh found: YES
Build targets in project: 441

qemu 5.2.50

  Directories
                   Install prefix: /usr/local
                   BIOS directory: share/qemu
                    firmware path: /usr/local/share/qemu-firmware
                 binary directory: bin
                library directory: lib
                 module directory: lib/qemu
                libexec directory: libexec
                include directory: include
                 config directory: /usr/local/etc
            local state directory: /usr/local/var
                 Manual directory: share/man
                    Doc directory: /usr/local/share/doc
                  Build directory: /home/dmo/projects/qemuafl/build
                      Source path: /home/dmo/projects/qemuafl
                   GIT submodules: ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 meson dtc capstone slirp

  Host binaries
                              git: git
                             make: make
                           python: /usr/bin/python3 (version: 3.10)
                     sphinx-build: NO
                              gdb: /usr/bin/gdb
                      genisoimage: 
                             smbd: "/usr/sbin/smbd"

  Configurable features
                    Documentation: NO
            system-mode emulation: YES
              user-mode emulation: NO
                      block layer: YES
                    Install blobs: YES
                   module support: NO
                   plugin support: NO
                  fuzzing support: NO
                    Audio drivers: oss
                   Trace backends: log
                    QOM debugging: YES
             vhost-kernel support: YES
                vhost-net support: YES
             vhost-crypto support: YES
               vhost-scsi support: YES
              vhost-vsock support: YES
               vhost-user support: YES
    vhost-user-blk server support: YES
            vhost-user-fs support: YES
               vhost-vdpa support: YES
                build guest agent: YES

  Compilation
                         host CPU: x86_64
                  host endianness: little
                       C compiler: cc
                  Host C compiler: cc
                     C++ compiler: c++
                          ARFLAGS: rv
                           CFLAGS: -O2 -g
                         CXXFLAGS: -O2 -g
                      QEMU_CFLAGS: -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv  -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -Wno-unused-function
                     QEMU_LDFLAGS: -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -m64 -ldl  -fstack-protector-strong
                         profiler: NO
     link-time optimization (LTO): NO
                              PIE: YES
                     static build: NO
              malloc trim support: YES
                       membarrier: NO
                   preadv support: YES
                        fdatasync: YES
                          madvise: YES
                    posix_madvise: YES
                   posix_memalign: YES
                debug stack usage: NO
                  mutex debugging: NO
                 memory allocator: system
                avx2 optimization: YES
             avx512f optimization: NO
                    gprof enabled: NO
                             gcov: NO
                 thread sanitizer: NO
                      CFI support: NO
                   strip binaries: YES
                           sparse: NO
                  mingw32 support: NO
                     x86_64 tests: cc

  Targets and accelerators
                      KVM support: YES
                      HAX support: NO
                      HVF support: NO
                     WHPX support: NO
                      Xen support: NO
                      TCG support: YES
                      TCG backend: native (x86_64)
                TCG debug enabled: NO
                      target list: x86_64-softmmu
                  default devices: YES
         out of process emulation: YES

  Block layer support
                coroutine backend: ucontext
                   coroutine pool: YES
             Block whitelist (rw): 
             Block whitelist (ro): 
                   VirtFS support: NO
            build virtiofs daemon: NO
             Live block migration: YES
              replication support: YES
                    bochs support: YES
                    cloop support: YES
                      dmg support: YES
                  qcow v1 support: YES
                      vdi support: YES
                    vvfat support: YES
                      qed support: YES
                parallels support: YES
                 sheepdog support: NO
                     FUSE exports: NO

  Crypto
                     TLS priority: "NORMAL"
                   GNUTLS support: NO
                        libgcrypt: NO
                           nettle: NO
                     crypto afalg: NO
                         rng-none: NO
                    Linux keyring: YES

  Dependencies
                      SDL support: NO
                SDL image support: NO
                      GTK support: NO
                           pixman: YES
                      VTE support: NO
                    slirp support: internal
                         libtasn1: NO
                              PAM: NO
                    iconv support: YES
                   curses support: YES
                    virgl support: NO
                     curl support: NO
                Multipath support: NO
                      VNC support: YES
                 VNC SASL support: NO
                 VNC JPEG support: NO
                  VNC PNG support: NO
                   brlapi support: NO
                      vde support: NO
                   netmap support: NO
                Linux AIO support: NO
           Linux io_uring support: NO
               ATTR/XATTR support: YES
                     RDMA support: NO
                   PVRDMA support: NO
                      fdt support: internal
                libcap-ng support: NO
                    spice support: NO
                      rbd support: NO
                   xfsctl support: NO
                smartcard support: NO
                      U2F support: NO
                           libusb: NO
                    usb net redir: NO
                   OpenGL support: NO
                   OpenGL dmabufs: NO
                 libiscsi support: NO
                   libnfs support: NO
                  seccomp support: NO
                GlusterFS support: NO
                      TPM support: YES
                   libssh support: NO
                      lzo support: NO
                   snappy support: NO
                    bzip2 support: NO
                    lzfse support: NO
                     zstd support: NO
                NUMA host support: NO
                          libxml2: YES
                         capstone: internal
                  libpmem support: NO
                libdaxctl support: NO
                          libudev: NO
                       FUSE lseek: NO

  Subprojects
                    libvhost-user: YES

Found ninja-1.10.1 at /usr/bin/ninja
WARNING: custom_target 'shared QAPI source files' has more than one output! Using the first one.
WARNING: custom_target 'QGA QAPI files' has more than one output! Using the first one.
WARNING: custom_target 'QAPI files for qemu-storage-daemon' has more than one output! Using the first one.
WARNING: custom_target 'Test QAPI files' has more than one output! Using the first one.
WARNING: custom_target 'QAPI test (include)' has more than one output! Using the first one.
WARNING: custom_target 'QAPI doc' has more than one output! Using the first one.
WARNING: custom_target 'dbus-vmstate description' has more than one output! Using the first one.
Command line for building ['libcommon.fa'] is long, using a response file
$ make
/usr/bin/ninja  build.ninja && touch build.ninja.stamp
ninja: no work to do.
/usr/bin/python3 -B /home/dmo/projects/qemuafl/meson/meson.py introspect --targets --tests --benchmarks | /usr/bin/python3 -B scripts/mtest2make.py > Makefile.mtest
  GIT     ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 meson dtc capstone slirp
  GIT     ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 meson dtc capstone slirp
[1/2112] Compiling C object libcapstone.a.p/capstone_cs.c.o
[2/2112] Compiling C object libcapstone.a.p/capstone_MCInstrDesc.c.o
[3/2112] Compiling C object libcapstone.a.p/capstone_MCInst.c.o
[4/2112] Compiling C object libcapstone.a.p/capstone_arch_X86_X86ATTInstPrinter.c.o
[5/2112] Compiling C object libcapstone.a.p/capstone_arch_X86_X86DisassemblerDecoder.c.o
[6/2112] Compiling C object libcapstone.a.p/capstone_MCRegisterInfo.c.o
[7/2112] Compiling C object libcapstone.a.p/capstone_SStream.c.o
[8/2112] Compiling C object libcapstone.a.p/capstone_utils.c.o
[9/2112] Compiling C object libcapstone.a.p/capstone_arch_X86_X86Disassembler.c.o
[10/2112] Compiling C object libcapstone.a.p/capstone_arch_X86_X86Module.c.o
[11/2112] Compiling C object libcapstone.a.p/capstone_arch_X86_X86IntelInstPrinter.c.o
[12/2112] Compiling C object libcapstone.a.p/capstone_arch_X86_X86InstPrinterCommon.c.o
[13/2112] Compiling C object libcapstone.a.p/capstone_arch_X86_X86Mapping.c.o
[14/2112] Linking static target libcapstone.a
[15/2112] Generating qemu-version.h with a meson_exe.py custom command
fatal: No names found, cannot describe anything.
[16/2112] Compiling C object libqemuutil.a.p/util_iova-tree.c.o
...
[603/2112] Compiling C object libqemu-x86_64-softmmu.fa.p/accel_tcg_translator.c.o
FAILED: libqemu-x86_64-softmmu.fa.p/accel_tcg_translator.c.o 
cc -Ilibqemu-x86_64-softmmu.fa.p -I. -I.. -Itarget/i386 -I../target/i386 -I../capstone/include/capstone -Iqapi -Itrace -Iui -Iui/shader -I/usr/include/pixman-1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fdiagnostics-color=auto -pipe -Wall -Winvalid-pch -std=gnu99 -O2 -g -isystem /home/dmo/projects/qemuafl/linux-headers -isystem linux-headers -iquote . -iquote /home/dmo/projects/qemuafl -iquote /home/dmo/projects/qemuafl/include -iquote /home/dmo/projects/qemuafl/disas/libvixl -iquote /home/dmo/projects/qemuafl/tcg/i386 -iquote /home/dmo/projects/qemuafl/accel/tcg -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -Wno-unused-function -fPIC -isystem../linux-headers -isystemlinux-headers -DNEED_CPU_H '-DCONFIG_TARGET="x86_64-softmmu-config-target.h"' '-DCONFIG_DEVICES="x86_64-softmmu-config-devices.h"' -MD -MQ libqemu-x86_64-softmmu.fa.p/accel_tcg_translator.c.o -MF libqemu-x86_64-softmmu.fa.p/accel_tcg_translator.c.o.d -o libqemu-x86_64-softmmu.fa.p/accel_tcg_translator.c.o -c ../accel/tcg/translator.c
In file included from ../accel/tcg/translator.c:22:
/home/dmo/projects/qemuafl/qemuafl/common.h:98:8: error: unknown type name ‘abi_ulong’
   98 | extern abi_ulong       afl_entry_point, afl_start_code, afl_end_code;
      |        ^~~~~~~~~
/home/dmo/projects/qemuafl/qemuafl/common.h:99:8: error: unknown type name ‘abi_ulong’
   99 | extern abi_ulong       afl_persistent_addr;
      |        ^~~~~~~~~
/home/dmo/projects/qemuafl/qemuafl/common.h:100:8: error: unknown type name ‘abi_ulong’
  100 | extern abi_ulong       afl_persistent_ret_addr;
      |        ^~~~~~~~~
/home/dmo/projects/qemuafl/qemuafl/common.h:121:17: error: unknown type name ‘abi_ulong’
  121 | extern __thread abi_ulong afl_prev_loc;
      |                 ^~~~~~~~~
/home/dmo/projects/qemuafl/qemuafl/common.h:141:1: error: unknown type name ‘abi_ulong’
  141 | abi_ulong afl_get_brk(void);
      | ^~~~~~~~~
/home/dmo/projects/qemuafl/qemuafl/common.h:142:1: error: unknown type name ‘abi_ulong’
  142 | abi_ulong afl_set_brk(abi_ulong new_brk);
      | ^~~~~~~~~
/home/dmo/projects/qemuafl/qemuafl/common.h:142:23: error: unknown type name ‘abi_ulong’
  142 | abi_ulong afl_set_brk(abi_ulong new_brk);
      |                       ^~~~~~~~~
In file included from ../accel/tcg/translator.c:22:
/home/dmo/projects/qemuafl/qemuafl/common.h: In function ‘is_valid_addr’:
/home/dmo/projects/qemuafl/qemuafl/common.h:167:11: warning: implicit declaration of function ‘page_get_flags’; did you mean ‘g_uri_get_flags’? [-Wimplicit-function-declaration]
  167 |   flags = page_get_flags(page);
      |           ^~~~~~~~~~~~~~
      |           g_uri_get_flags
/home/dmo/projects/qemuafl/qemuafl/common.h:167:11: warning: nested extern declaration of ‘page_get_flags’ [-Wnested-externs]
ninja: build stopped: subcommand failed.
make: *** [Makefile:152: run-ninja] Error 1

hmm it builds for me, even with gcc-12.

you both report different make errors.

But I seed different stuff here:

[1/2112] Compiling C object libcapstone.a.p/capstone_cs.c.o
[2/2112] Compiling C object libcapstone.a.p/capstone_MCInstrDesc.c.o

and

[1/8504] Generating qemu-version.h with a meson_exe.py custom command
[2/8504] Compiling C object libqemu-cris-softmmu.fa.p/tcg_tcg-op.c.o

for me it is

[1/975] Generating trace/generated-helpers.c with a custom command
[2/975] Generating trace/generated-tcg-tracers.h with a custom command

so much less compilation steps.

I mentioned in #45 as noted by the autogenerated github "mention" comment above.
I will comment here for posterity and limited confusion.

The top level comment is probably compiling without CONFIG_USER_ONLY.
This will happen if they try to compile prior to reading the docs which explains that build_qemu_support.sh must be run. With no real information in the OP, I suspect that this was their intent. To be fair, this is easy-ish to miss if you are not familiar with the codebase.

ctrl+f in the README for AFLplusplus presents nothing.

The other comment explains that they built this in-tree with specific configuration options: ../configure --disable-werror --target-list=x86_64-softmmu. While not the intended usage, I believe that this is a legitimate usage

softmmu targets are not supported, stick to build_qemu_support.sh in AFL++