I made some progress,but unfortunately I've got an error :

root@devuan:~/Desktop/qemu-v5.1.0# ./configure --target-list=arm-softmmu
--enable-opengl --enable-gtk --enable-kvm --enable-guest-agent
--enable-spice --audio-drv-list="oss pa" --enable-libusb

no errors here.

root@devuan:~/Desktop/qemu-v5.1.0# make

.......

  CC      hw/usb/hcd-xhci.o
hw/usb/hcd-xhci.c: In function ‘usb_xhci_realize’:
hw/usb/hcd-xhci.c:3358:66: error: ‘%d’ directive output may be truncated
writing between 1 and 8 bytes into a region of size 5
[-Werror=format-truncation=]
 3358 |             snprintf(port->name, sizeof(port->name), "usb2 port
#%d", i+1);
      |                                                                  ^~
hw/usb/hcd-xhci.c:3358:54: note: directive argument in the range [1,
89478486]
 3358 |             snprintf(port->name, sizeof(port->name), "usb2 port
#%d", i+1);
      |                                                      ^~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from /root/Desktop/qemu-v5.1.0/include/qemu/osdep.h:85,
                 from hw/usb/hcd-xhci.c:22:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:67:10: note:
‘__builtin___snprintf_chk’ output between 13 and 20 bytes into a
destination of size 16
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL -
1,
      |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hw/usb/hcd-xhci.c:3372:66: error: ‘%d’ directive output may be truncated
writing between 1 and 8 bytes into a region of size 5
[-Werror=format-truncation=]
 3372 |             snprintf(port->name, sizeof(port->name), "usb3 port
#%d", i+1);
      |                                                                  ^~
hw/usb/hcd-xhci.c:3372:54: note: directive argument in the range [1,
89478486]
 3372 |             snprintf(port->name, sizeof(port->name), "usb3 port
#%d", i+1);
      |                                                      ^~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from /root/Desktop/qemu-v5.1.0/include/qemu/osdep.h:85,
                 from hw/usb/hcd-xhci.c:22:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:67:10: note:
‘__builtin___snprintf_chk’ output between 13 and 20 bytes into a
destination of size 16
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL -
1,
      |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

On Fri, Aug 11, 2023 at 4:01 PM Peter Maydell <peter.mayd...@linaro.org>
wrote:

> On Fri, 11 Aug 2023 at 14:44, Валентин via <qemu-discuss@nongnu.org>
> wrote:
> >
> > > I've thought to compile it directly on the devuan 4 installed on the
> ARM chromebook.
> >
> > If you have native Arm toolchain, it's even simpler then – just try to
> "./configure" and "make".
>
> Specify a --target-list= option to configure unless you want to
> sit around forever while it compiles every single supported
> guest architecture :-)
>
> -- PMM
>


-- 
Mario.

Reply via email to