tce-load -i compiletc meson pulseaudio-dev perl5 curl-dev libusb-dev mesa-dev gnutls-dev gettext sdl2_image-dev bash

wget https://download.qemu.org/qemu-11.0.0.tar.xz

cd qemu-11.0.0

mkdir build
cd build

CC="gcc -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti" ../configure --prefix=/usr/local --localstatedir=/var --libexecdir=/usr/local/lib/qemu --audio-drv-list=alsa,pa --target-list=i386-softmmu,i386-linux-user,x86_64-softmmu,x86_64-linux-user,arm-softmmu,arm-linux-user,aarch64-softmmu,aarch64-linux-user --smbd=/usr/local/sbin/smbd --enable-sdl-image

find . -name build.ninja -type f -exec sed -i 's/-O2 -g//g' {} \;

make [1h 19m 41s]
sudo make install

sudo chgrp staff  /usr/local/lib/qemu/qemu-bridge-helper
sudo chmod 4750 /usr/local/lib/qemu/qemu-bridge-helper

qemu-system-x86_64 -enable-kvm -hda vdisk.img -m 2G -cdrom TinyCorePure64-17.0.iso -boot d
qemu-system-x86_64: invalid accelerator kvm

qemu 11.0.0

  Build environment
    Build directory                 : /usr/src/qemu-11.0.0/build
    Source path                     : /usr/src/qemu-11.0.0
    Download dependencies           : YES

  Directories
    Install prefix                  : /usr/local
    BIOS directory                  : share/qemu
    firmware path                   : share/qemu-firmware
    binary directory                : /usr/local/bin
    library directory               : /usr/local/lib
    module directory                : lib/qemu
    libexec directory               : /usr/local/lib/qemu
    include directory               : /usr/local/include
    config directory                : /usr/local/etc
    local state directory           : /var
    Manual directory                : /usr/local/share/man
    Doc directory                   : /usr/local/share/doc

  Host binaries
    python                          : /usr/src/qemu-11.0.0/build/pyvenv/bin/python3 (version: 3.11)
    sphinx-build                    : NO
    gdb                             : 
    iasl                            : NO
    genisoimage                     : 

  Configurable features
    Documentation                   : NO
    system-mode emulation           : YES
    user-mode emulation             : YES
    block layer                     : YES
    Install blobs                   : YES
    module support                  : NO
    fuzzing support                 : NO
    Audio drivers                   : alsa pa
    Trace backends                  : log
    QOM debugging                   : YES
    Relocatable install             : YES
    vhost-kernel support            : YES
    vhost-net support               : YES
    vhost-user support              : YES
    vhost-user-crypto support       : YES
    vhost-user-blk server support   : YES
    vhost-vdpa support              : YES
    build guest agent               : YES

  Compilation
    host CPU                        : aarch64
    host endianness                 : little
    C compiler                      : gcc -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe
    Host C compiler                 : gcc -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe
    C++ compiler                    : g++ -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti
    Objective-C compiler            : NO
    Rust support                    : NO
    CFLAGS                          : -g -O2
    CXXFLAGS                        : -g -O2
    QEMU_CFLAGS                     : -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -ftrivial-auto-var-init=zero -fzero-call-used-regs=used-gpr -fstack-protector-strong
    QEMU_CXXFLAGS                   : -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -ftrivial-auto-var-init=zero -fzero-call-used-regs=used-gpr -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -fstack-protector-strong
    QEMU_LDFLAGS                    : -fstack-protector-strong -Wl,-z,relro -Wl,-z,now
    link-time optimization (LTO)    : NO
    PIE                             : YES
    static build                    : NO
    malloc trim support             : YES
    membarrier                      : NO
    debug graph lock                : NO
    debug stack usage               : NO
    mutex debugging                 : NO
    memory allocator                : system
    avx2 optimization               : NO
    avx512bw optimization           : NO
    gcov                            : NO
    thread sanitizer                : NO
    CFI support                     : NO
    strip binaries                  : NO
    sparse                          : NO
    mingw32 support                 : NO

  Cross compilers
    aarch64                         : gcc -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe

  Targets and accelerators
    KVM support                     : YES
    Nitro support                   : YES
    HVF support                     : NO
    WHPX support                    : NO
    NVMM support                    : NO
    MSHV support                    : NO
    Xen support                     : NO
    Xen emulation                   : NO
    TCG support                     : YES
    TCG backend                     : native (aarch64)
    TCG plugins                     : YES
    TCG debug enabled               : NO
    syscall buffer debugging support: NO
    target list                     : i386-softmmu i386-linux-user x86_64-softmmu x86_64-linux-user arm-softmmu arm-linux-user aarch64-softmmu aarch64-linux-user
    default devices                 : YES
    out of process emulation        : YES
    vfio-user server                : NO

  Block layer support
    coroutine backend               : ucontext
    coroutine pool                  : YES
    Block whitelist (rw)            : 
    Block whitelist (ro)            : 
    Use block whitelist in tools    : NO
    VirtFS (9P) support             : YES
    replication support             : YES
    bochs support                   : YES
    cloop support                   : YES
    dmg support                     : YES
    qcow v1 support                 : YES
    vdi support                     : YES
    vhdx support                    : YES
    vmdk support                    : YES
    vpc support                     : YES
    vvfat support                   : YES
    qed support                     : YES
    parallels support               : YES
    FUSE exports                    : NO
    VDUSE block exports             : YES

  Crypto
    TLS priority                    : NORMAL
    GNUTLS support                  : YES 3.7.9
      GNUTLS bug 1717 workaround    : NO
    libgcrypt                       : NO
    nettle                          : NO
    SM4 ALG support                 : NO
    SM3 ALG support                 : NO
    AF_ALG support                  : NO
    rng-none                        : NO
    Linux keyring                   : YES
    Linux keyutils                  : NO

  User interface
    D-Bus display                   : YES
    SDL support                     : YES 2.30.11
    SDL image support               : YES 2.0.5
    GTK support                     : YES
    pixman                          : YES 0.43.4
    VTE support                     : NO
    PNG support                     : YES 1.6.55
    VNC support                     : YES
    VNC SASL support                : NO
    VNC JPEG support                : YES 2.1.5.1
    spice protocol support          : NO
    curses support                  : YES
    brlapi support                  : NO

  Graphics backends
    VirGL support                   : NO
    Rutabaga support                : NO

  Audio backends
    OSS support                     : YES
    sndio support                   : NO
    ALSA support                    : YES 1.2.12
    PulseAudio support              : YES 13.0
    PipeWire support                : NO
    JACK support                    : NO

  Network backends
    AF_XDP support                  : NO
    passt support                   : YES
    slirp support                   : NO
    vde support                     : NO
    netmap support                  : NO
    l2tpv3 support                  : YES

  Dependencies
    libtasn1                        : YES 4.16.0
    PAM                             : NO
    iconv support                   : YES
    blkio support                   : NO
    curl support                    : YES 8.0.1
    Multipath support               : NO
    Linux AIO support               : NO
    Linux io_uring support          : NO
    ATTR/XATTR support              : YES
    RDMA support                    : NO
    fdt support                     : internal
    libcap-ng support               : NO
    bpf support                     : NO
    rbd support                     : NO
    smartcard support               : NO
    U2F support                     : NO
    libusb                          : YES 1.0.23
    usb net redir                   : NO
    OpenGL support (epoxy)          : YES 1.5.10
    GBM                             : YES 25.0.5
    libiscsi support                : NO
    libnfs support                  : NO
    seccomp support                 : NO
    GlusterFS support               : NO
    hv-balloon support              : YES
    TPM support                     : YES
    IGVM support                    : NO
    libssh support                  : NO
    lzo support                     : NO
    snappy support                  : NO
    bzip2 support                   : YES
    lzfse support                   : NO
    zstd support                    : YES 1.5.6
    Query Processing Library support: NO
    UADK Library support            : NO
    qatzip support                  : NO
    NUMA host support               : NO
    capstone                        : NO
    libpmem support                 : NO
    libdaxctl support               : NO
    libcbor support                 : NO
    libudev                         : YES 174
    FUSE lseek                      : NO
    selinux                         : NO
    libdw                           : NO
    valgrind                        : NO

  Subprojects
    berkeley-softfloat-3            : YES
    berkeley-testfloat-3            : YES
    dtc                             : YES
    keycodemapdb                    : YES
    libvduse                        : YES
    libvhost-user                   : YES

  User defined options
    Native files                    : config-meson.cross
    audio_drv_list                  : alsa,pa
    docs                            : disabled
    libexecdir                      : /usr/local/lib/qemu
    localstatedir                   : /var
    plugins                         : true
    prefix                          : /usr/local
    sdl_image                       : enabled
    smbd                            : /usr/local/sbin/smbd
