[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Failing to build qemu-xen (in dev-mtp.c) with GCC9


  • To: Dario Faggioli <dfaggioli@xxxxxxxx>
  • From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Date: Fri, 26 Jul 2019 11:06:34 +0100
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=anthony.perard@xxxxxxxxxx; spf=Pass smtp.mailfrom=anthony.perard@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, "Ian.Jackson" <Ian.Jackson@xxxxxxxxxx>
  • Delivery-date: Fri, 26 Jul 2019 10:06:45 +0000
  • Ironport-sdr: LMY+5EBJnWusfbbYVZaJ4Gb7s6UHXhXl6LwJ5LbtPq42wNOqBA0chsyp0wP6tAArjscaLj7ZeC Q3XPLkbwqgnNH81GxF8+ULDYyMlb8onNofZ0S+FJhmlf5tBE6J9aXMTBsMVsuxe45ZYzqJUlqW /djCE4aLcrBPkN64Of9B7Bdl7XMAyBhEZixe5ZbvjUazhxhfsE1ZohAFU5mUZtxgGuPgWc4nbo VY6V/0D1Zt5wJhUoWdPxkIK9PPs8baknq+9f8RYYVye80lc1LharHKk3YCOVvS5tuAO6AIFfr2 W6U=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Jul 26, 2019 at 02:24:23AM +0200, Dario Faggioli wrote:
> Hey,

Hi,

> openSUSE Tumbleweed has: gcc version 9.1.1 20190703
> 
> And this fails to build QEMU, like this:

I'm sorry I have to ask, which version of QEMU or qemu-xen are speaking
about? I'm pretty sure it's unstable, but it's better to ask :-).

>   CC      hw/watchdog/wdt_ib700.o
> /build/tools/qemu-xen-dir/hw/usb/dev-mtp.c: In function 
> ‘usb_mtp_write_metadata’:
> /build/tools/qemu-xen-dir/hw/usb/dev-mtp.c:1715:36: error: taking address of 
> packed member of ‘struct <anonymous>’ may result in an unaligned pointer 
> value [-Werror=address-of-packed-member]
>  1715 |                             dataset->filename);
>       |                             ~~~~~~~^~~~~~~~~~
> 
> This seems to be fixed, for me, if I apply upstream patch 1259f27ec2
> ("usb-mtp: fix alignment of access of ObjectInfo filename field").

Thanks, I'll probably apply that to qemu-xen unstable.

-- 
Anthony PERARD

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.