* [Bug 1916655] [NEW] Compilation fails due to zstd qcow2 compression
@ 2021-02-23 20:47 Dantali0n
2021-03-04 18:36 ` [Bug 1916655] " John Snow
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Dantali0n @ 2021-02-23 20:47 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
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-list=x86_64-softmmu
$ make -j $(nproc)
Here is a paste from the ../configure output:
https://paste.ubuntu.com/p/dHsWzGV7TH/
And one from the make output:
https://paste.ubuntu.com/p/89qKk4NrFz/
In short the error boils down to:
../block/qcow2-threads.c: In function ‘qcow2_zstd_compress’:
../block/qcow2-threads.c:225:16: error: implicit declaration of function ‘ZSTD_compressStream2’; did you mean ‘ZSTD_compressStream’? [-Werror=implicit-function-declaration]
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
| ^~~~~~~~~~~~~~~~~~~~
| ZSTD_compressStream
../block/qcow2-threads.c:225:16: error: nested extern declaration of ‘ZSTD_compressStream2’ [-Werror=nested-externs]
../block/qcow2-threads.c:225:60: error: ‘ZSTD_e_end’ undeclared (first use in this function)
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
|
System info:
QEMU commit: 7ef8134565dccf9186d5eabd7dbb4ecae6dead87 (from Github)
Kernel: 5.10.15
zstd: 1.4.8
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1916655
Title:
Compilation fails due to zstd qcow2 compression
Status in QEMU:
New
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-list=x86_64-softmmu
$ make -j $(nproc)
Here is a paste from the ../configure output:
https://paste.ubuntu.com/p/dHsWzGV7TH/
And one from the make output:
https://paste.ubuntu.com/p/89qKk4NrFz/
In short the error boils down to:
../block/qcow2-threads.c: In function ‘qcow2_zstd_compress’:
../block/qcow2-threads.c:225:16: error: implicit declaration of function ‘ZSTD_compressStream2’; did you mean ‘ZSTD_compressStream’? [-Werror=implicit-function-declaration]
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
| ^~~~~~~~~~~~~~~~~~~~
| ZSTD_compressStream
../block/qcow2-threads.c:225:16: error: nested extern declaration of ‘ZSTD_compressStream2’ [-Werror=nested-externs]
../block/qcow2-threads.c:225:60: error: ‘ZSTD_e_end’ undeclared (first use in this function)
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
|
System info:
QEMU commit: 7ef8134565dccf9186d5eabd7dbb4ecae6dead87 (from Github)
Kernel: 5.10.15
zstd: 1.4.8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1916655/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1916655] Re: Compilation fails due to zstd qcow2 compression
2021-02-23 20:47 [Bug 1916655] [NEW] Compilation fails due to zstd qcow2 compression Dantali0n
@ 2021-03-04 18:36 ` John Snow
2021-03-05 8:54 ` Dantali0n
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: John Snow @ 2021-03-04 18:36 UTC (permalink / raw)
To: qemu-devel
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_compressStream2() ?
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1916655
Title:
Compilation fails due to zstd qcow2 compression
Status in QEMU:
New
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-list=x86_64-softmmu
$ make -j $(nproc)
Here is a paste from the ../configure output:
https://paste.ubuntu.com/p/dHsWzGV7TH/
And one from the make output:
https://paste.ubuntu.com/p/89qKk4NrFz/
In short the error boils down to:
../block/qcow2-threads.c: In function ‘qcow2_zstd_compress’:
../block/qcow2-threads.c:225:16: error: implicit declaration of function ‘ZSTD_compressStream2’; did you mean ‘ZSTD_compressStream’? [-Werror=implicit-function-declaration]
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
| ^~~~~~~~~~~~~~~~~~~~
| ZSTD_compressStream
../block/qcow2-threads.c:225:16: error: nested extern declaration of ‘ZSTD_compressStream2’ [-Werror=nested-externs]
../block/qcow2-threads.c:225:60: error: ‘ZSTD_e_end’ undeclared (first use in this function)
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
|
System info:
QEMU commit: 7ef8134565dccf9186d5eabd7dbb4ecae6dead87 (from Github)
Kernel: 5.10.15
zstd: 1.4.8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1916655/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1916655] Re: Compilation fails due to zstd qcow2 compression
2021-02-23 20:47 [Bug 1916655] [NEW] Compilation fails due to zstd qcow2 compression Dantali0n
2021-03-04 18:36 ` [Bug 1916655] " John Snow
@ 2021-03-05 8:54 ` Dantali0n
2021-03-08 16:57 ` John Snow
2021-03-08 17:25 ` Dantali0n
3 siblings, 0 replies; 5+ messages in thread
From: Dantali0n @ 2021-03-05 8:54 UTC (permalink / raw)
To: qemu-devel
Seems I had an old version (1.3.5) of zstd floating around in
/usr/local. Consider this issue resolved.
** Changed in: qemu
Status: New => Invalid
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1916655
Title:
Compilation fails due to zstd qcow2 compression
Status in QEMU:
Invalid
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-list=x86_64-softmmu
$ make -j $(nproc)
Here is a paste from the ../configure output:
https://paste.ubuntu.com/p/dHsWzGV7TH/
And one from the make output:
https://paste.ubuntu.com/p/89qKk4NrFz/
In short the error boils down to:
../block/qcow2-threads.c: In function ‘qcow2_zstd_compress’:
../block/qcow2-threads.c:225:16: error: implicit declaration of function ‘ZSTD_compressStream2’; did you mean ‘ZSTD_compressStream’? [-Werror=implicit-function-declaration]
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
| ^~~~~~~~~~~~~~~~~~~~
| ZSTD_compressStream
../block/qcow2-threads.c:225:16: error: nested extern declaration of ‘ZSTD_compressStream2’ [-Werror=nested-externs]
../block/qcow2-threads.c:225:60: error: ‘ZSTD_e_end’ undeclared (first use in this function)
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
|
System info:
QEMU commit: 7ef8134565dccf9186d5eabd7dbb4ecae6dead87 (from Github)
Kernel: 5.10.15
zstd: 1.4.8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1916655/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1916655] Re: Compilation fails due to zstd qcow2 compression
2021-02-23 20:47 [Bug 1916655] [NEW] Compilation fails due to zstd qcow2 compression Dantali0n
2021-03-04 18:36 ` [Bug 1916655] " John Snow
2021-03-05 8:54 ` Dantali0n
@ 2021-03-08 16:57 ` John Snow
2021-03-08 17:25 ` Dantali0n
3 siblings, 0 replies; 5+ messages in thread
From: John Snow @ 2021-03-08 16:57 UTC (permalink / raw)
To: qemu-devel
Meson theoretically checks for that:
meson.build: zstd = dependency('libzstd', version: '>=1.4.0',
I suppose meson found the dependency, but the compile flags got the
wrong header. Is there something we need to fix in the build system?
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1916655
Title:
Compilation fails due to zstd qcow2 compression
Status in QEMU:
Invalid
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-list=x86_64-softmmu
$ make -j $(nproc)
Here is a paste from the ../configure output:
https://paste.ubuntu.com/p/dHsWzGV7TH/
And one from the make output:
https://paste.ubuntu.com/p/89qKk4NrFz/
In short the error boils down to:
../block/qcow2-threads.c: In function ‘qcow2_zstd_compress’:
../block/qcow2-threads.c:225:16: error: implicit declaration of function ‘ZSTD_compressStream2’; did you mean ‘ZSTD_compressStream’? [-Werror=implicit-function-declaration]
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
| ^~~~~~~~~~~~~~~~~~~~
| ZSTD_compressStream
../block/qcow2-threads.c:225:16: error: nested extern declaration of ‘ZSTD_compressStream2’ [-Werror=nested-externs]
../block/qcow2-threads.c:225:60: error: ‘ZSTD_e_end’ undeclared (first use in this function)
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
|
System info:
QEMU commit: 7ef8134565dccf9186d5eabd7dbb4ecae6dead87 (from Github)
Kernel: 5.10.15
zstd: 1.4.8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1916655/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug 1916655] Re: Compilation fails due to zstd qcow2 compression
2021-02-23 20:47 [Bug 1916655] [NEW] Compilation fails due to zstd qcow2 compression Dantali0n
` (2 preceding siblings ...)
2021-03-08 16:57 ` John Snow
@ 2021-03-08 17:25 ` Dantali0n
3 siblings, 0 replies; 5+ messages in thread
From: Dantali0n @ 2021-03-08 17:25 UTC (permalink / raw)
To: qemu-devel
> Is there something we need to fix in the build system?
Maybe, I do not know how this dependency is validated. If the
directories used to validate dependencies differs from the directories
(or order) used at compile / link time than this can cause errors like
these.
However, what could also happen I suppose that the order in which
headers are included differs from the order in which libraries are
included. This could still be caused by the build system but also by the
user (LD_PRELOAD, ld-config etc).
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1916655
Title:
Compilation fails due to zstd qcow2 compression
Status in QEMU:
Invalid
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-list=x86_64-softmmu
$ make -j $(nproc)
Here is a paste from the ../configure output:
https://paste.ubuntu.com/p/dHsWzGV7TH/
And one from the make output:
https://paste.ubuntu.com/p/89qKk4NrFz/
In short the error boils down to:
../block/qcow2-threads.c: In function ‘qcow2_zstd_compress’:
../block/qcow2-threads.c:225:16: error: implicit declaration of function ‘ZSTD_compressStream2’; did you mean ‘ZSTD_compressStream’? [-Werror=implicit-function-declaration]
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
| ^~~~~~~~~~~~~~~~~~~~
| ZSTD_compressStream
../block/qcow2-threads.c:225:16: error: nested extern declaration of ‘ZSTD_compressStream2’ [-Werror=nested-externs]
../block/qcow2-threads.c:225:60: error: ‘ZSTD_e_end’ undeclared (first use in this function)
225 | zstd_ret = ZSTD_compressStream2(cctx, &output, &input, ZSTD_e_end);
|
System info:
QEMU commit: 7ef8134565dccf9186d5eabd7dbb4ecae6dead87 (from Github)
Kernel: 5.10.15
zstd: 1.4.8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1916655/+subscriptions
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-03-08 17:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23 20:47 [Bug 1916655] [NEW] Compilation fails due to zstd qcow2 compression Dantali0n
2021-03-04 18:36 ` [Bug 1916655] " John Snow
2021-03-05 8:54 ` Dantali0n
2021-03-08 16:57 ` John Snow
2021-03-08 17:25 ` Dantali0n
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).