Should QEMU's configure script check for bzip2 ?
Hi,
I just tried to compile QEMU on a freshly installed system. "configure" finished without problems, but during "make" I hit this error:
BUNZIP2 pc-bios/edk2-i386-secure-code.fd.bz2/bin/sh: bzip2: command not found
make: *** [Makefile:305: pc-bios/edk2-i386-secure-code.fd] Error 127
make: *** Deleting file 'pc-bios/edk2-i386-secure-code.fd'
make: *** Waiting for unfinished jobs....
Sure, it's easy to fix, but maybe "configure" should already check for the availablity of "bzip2", so that we then either skip the installation of the edk2 images if "bzip2" is not available, or bail out during "configure" already?
Thomas
Quoted 10 lines · Thomas Huth
Hi,
I just tried to compile QEMU on a freshly installed system. "configure" finished without problems, but during "make" I hit this error:
BUNZIP2 pc-bios/edk2-i386-secure-code.fd.bz2
/bin/sh: bzip2: command not found
make: *** [Makefile:305: pc-bios/edk2-i386-secure-code.fd] Error 127
make: *** Deleting file 'pc-bios/edk2-i386-secure-code.fd'
make: *** Waiting for unfinished jobs....
This error happened with me a few times as well. And I always wondered why bzip2 isn't checked on configure.
Quoted 3 lines
Sure, it's easy to fix, but maybe "configure" should already check for the availablity of "bzip2", so that we then either skip the installation of the edk2 images if "bzip2" is not available, or bail out during "configure" already?
IMHO, it should be checked since bzip2 is a build dependency.
Thanks,
Wainer
Quoted 5 lines
Thomas
Quoted 12 lines · Thomas Huth
Hi,
I just tried to compile QEMU on a freshly installed system. "configure" finished without problems, but during "make" I hit this error:
BUNZIP2 pc-bios/edk2-i386-secure-code.fd.bz2
/bin/sh: bzip2: command not found
make: *** [Makefile:305: pc-bios/edk2-i386-secure-code.fd] Error 127
make: *** Deleting file 'pc-bios/edk2-i386-secure-code.fd'
make: *** Waiting for unfinished jobs....
Quoted 4 lines
Sure, it's easy to fix, but maybe "configure" should already check for the availablity of "bzip2", so that we then either skip the installation of the edk2 images if "bzip2" is not available, or bail out during "configure" already?
The general rule is that if we run a binary we should check for it upfront so users immediately see any missing pre-requisites, rather than wasting 30 minutes waiting for QEMU to build & then fail.
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 7 lines · Daniel P. Berrangé
Quoted 6 lines · Thomas Huth
Hi,
I just tried to compile QEMU on a freshly installed system. "configure" finished without problems, but during "make" I hit this error:
Quoted 7 lines
Quoted 7 lines
BUNZIP2 pc-bios/edk2-i386-secure-code.fd.bz2
/bin/sh: bzip2: command not found
make: *** [Makefile:305: pc-bios/edk2-i386-secure-code.fd] Error 127
make: *** Deleting file 'pc-bios/edk2-i386-secure-code.fd'
make: *** Waiting for unfinished jobs....Sure, it's easy to fix, but maybe "configure" should already check for the
You found a bug :)
Quoted 7 lines
Quoted 3 lines
availablity of "bzip2", so that we then either skip the installation of the edk2 images if "bzip2" is not available, or bail out during "configure" already?
The general rule is that if we run a binary we should check for it upfront so users immediately see any missing pre-requisites, rather than wasting 30 minutes waiting for QEMU to build & then fail.
Yes, I'll send a fix.
Regards,
Phil.