Compilation fails due to zstd qcow2 compression
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Compilation of QEMU fails when using recent versions of zstd.
I use the following commands to compile QEMU:
$ mkdir build
$ cd build
$ ../configure --enable-debug --target-
$ make -j $(nproc)
Here is a paste from the ../configure output:
https:/
And one from the make output:
https:/
In short the error boils down to:
../block/
../block/
225 | zstd_ret = ZSTD_compressSt
| ^~~~~~~
| ZSTD_compressStream
../block/
../block/
225 | zstd_ret = ZSTD_compressSt
|
System info:
QEMU commit: 7ef8134565dccf9
Kernel: 5.10.15
zstd: 1.4.8
The upstream zstd library seems to still offer that function as of 1.4.9:
https:/ /github. com/facebook/ zstd/blob/ dev/lib/ zstd.h# L708
what exact version of the zstd package do you have installed (Is it an Ubuntu package, a Fedora one? etc)
Can you verify that the version of the header you have installed for zstd.h actually declares ZSTD_compressSt ream2() ?