Closed krimoz closed 11 months ago
@krimoz Are you able to build the upstream qemu version? If you get the same error with the upstream version, please report the issue upstream instead. The errors don't seem to be related to ESP-specific changes.
Yes ,I was able to clone and build https://www.gitlab.com/qemu/qemu.
Here's the log from running configure in the espressif fork :
./configure Using './build' as the directory for build output ln: failed to create symbolic link 'aarch64-softmmu/qemu-system-aarch64.exe': No such file or directory ln: failed to create symbolic link 'alpha-softmmu/qemu-system-alpha.exe': No such file or directory ln: failed to create symbolic link 'arm-softmmu/qemu-system-arm.exe': No such file or directory ln: failed to create symbolic link 'avr-softmmu/qemu-system-avr.exe': No such file or directory ln: failed to create symbolic link 'cris-softmmu/qemu-system-cris.exe': No such file or directory ln: failed to create symbolic link 'hppa-softmmu/qemu-system-hppa.exe': No such file or directory ln: failed to create symbolic link 'i386-softmmu/qemu-system-i386.exe': No such file or directory ln: failed to create symbolic link 'm68k-softmmu/qemu-system-m68k.exe': No such file or directory ln: failed to create symbolic link 'microblaze-softmmu/qemu-system-microblaze.exe': No such file or directory ln: failed to create symbolic link 'microblazeel-softmmu/qemu-system-microblazeel.exe': No such file or directory ln: failed to create symbolic link 'mips-softmmu/qemu-system-mips.exe': No such file or directory ln: failed to create symbolic link 'mips64-softmmu/qemu-system-mips64.exe': No such file or directory ln: failed to create symbolic link 'mips64el-softmmu/qemu-system-mips64el.exe': No such file or directory ln: failed to create symbolic link 'mipsel-softmmu/qemu-system-mipsel.exe': No such file or directory ln: failed to create symbolic link 'nios2-softmmu/qemu-system-nios2.exe': No such file or directory ln: failed to create symbolic link 'or1k-softmmu/qemu-system-or1k.exe': No such file or directory ln: failed to create symbolic link 'ppc-softmmu/qemu-system-ppc.exe': No such file or directory ln: failed to create symbolic link 'ppc64-softmmu/qemu-system-ppc64.exe': No such file or directory ln: failed to create symbolic link 'riscv32-softmmu/qemu-system-riscv32.exe': No such file or directory ln: failed to create symbolic link 'riscv64-softmmu/qemu-system-riscv64.exe': No such file or directory ln: failed to create symbolic link 'rx-softmmu/qemu-system-rx.exe': No such file or directory ln: failed to create symbolic link 's390x-softmmu/qemu-system-s390x.exe': No such file or directory ln: failed to create symbolic link 'sh4-softmmu/qemu-system-sh4.exe': No such file or directory ln: failed to create symbolic link 'sh4eb-softmmu/qemu-system-sh4eb.exe': No such file or directory ln: failed to create symbolic link 'sparc-softmmu/qemu-system-sparc.exe': No such file or directory ln: failed to create symbolic link 'sparc64-softmmu/qemu-system-sparc64.exe': No such file or directory ln: failed to create symbolic link 'tricore-softmmu/qemu-system-tricore.exe': No such file or directory ln: failed to create symbolic link 'x86_64-softmmu/qemu-system-x86_64.exe': No such file or directory ln: failed to create symbolic link 'xtensa-softmmu/qemu-system-xtensa.exe': No such file or directory ln: failed to create symbolic link 'xtensaeb-softmmu/qemu-system-xtensaeb.exe': No such file or directory The Meson build system Version: 0.59.3 Source dir: D:/ESP/msys64/home/karim/qemu-esp Build dir: D:/ESP/msys64/home/karim/qemu-esp/build Build type: native build Project name: qemu Project version: 7.0.0 C compiler for the host machine: cc -m64 -mcx16 (gcc 12.2.0 "cc (Rev1, Built by MSYS2 project) 12.2.0") C linker for the host machine: cc -m64 -mcx16 ld.bfd 2.39 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program sh found: YES (D:\ESP\msys64\usr\bin/sh.EXE) Program python3 found: YES (D:/ESP/msys64/mingw64/bin/python3.exe) Program bzip2 found: YES (D:\ESP\msys64\mingw64\bin/bzip2.EXE) C++ compiler for the host machine: c++ -m64 -mcx16 (gcc 12.2.0 "c++ (Rev1, Built by MSYS2 project) 12.2.0") C++ linker for the host machine: c++ -m64 -mcx16 ld.bfd 2.39 Program cgcc found: NO Library m found: YES Run-time dependency threads found: YES Library util found: NO Program midl found: NO Program widl found: YES (D:\ESP\msys64\mingw64\bin/widl.EXE) Library ws2_32 found: YES Library winmm found: YES Windows resource compiler: GNU windres (GNU Binutils) 2.39 Has header "WinHvPlatform.h" : YES Has header "WinHvEmulation.h" : YES Run-time dependency appleframeworks found: NO (tried framework) Found pkg-config: D:\ESP\msys64\mingw64\bin/pkg-config.EXE (1.8.0) Run-time dependency pixman-1 found: YES 0.40.0 Run-time dependency zlib found: YES 1.2.12 Has header "libaio.h" : NO Run-time dependency liburing found: NO (tried pkgconfig) Run-time dependency libnfs found: NO (tried pkgconfig) Has header "attr/xattr.h" : NO 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) Has header "libvdeplug.h" : NO Run-time dependency jack found: NO (tried pkgconfig) Run-time dependency spice-protocol found: NO (tried pkgconfig) Run-time dependency spice-server found: NO (tried pkgconfig) Library rt found: NO Run-time dependency libiscsi found: NO (tried pkgconfig) Run-time dependency libzstd found: YES 1.5.2 Run-time dependency virglrenderer found: NO (tried pkgconfig) Run-time dependency libcurl found: NO (tried pkgconfig) Run-time dependency ncurses found: NO (tried pkgconfig) Run-time dependency ncursesw found: YES 6.3.20211021 Has header "brlapi.h" : NO Run-time dependency sdl2 found: YES 2.24.0 Run-time dependency sdl2_image found: NO (tried pkgconfig) Library rados found: NO Has header "rbd/librbd.h" : NO Run-time dependency glusterfs-api found: NO (tried pkgconfig) Run-time dependency libssh found: NO (tried pkgconfig) Has header "bzlib.h" : YES Library bz2 found: YES Has header "lzfse.h" : NO Has header "sys/soundcard.h" : NO Has header "dsound.h" : YES Run-time dependency gnutls found: NO (tried pkgconfig) Run-time dependency gnutls found: NO (tried pkgconfig) libgcrypt-config found: YES (sh D:\ESP\msys64\mingw64\bin/libgcrypt-config) 1.10.1 Run-time dependency libgcrypt found: YES 1.10.1-unknown Run-time dependency gtk+-3.0 found: YES 3.24.34 Run-time dependency gtk+-x11-3.0 found: NO (tried pkgconfig) Run-time dependency vte-2.91 found: NO (tried pkgconfig) Run-time dependency libpng found: YES 1.6.37 Run-time dependency libjpeg found: YES 2.1.4 Has header "sasl/sasl.h" : NO Has header "security/pam_appl.h" : NO Has header "snappy-c.h" : NO Has header "lzo/lzo1x.h" : YES Library lzo2 found: YES Has header "numa.h" : NO Run-time dependency libcacard found: NO (tried pkgconfig) Run-time dependency u2f-emu found: NO (tried pkgconfig) Run-time dependency libusbredirparser-0.5 found: NO (tried pkgconfig) Run-time dependency libusb-1.0 found: NO (tried pkgconfig) Run-time dependency libpmem found: NO (tried pkgconfig) Run-time dependency libdaxctl found: NO (tried pkgconfig) Run-time dependency libkeyutils found: NO (tried pkgconfig) Checking for function "gettid" : NO Run-time dependency libselinux found: NO (tried pkgconfig) Run-time dependency fuse3 found: NO (tried pkgconfig) Run-time dependency libbpf found: NO (tried pkgconfig) Checking for function "pthread_fchdir_np" : NO Has header "sys/epoll.h" : NO Has header "linux/magic.h" : NO Has header "valgrind/valgrind.h" : NO Has header "linux/btrfs.h" : NO Has header "libdrm/drm.h" : NO Has header "pty.h" : NO Has header "sys/disk.h" : NO Has header "sys/ioccom.h" : NO Has header "sys/kcov.h" : NO Checking for function "accept4" : NO Checking for function "clock_adjtime" : NO Checking for function "dup3" : NO Checking for function "fallocate" : NO Checking for function "posix_fallocate" : NO Checking for function "posix_memalign" : NO Checking for function "_aligned_malloc" : YES Checking for function "valloc" : NO Checking for function "memalign" : NO Checking for function "ppoll" : NO Checking for function "preadv" : NO Checking for function "pthread_fchdir_np" : NO (cached) Checking for function "sem_timedwait" with dependency threads: YES Checking for function "sendfile" : NO Checking for function "setns" : NO Checking for function "syncfs" : NO Checking for function "sync_file_range" : NO Checking for function "timerfd_create" : NO Checking for function "copy_file_range" : NO Checking for function "openpty" with dependency -lutil: NO Checking for function "strchrnul" : NO Checking for function "system" : YES Header
has symbol "bswap_32" : NO Header <sys/epoll.h> has symbol "epoll_create1" : NO Header has symbol "environ" : NO Header <linux/falloc.h> has symbol "FALLOC_FL_PUNCH_HOLE" : NO Header <linux/falloc.h> has symbol "FALLOC_FL_ZERO_RANGE" : NO Has header "linux/fiemap.h" : NO Checking for function "getrandom" : NO Header <sys/inotify.h> has symbol "inotify_init" : NO Header <sys/inotify.h> has symbol "inotify_init1" : NO Header <machine/bswap.h> has symbol "bswap32" : NO Header <sys/prctl.h> has symbol "PR_SET_TIMERSLACK" : NO Header <linux/rtnetlink.h> has symbol "IFLA_PROTO_DOWN" : NO Header <sys/sysmacros.h> has symbol "makedev" : NO Header has symbol "optreset" : NO Header <netinet/in.h> has symbol "IPPROTO_MPTCP" : NO Checking whether type "struct sigevent" has member "sigev_notify_thread_id" : NO Checking whether type "struct stat" has member "st_atim" : NO Checking for type "struct iovec" : NO Checking for type "struct utmpx" : NO Checking for type "struct mmsghdr" : NO Has header "vscoordint.h" : NO Program scripts/minikconf.py found: YES (D:/ESP/msys64/mingw64/bin/python3.exe D:/ESP/msys64/home/karim/qemu-esp/scripts/minikconf.py) Configuring aarch64-softmmu-config-target.h using configuration Configuring aarch64-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/aarch64-softmmu-config-devices.mak.d Configuring aarch64-softmmu-config-devices.h using configuration Configuring alpha-softmmu-config-target.h using configuration Configuring alpha-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/alpha-softmmu-config-devices.mak.d Configuring alpha-softmmu-config-devices.h using configuration Configuring arm-softmmu-config-target.h using configuration Configuring arm-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/arm-softmmu-config-devices.mak.d Configuring arm-softmmu-config-devices.h using configuration Configuring avr-softmmu-config-target.h using configuration Configuring avr-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/avr-softmmu-config-devices.mak.d Configuring avr-softmmu-config-devices.h using configuration Configuring cris-softmmu-config-target.h using configuration Configuring cris-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/cris-softmmu-config-devices.mak.d Configuring cris-softmmu-config-devices.h using configuration Configuring hppa-softmmu-config-target.h using configuration Configuring hppa-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/hppa-softmmu-config-devices.mak.d Configuring hppa-softmmu-config-devices.h using configuration Configuring i386-softmmu-config-target.h using configuration Configuring i386-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/i386-softmmu-config-devices.mak.d Configuring i386-softmmu-config-devices.h using configuration Configuring m68k-softmmu-config-target.h using configuration Configuring m68k-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/m68k-softmmu-config-devices.mak.d Configuring m68k-softmmu-config-devices.h using configuration Configuring microblaze-softmmu-config-target.h using configuration Configuring microblaze-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/microblaze-softmmu-config-devices.mak.d Configuring microblaze-softmmu-config-devices.h using configuration Configuring microblazeel-softmmu-config-target.h using configuration Configuring microblazeel-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/microblazeel-softmmu-config-devices.mak.d Configuring microblazeel-softmmu-config-devices.h using configuration Configuring mips-softmmu-config-target.h using configuration Configuring mips-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/mips-softmmu-config-devices.mak.d Configuring mips-softmmu-config-devices.h using configuration Configuring mips64-softmmu-config-target.h using configuration Configuring mips64-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/mips64-softmmu-config-devices.mak.d Configuring mips64-softmmu-config-devices.h using configuration Configuring mips64el-softmmu-config-target.h using configuration Configuring mips64el-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/mips64el-softmmu-config-devices.mak.d Configuring mips64el-softmmu-config-devices.h using configuration Configuring mipsel-softmmu-config-target.h using configuration Configuring mipsel-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/mipsel-softmmu-config-devices.mak.d Configuring mipsel-softmmu-config-devices.h using configuration Configuring nios2-softmmu-config-target.h using configuration Configuring nios2-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/nios2-softmmu-config-devices.mak.d Configuring nios2-softmmu-config-devices.h using configuration Configuring or1k-softmmu-config-target.h using configuration Configuring or1k-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/or1k-softmmu-config-devices.mak.d Configuring or1k-softmmu-config-devices.h using configuration Configuring ppc-softmmu-config-target.h using configuration Configuring ppc-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/ppc-softmmu-config-devices.mak.d Configuring ppc-softmmu-config-devices.h using configuration Configuring ppc64-softmmu-config-target.h using configuration Configuring ppc64-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/ppc64-softmmu-config-devices.mak.d Configuring ppc64-softmmu-config-devices.h using configuration Configuring riscv32-softmmu-config-target.h using configuration Configuring riscv32-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/riscv32-softmmu-config-devices.mak.d Configuring riscv32-softmmu-config-devices.h using configuration Configuring riscv64-softmmu-config-target.h using configuration Configuring riscv64-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/riscv64-softmmu-config-devices.mak.d Configuring riscv64-softmmu-config-devices.h using configuration Configuring rx-softmmu-config-target.h using configuration Configuring rx-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/rx-softmmu-config-devices.mak.d Configuring rx-softmmu-config-devices.h using configuration Configuring s390x-softmmu-config-target.h using configuration Configuring s390x-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/s390x-softmmu-config-devices.mak.d Configuring s390x-softmmu-config-devices.h using configuration Configuring sh4-softmmu-config-target.h using configuration Configuring sh4-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/sh4-softmmu-config-devices.mak.d Configuring sh4-softmmu-config-devices.h using configuration Configuring sh4eb-softmmu-config-target.h using configuration Configuring sh4eb-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/sh4eb-softmmu-config-devices.mak.d Configuring sh4eb-softmmu-config-devices.h using configuration Configuring sparc-softmmu-config-target.h using configuration Configuring sparc-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/sparc-softmmu-config-devices.mak.d Configuring sparc-softmmu-config-devices.h using configuration Configuring sparc64-softmmu-config-target.h using configuration Configuring sparc64-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/sparc64-softmmu-config-devices.mak.d Configuring sparc64-softmmu-config-devices.h using configuration Configuring tricore-softmmu-config-target.h using configuration Configuring tricore-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/tricore-softmmu-config-devices.mak.d Configuring tricore-softmmu-config-devices.h using configuration Configuring x86_64-softmmu-config-target.h using configuration Configuring x86_64-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/x86_64-softmmu-config-devices.mak.d Configuring x86_64-softmmu-config-devices.h using configuration Configuring xtensa-softmmu-config-target.h using configuration Configuring xtensa-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/xtensa-softmmu-config-devices.mak.d Configuring xtensa-softmmu-config-devices.h using configuration Configuring xtensaeb-softmmu-config-target.h using configuration Configuring xtensaeb-softmmu-config-devices.mak with command Reading depfile: D:/ESP/msys64/home/karim/qemu-esp/build/meson-private/xtensaeb-softmmu-config-devices.mak.d Configuring xtensaeb-softmmu-config-devices.h using configuration Program scripts/make-config-poison.sh found: YES (sh D:/ESP/msys64/home/karim/qemu-esp/scripts/make-config-poison.sh) Run-time dependency capstone found: NO (tried pkgconfig) Configuring capstone-defs.h using configuration Run-time dependency slirp found: NO (tried pkgconfig) Library iphlpapi found: YES Configuring libslirp-version.h using configuration Library fdt found: NO Configuring config-host.h using configuration Program scripts/hxtool found: YES (sh D:/ESP/msys64/home/karim/qemu-esp/scripts/hxtool) Program scripts/shaderinclude.pl found: YES (perl D:/ESP/msys64/home/karim/qemu-esp/scripts/shaderinclude.pl) Program scripts/qapi-gen.py found: YES (D:/ESP/msys64/mingw64/bin/python3.exe D:/ESP/msys64/home/karim/qemu-esp/scripts/qapi-gen.py) Program scripts/qemu-version.sh found: YES (sh D:/ESP/msys64/home/karim/qemu-esp/scripts/qemu-version.sh) Program cat found: YES (D:\ESP\msys64\usr\bin/cat.EXE) Program scripts/decodetree.py found: YES (D:/ESP/msys64/mingw64/bin/python3.exe D:/ESP/msys64/home/karim/qemu-esp/scripts/decodetree.py) Program ../scripts/modules/module_block.py found: YES (D:/ESP/msys64/mingw64/bin/python3.exe D:/ESP/msys64/home/karim/qemu-esp/block/../scripts/modules/module_block.py) Program ../scripts/block-coroutine-wrapper.py found: YES (D:/ESP/msys64/mingw64/bin/python3.exe D:/ESP/msys64/home/karim/qemu-esp/block/../scripts/block-coroutine-wrapper.py) Program scripts/modinfo-collect.py found: YES (D:/ESP/msys64/mingw64/bin/python3.exe D:/ESP/msys64/home/karim/qemu-esp/scripts/modinfo-collect.py) Program scripts/modinfo-generate.py found: YES (D:/ESP/msys64/mingw64/bin/python3.exe D:/ESP/msys64/home/karim/qemu-esp/scripts/modinfo-generate.py) Program nm found: YES Program scripts/undefsym.py found: YES (D:/ESP/msys64/mingw64/bin/python3.exe D:/ESP/msys64/home/karim/qemu-esp/scripts/undefsym.py) Program scripts/feature_to_c.sh found: YES (sh D:/ESP/msys64/home/karim/qemu-esp/scripts/feature_to_c.sh) Compiler for C supports link arguments -fstack-protector-all: YES Compiler for C supports link arguments -fstack-protector-strong: YES Compiler for C supports link arguments -Wl,--add-stdcall-alias: YES Compiler for C supports link arguments -Wl,--enable-stdcall-fixup: YES Library ole32 found: YES Library oleaut32 found: YES Library shlwapi found: YES Library uuid found: YES Library intl found: YES Program wixl found: NO 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 cp found: YES (D:\ESP\msys64\usr\bin/cp.EXE) Program sphinx-build-3 sphinx-build found: NO Program python3 found: YES (D:/ESP/msys64/mingw64/bin/python3.exe) Program diff found: YES (D:\ESP\msys64\usr\bin/diff.EXE) Program initrd-stress.sh found: YES (sh D:/ESP/msys64/home/karim/qemu-esp/tests/migration/initrd-stress.sh) Program xgettext found: YES (D:\ESP\msys64\mingw64\bin/xgettext.EXE) Program scripts/nsis.py found: YES (D:/ESP/msys64/mingw64/bin/python3.exe D:/ESP/msys64/home/karim/qemu-esp/scripts/nsis.py) Build targets in project: 561
qemu 7.0.0
Directories Install prefix : D:/ESP/msys64/qemu BIOS directory : share/ firmware path : D:/ESP/msys64/qemu/share/qemu-firmware binary directory : . library directory : lib module directory : lib/ libexec directory : libexec include directory : include config directory : D:/ESP/msys64/qemu/etc local state directory : queried at runtime Doc directory : D:/ESP/msys64/qemu/share/doc Build directory : D:/ESP/msys64/home/karim/qemu-esp/build Source path : D:/ESP/msys64/home/karim/qemu-esp GIT submodules : ui/keycodemapdb meson tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 dtc capstone slirp
Host binaries git : git make : make python : D:/ESP/msys64/mingw64/bin/python3.exe (version: 3.10) sphinx-build : NO gdb : /mingw64/bin/gdb-multiarch iasl : NO genisoimage : wixl : NO smbd : NO
Configurable features Documentation : NO system-mode emulation : YES user-mode emulation : NO block layer : YES Install blobs : YES module support : NO fuzzing support : NO Audio drivers : dsound sdl Trace backends : log D-Bus display : NO QOM debugging : NO vhost-kernel support : NO vhost-net support : NO vhost-crypto support : NO vhost-scsi support : NO vhost-vsock support : NO vhost-user support : NO vhost-user-blk server support: NO vhost-user-fs support : NO vhost-vdpa support : NO build guest agent : YES
Compilation host CPU : x86_64 host endianness : little C compiler : cc -m64 -mcx16 Host C compiler : cc -m64 -mcx16 C++ compiler : c++ -m64 -mcx16 CFLAGS : -O2 -g CXXFLAGS : -O2 -g QEMU_CFLAGS : -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -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 QEMU_CXXFLAGS : -DSTDC_LIMIT_MACROS -DSTDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wundef -Wwrite-strings -fno-strict-aliasing -fno-common -fwrapv -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong QEMU_OBJCFLAGS : -Wold-style-declaration -Wold-style-definition -Wtype-limits -Winit-self -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi QEMU_LDFLAGS : -Wl,--warn-common -fstack-protector-strong profiler : NO link-time optimization (LTO) : NO PIE : NO static build : NO malloc trim support : NO membarrier : NO 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 : NO sparse : NO mingw32 support : YES x86_64 tests : cc
Targets and accelerators KVM support : NO HAX support : YES HVF support : NO WHPX support : YES NVMM support : NO Xen support : NO TCG support : YES TCG backend : native (x86_64) TCG plugins : NO TCG debug enabled : NO target list : aarch64-softmmu alpha-softmmu arm-softmmu avr-softmmu cris-softmmu hppa-softmmu i386-softmmu m68k-softmmu microblaze-softmmu microblazeel-softmmu mips-softmmu mips64-softmmu mips64el-softmmu mipsel-softmmu nios2-softmmu or1k-softmmu ppc-softmmu ppc64-softmmu riscv32-softmmu riscv64-softmmu rx-softmmu s390x-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu tricore-softmmu x86_64-softmmu xtensa-softmmu xtensaeb-softmmu default devices : YES out of process emulation : NO
Block layer support coroutine backend : win32 coroutine pool : YES Block whitelist (rw) : Block whitelist (ro) : Use block whitelist in tools : NO 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 FUSE exports : NO
Crypto TLS priority : "NORMAL" GNUTLS support : NO libgcrypt : YES 1.10.1-unknown nettle : NO AF_ALG support : NO rng-none : NO Linux keyring : NO
Dependencies SDL support : YES SDL image support : NO GTK support : YES pixman : YES 0.40.0 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 : YES 2.1.4 VNC PNG support : YES 1.6.37 DirectSound support : YES JACK support : NO brlapi support : NO vde support : NO netmap support : NO l2tpv3 support : NO Linux AIO support : NO Linux io_uring support : NO ATTR/XATTR support : NO RDMA support : NO PVRDMA support : NO fdt support : internal libcap-ng support : NO bpf support : NO spice protocol support : NO rbd support : NO smartcard support : NO U2F support : NO libusb : NO usb net redir : NO OpenGL support : NO GBM : NO libiscsi support : NO libnfs support : NO QGA VSS support : YES QGA w32 disk info : YES seccomp support : NO GlusterFS support : NO TPM support : NO libssh support : NO lzo support : YES snappy support : NO bzip2 support : YES lzfse support : NO zstd support : YES 1.5.2 NUMA host support : NO capstone : internal libpmem support : NO libdaxctl support : NO libudev : NO FUSE lseek : NO selinux : NO
Found ninja-1.11.0 at D:/ESP/msys64/usr/bin/ninja.exe
That's interesting! It seems that you are using different argument list to the ./configure
script when building the upstream version.
For ESP fork you are using the following arguments:
./configure --target-list=xtensa-softmmu --enable-gcrypt --enable-debug --enable-sanitizers --disable-strip --disable-user --disable-capstone --disable-vnc --disable-sdl --disable-gtk
Could you please try to build the upstream with the same arguments?
Okay, I deleted the build folder from the upstream version, then ran
./configure --target-list=xtensa-softmmu --enable-gcrypt --enable-debug --enable-sanitizers --disable-strip --disable-user --disable-capstone --disable-vnc --disable-sdl --disable-gtk
ninja -C build
the ninja command completed with this :
ninja: Entering directory `build'
[1571/1571] Linking target tests/unit/test-yank.exe
We now provide pre-built QEMU binaries in release artifacts (https://github.com/espressif/qemu/releases/). The build scripts can be found here.
Following the guide on (section 1.2.2 Native builds with MSYS2) :
Installed msys2-x86_64-20220904.exe. Opened mingw64.exe as Administrator and ran the following commands. pacman -Syu pacman -Su pacman -S base-devel mingw-w64-x86_64-toolchain git python ninja pacman -S mingw-w64-x86_64-glib2 mingw-w64-x86_64-pixman python-setuptools pacman -S mingw-w64-x86_64-gtk3 mingw-w64-x86_64-SDL2 pacman -S mingw-w64-x86_64-libgcrypt git clone https://www.gitlab.com/qemu/qemu cd qemu ./configure --target-list=xtensa-softmmu --enable-gcrypt --enable-debug --enable-sanitizers --disable-strip --disable-user --disable-capstone --disable-vnc --disable-sdl --disable-gtk ninja -C build Got the following error :
[331/1601] Compiling C++ object qga/vss-win32/qga-vss.dll.p/requester.cpp.obj FAILED: qga/vss-win32/qga-vss.dll.p/requester.cpp.obj "c++" "-m64" "-mcx16" "-Iqga/vss-win32/qga-vss.dll.p" "-Iqga/vss-win32" "-I../qga/vss-win32" "-ID:/ESP/msys64/mingw64/include" "-ID:/ESP/msys64/mingw64/include/glib-2.0" "-ID:/ESP/msys64/mingw64/lib/glib-2.0/include" "-fdiagnostics-color=auto" "-Wall" "-Winvalid-pch" "-Wnon-virtual-dtor" "-Werror" "-std=gnu++11" "-g" "-iquote" "." "-iquote" "D:/ESP/msys64/home/karim/qemu-esp" "-iquote" "D:/ESP/msys64/home/karim/qemu-esp/include" "-iquote" "D:/ESP/msys64/home/karim/qemu-esp/disas/libvixl" "-iquote" "D:/ESP/msys64/home/karim/qemu-esp/tcg/i386" "-DSTDC_LIMIT_MACROS" "-DSTDC_CONSTANT_MACROS" "-D__STDC_FORMAT_MACROS" "-D_GNU_SOURCE" "-D_FILE_OFFSET_BITS=64" "-D_LARGEFILE_SOURCE" "-Wundef" "-Wwrite-strings" "-fno-strict-aliasing" "-fno-common" "-fwrapv" "-Wtype-limits" "-Wformat-security" "-Wformat-y2k" "-Winit-self" "-Wignored-qualifiers" "-Wempty-body" "-Wendif-labels" "-Wexpansion-to-defined" "-Wimplicit-fallthrough=2" "-Wno-missing-include-dirs" "-Wno-shift-negative-value" "-Wno-psabi" "-fstack-protector-strong" "-Wno-unknown-pragmas" "-Wno-delete-non-virtual-dtor" "-Wno-non-virtual-dtor" -MD -MQ qga/vss-win32/qga-vss.dll.p/requester.cpp.obj -MF "qga/vss-win32/qga-vss.dll.p/requester.cpp.obj.d" -o qga/vss-win32/qga-vss.dll.p/requester.cpp.obj "-c" ../qga/vss-win32/requester.cpp ../qga/vss-win32/requester.cpp: In function 'void requester_freeze(int, void, ErrorSet)': ../qga/vss-win32/requester.cpp:357:24: error: 'void operator delete(void)' called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete] 357 | delete volume_name_wchar; | ^
~~~~ ../qga/vss-win32/requester.cpp:348:48: note: returned from 'void operator new [](long long unsigned int)' 348 | volume_name_wchar = new wchar_t[len]; | ^ ../qga/vss-win32/requester.cpp:362:20: error: 'void operator delete(void)' called on pointer returned from a mismatched allocation function [-Werror=mismatched-new-delete] 362 | delete volume_name_wchar; | ^~~~~ ../qga/vss-win32/requester.cpp:348:48: note: returned from 'void* operator new [](long long unsigned int)' 348 | volume_name_wchar = new wchar_t[len]; | ^By the way I was able to use this setup to build qemu.