Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/qemu: disable vhost-user with uclibc-ng
@ 2021-08-06 21:10 Fabrice Fontaine
  2021-08-07  8:24 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-08-06 21:10 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour, Fabrice Fontaine

Disable vhost-user on uclibc-ng as it raises build failures since bump
to version 6.0.0 in commit 6b86c9335fc3ff381878156c6243454d4b688df9 and
https://github.com/qemu/qemu/commit/810033be083040591fee2fc09f2f294670ed1930

The issue is that F_ADD_SEALS and F_SEAL_xxx variables are not defined on
uclibc-ng (even if MFD_ALLOW_SEALING is defined) resulting in the
following build failure:

../subprojects/libvhost-user/libvhost-user.c:1637:22: error: 'F_ADD_SEALS' undeclared (first use in this function)
 1637 |     ret = fcntl(*fd, F_ADD_SEALS, flags);
      |                      ^~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/9f393539931b51191cf7128e5c618c2398fc86c1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/qemu/qemu.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index b2a9420b21..1854aed201 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -201,6 +201,7 @@ define QEMU_CONFIGURE_CMDS
 			--disable-capstone \
 			--with-git-submodules=ignore \
 			--disable-opengl \
+			$(if $(BR2_TOOLCHAIN_USES_UCLIBC),--disable-vhost-user,--enable-vhost-user) \
 			--disable-vhost-user-blk-server \
 			--disable-virtiofsd \
 			--disable-tests \
-- 
2.30.2

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/qemu: disable vhost-user with uclibc-ng
  2021-08-06 21:10 [Buildroot] [PATCH 1/1] package/qemu: disable vhost-user with uclibc-ng Fabrice Fontaine
@ 2021-08-07  8:24 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2021-08-07  8:24 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Romain Naour, buildroot

Fabrice, All,

On 2021-08-06 23:10 +0200, Fabrice Fontaine spake thusly:
> Disable vhost-user on uclibc-ng as it raises build failures since bump
> to version 6.0.0 in commit 6b86c9335fc3ff381878156c6243454d4b688df9 and
> https://github.com/qemu/qemu/commit/810033be083040591fee2fc09f2f294670ed1930
> 
> The issue is that F_ADD_SEALS and F_SEAL_xxx variables are not defined on
> uclibc-ng (even if MFD_ALLOW_SEALING is defined) resulting in the
> following build failure:
> 
> ../subprojects/libvhost-user/libvhost-user.c:1637:22: error: 'F_ADD_SEALS' undeclared (first use in this function)
>  1637 |     ret = fcntl(*fd, F_ADD_SEALS, flags);
>       |                      ^~~~~~~~~~~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/9f393539931b51191cf7128e5c618c2398fc86c1
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/qemu/qemu.mk | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
> index b2a9420b21..1854aed201 100644
> --- a/package/qemu/qemu.mk
> +++ b/package/qemu/qemu.mk
> @@ -201,6 +201,7 @@ define QEMU_CONFIGURE_CMDS
>  			--disable-capstone \
>  			--with-git-submodules=ignore \
>  			--disable-opengl \
> +			$(if $(BR2_TOOLCHAIN_USES_UCLIBC),--disable-vhost-user,--enable-vhost-user) \

I've changed that to use a conditional block, like we use for all other
conditional options.

>  			--disable-vhost-user-blk-server \

I was wodnering whether we would have to do something about that, but
no. It's disabling the option, and the configure script checks it only
if vhost-user is set.

However, there's also vhost-user-fs that we do not handle. The default
is disabled, so that's still OK...

Applied to master, thanks.

Regards,
Yann E. MORIN.

>  			--disable-virtiofsd \
>  			--disable-tests \
> -- 
> 2.30.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-07  8:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-06 21:10 [Buildroot] [PATCH 1/1] package/qemu: disable vhost-user with uclibc-ng Fabrice Fontaine
2021-08-07  8:24 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox