tce-load -i compiletc meson pulseaudio-dev perl5 sdl2_image-dev curl-dev libusb-dev Xorg-7.7-3d-dev spice-dev spice-protocol libcacard-dev usbredir-dev libbluetooth-dev libnfs-dev gnutls35-dev gettext lzo-dev libgcrypt-dev

wget https://download.qemu-project.org/qemu-6.0.0.tar.xz

cd qemu-6.0.0

CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --libexecdir=/usr/local/lib/qemu --interp-prefix=/usr/local/share/qemu --audio-drv-list="alsa sdl 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-spice

cd build

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

ninja [21m 58.41s]
sudo ninja install

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

qemu 6.0.0

  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            : lib/qemu
    include directory            : include
    config directory             : /usr/local/etc
    local state directory        : /var
    Manual directory             : share/man
    Doc directory                : /usr/local/share/doc
    Build directory              : /usr/src/qemu-6.0.0/build
    Source path                  : /usr/src/qemu-6.0.0
    GIT submodules               : 

  Host binaries
    git                          : git
    make                         : make
    python                       : /usr/local/bin/python3.6 (version: 3.6)
    sphinx-build                 : NO
    genisoimage                  : 
    smbd                         : "/usr/local/sbin/smbd"

  Configurable features
    Documentation                : NO
    system-mode emulation        : YES
    user-mode emulation          : YES
    block layer                  : YES
    Install blobs                : YES
    module support               : NO
    plugin support               : NO
    fuzzing support              : NO
    Audio drivers                : alsa sdl pa
    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                   : gcc
    Host C compiler              : gcc
    C++ compiler                 : g++
    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
    QEMU_LDFLAGS                 : -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -m64  -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                  : 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

  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               : YES
    libgcrypt                    : NO
    nettle                       : YES
      XTS                        : NO
    crypto afalg                 : NO
    rng-none                     : NO
    Linux keyring                : YES

  Dependencies
    SDL support                  : YES
    SDL image support            : YES
    GTK support                  : YES
    pixman                       : YES
    VTE support                  : NO
    slirp support                : internal
    libtasn1                     : YES
    PAM                          : YES
    iconv support                : YES
    curses support               : YES
    virgl support                : NO
    curl support                 : YES
    Multipath support            : NO
    VNC support                  : YES
    VNC SASL support             : YES
    VNC JPEG support             : YES
    VNC PNG support              : YES
    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                : YES
    rbd support                  : NO
    xfsctl support               : NO
    smartcard support            : YES
    U2F support                  : NO
    libusb                       : YES
    usb net redir                : YES
    OpenGL support               : YES
    GBM                          : YES
    libiscsi support             : NO
    libnfs support               : YES
    seccomp support              : NO
    GlusterFS support            : NO
    TPM support                  : YES
    libssh support               : NO
    lzo support                  : YES
    snappy support               : NO
    bzip2 support                : YES
    lzfse support                : NO
    zstd support                 : YES
    NUMA host support            : NO
    libxml2                      : YES
    capstone                     : internal
    libpmem support              : NO
    libdaxctl support            : NO
    libudev                      : YES
    FUSE lseek                   : NO

  Subprojects
    libvhost-user                : YES
