* "Unknown option --exist" message when building qemu
@ 2020-03-10 18:27 Guenter Roeck
2020-03-10 18:32 ` Dr. David Alan Gilbert
2020-03-10 18:45 ` Juan Quintela
0 siblings, 2 replies; 4+ messages in thread
From: Guenter Roeck @ 2020-03-10 18:27 UTC (permalink / raw)
To: QEMU Developers; +Cc: Dr. David Alan Gilbert, Juan Quintela
Hi,
when building qemu, I keep seeing the following message.
Unknown option --exist
This was introduced with commit 3a67848134d0 ("configure: Enable test and libs for zstd").
If I replace "--exist" with "--exists", on a system with libzstd-dev installed, I get
a number of error messages.
migration/multifd-zstd.c:125:9: error: unknown type name ‘ZSTD_EndDirective’; did you mean ‘ZSTD_DDict’?
migration/multifd-zstd.c:125:35: error: ‘ZSTD_e_continue’ undeclared
migration/multifd-zstd.c:128:21: error: ‘ZSTD_e_flush’ undeclared
migration/multifd-zstd.c:143:19: error: implicit declaration of function ‘ZSTD_compressStream2’
migration/multifd-zstd.c:143:19: error: nested extern declaration of ‘ZSTD_compressStream2’
Any idea, anyone, what might be wrong ?
Thanks,
Guenter
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: "Unknown option --exist" message when building qemu
2020-03-10 18:27 "Unknown option --exist" message when building qemu Guenter Roeck
@ 2020-03-10 18:32 ` Dr. David Alan Gilbert
2020-03-10 18:45 ` Juan Quintela
1 sibling, 0 replies; 4+ messages in thread
From: Dr. David Alan Gilbert @ 2020-03-10 18:32 UTC (permalink / raw)
To: Guenter Roeck; +Cc: QEMU Developers, Juan Quintela
* Guenter Roeck (linux@roeck-us.net) wrote:
> Hi,
>
> when building qemu, I keep seeing the following message.
>
> Unknown option --exist
>
> This was introduced with commit 3a67848134d0 ("configure: Enable test and libs for zstd").
> If I replace "--exist" with "--exists", on a system with libzstd-dev installed, I get
> a number of error messages.
>
> migration/multifd-zstd.c:125:9: error: unknown type name ‘ZSTD_EndDirective’; did you mean ‘ZSTD_DDict’?
> migration/multifd-zstd.c:125:35: error: ‘ZSTD_e_continue’ undeclared
> migration/multifd-zstd.c:128:21: error: ‘ZSTD_e_flush’ undeclared
> migration/multifd-zstd.c:143:19: error: implicit declaration of function ‘ZSTD_compressStream2’
> migration/multifd-zstd.c:143:19: error: nested extern declaration of ‘ZSTD_compressStream2’
>
> Any idea, anyone, what might be wrong ?
Yep, Juan's just trying to fix it.
Dave
> Thanks,
> Guenter
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: "Unknown option --exist" message when building qemu
2020-03-10 18:27 "Unknown option --exist" message when building qemu Guenter Roeck
2020-03-10 18:32 ` Dr. David Alan Gilbert
@ 2020-03-10 18:45 ` Juan Quintela
2020-03-10 20:23 ` Guenter Roeck
1 sibling, 1 reply; 4+ messages in thread
From: Juan Quintela @ 2020-03-10 18:45 UTC (permalink / raw)
To: Guenter Roeck; +Cc: QEMU Developers, Dr. David Alan Gilbert
Guenter Roeck <linux@roeck-us.net> wrote:
> Hi,
>
> when building qemu, I keep seeing the following message.
>
> Unknown option --exist
>
> This was introduced with commit 3a67848134d0 ("configure: Enable test
> and libs for zstd").
> If I replace "--exist" with "--exists", on a system with libzstd-dev
> installed, I get
> a number of error messages.
Patch is on the line already. You need to change the test to:
if test "$zstd" != "no" ; then
- if $pkg_config --exist libzstd ; then
+ libzstd_minver="1.4.0"
+ if $pkg_config --atleast-version=$libzstd_minver libzstd ; then
zstd_cflags="$($pkg_config --cflags libzstd)"
It is not enough with having zstd installed, you need to have version
1.4.0 for it to work.
Sorry, Juan.
>
> migration/multifd-zstd.c:125:9: error: unknown type name
> ‘ZSTD_EndDirective’; did you mean ‘ZSTD_DDict’?
> migration/multifd-zstd.c:125:35: error: ‘ZSTD_e_continue’ undeclared
> migration/multifd-zstd.c:128:21: error: ‘ZSTD_e_flush’ undeclared
> migration/multifd-zstd.c:143:19: error: implicit declaration of
> function ‘ZSTD_compressStream2’
> migration/multifd-zstd.c:143:19: error: nested extern declaration of
> ‘ZSTD_compressStream2’
>
> Any idea, anyone, what might be wrong ?
>
> Thanks,
> Guenter
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: "Unknown option --exist" message when building qemu
2020-03-10 18:45 ` Juan Quintela
@ 2020-03-10 20:23 ` Guenter Roeck
0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2020-03-10 20:23 UTC (permalink / raw)
To: quintela; +Cc: QEMU Developers, Dr. David Alan Gilbert
On 3/10/20 11:45 AM, Juan Quintela wrote:
> Guenter Roeck <linux@roeck-us.net> wrote:
>> Hi,
>>
>> when building qemu, I keep seeing the following message.
>>
>> Unknown option --exist
>>
>> This was introduced with commit 3a67848134d0 ("configure: Enable test
>> and libs for zstd").
>> If I replace "--exist" with "--exists", on a system with libzstd-dev
>> installed, I get
>> a number of error messages.
>
> Patch is on the line already. You need to change the test to:
>
> if test "$zstd" != "no" ; then
> - if $pkg_config --exist libzstd ; then
> + libzstd_minver="1.4.0"
> + if $pkg_config --atleast-version=$libzstd_minver libzstd ; then
> zstd_cflags="$($pkg_config --cflags libzstd)"
>
> It is not enough with having zstd installed, you need to have version
> 1.4.0 for it to work.
> > Sorry, Juan.
No problem; I can live with the message. I just wanted to make sure that
it gets fixed if there was a problem.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-10 20:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10 18:27 "Unknown option --exist" message when building qemu Guenter Roeck
2020-03-10 18:32 ` Dr. David Alan Gilbert
2020-03-10 18:45 ` Juan Quintela
2020-03-10 20:23 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.