compiling v7.1 with --static fails with "/usr/bin/ld: cannot find -lmount"
In Ubuntu "jammy" compiling QEMU v7.1 for target i386-softmmu
(or x86_64-softmmu
) with --static
fails at
...
WARNING: Static library 'mount' not found for dependency 'gio-2.0', may not be statically linked
Run-time dependency gio-2.0 found: YES 2.72.1
WARNING: Static library 'mount' not found for dependency 'gio-unix-2.0', may not be statically linked
Run-time dependency gio-unix-2.0 found: YES 2.72.1
...
Linking target qemu-system-i386
....
/usr/bin/ld: cannot find -lmount: No such file or directory
The packages "libmount-dev" and "libmount1" are installed. Compiling v6.2 and v7.0 works fine. Compiling v7.1 without --static
also works fine.
I use these parameters for building:
--disable-brlapi
--disable-gtk
--disable-libiscsi
--disable-libnfs
--disable-pa
--disable-rbd
--disable-sdl
--disable-snappy
--disable-vnc
Does this mean building static binaries is no longer working in 7.1 due to some dependency issues where no packed exists that can be installed?
Edited by Axel Heider