All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] More QEMU gcc-9.1 build issues
@ 2019-08-09 12:32 Dario Faggioli
  2019-08-16 10:15 ` Anthony PERARD
  0 siblings, 1 reply; 2+ messages in thread
From: Dario Faggioli @ 2019-08-09 12:32 UTC (permalink / raw)
  To: xen-devel; +Cc: Anthony Perard


[-- Attachment #1.1: Type: text/plain, Size: 2840 bytes --]

Hey Anthony,

There's more of those issues related to building our QEMU with recent
(the one in openSUSE Tumbleweed) GCC:

gcc version 9.1.1 20190723 [gcc-9-branch revision 273734] (SUSE Linux)

I've just tried building staging, and run into this:

  CC      hw/display/qxl-render.o
/home/dario/src/xen.git/tools/qemu-xen-dir/hw/display/qxl.c: In function ‘init_qxl_ram’:
/home/dario/src/xen.git/tools/qemu-xen-dir/hw/display/qxl.c:50:19: error: taking address of packed member of ‘struct QXLReleaseRing_ring_el’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
   50 |             ret = &(r)->items[prod].el;                                 \
      |                   ^~~~~~~~~~~~~~~~~~~~
/home/dario/src/xen.git/tools/qemu-xen-dir/hw/display/qxl.c:429:5: note: in expansion of macro ‘SPICE_RING_PROD_ITEM’
  429 |     SPICE_RING_PROD_ITEM(d, &d->ram->release_ring, item);
      |     ^~~~~~~~~~~~~~~~~~~~
/home/dario/src/xen.git/tools/qemu-xen-dir/hw/display/qxl.c: In function ‘qxl_push_free_res’:
/home/dario/src/xen.git/tools/qemu-xen-dir/hw/display/qxl.c:50:19: error: taking address of packed member of ‘struct QXLReleaseRing_ring_el’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
   50 |             ret = &(r)->items[prod].el;                                 \
      |                   ^~~~~~~~~~~~~~~~~~~~
/home/dario/src/xen.git/tools/qemu-xen-dir/hw/display/qxl.c:762:5: note: in expansion of macro ‘SPICE_RING_PROD_ITEM’
  762 |     SPICE_RING_PROD_ITEM(d, ring, item);
      |     ^~~~~~~~~~~~~~~~~~~~
/home/dario/src/xen.git/tools/qemu-xen-dir/hw/display/qxl.c: In function ‘interface_release_resource’:
/home/dario/src/xen.git/tools/qemu-xen-dir/hw/display/qxl.c:50:19: error: taking address of packed member of ‘struct QXLReleaseRing_ring_el’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
   50 |             ret = &(r)->items[prod].el;                                 \
      |                   ^~~~~~~~~~~~~~~~~~~~
/home/dario/src/xen.git/tools/qemu-xen-dir/hw/display/qxl.c:795:5: note: in expansion of macro ‘SPICE_RING_PROD_ITEM’
  795 |     SPICE_RING_PROD_ITEM(qxl, ring, item);
      |     ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [/home/dario/src/xen.git/tools/qemu-xen-dir/rules.mak:69: hw/display/qxl.o] Error 1

I fixed it by manually importing the following upstream commit:

94932c95c10 "qxl: avoid unaligned pointer reads/writes"

Regards
-- 
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

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

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

* Re: [Xen-devel] More QEMU gcc-9.1 build issues
  2019-08-09 12:32 [Xen-devel] More QEMU gcc-9.1 build issues Dario Faggioli
@ 2019-08-16 10:15 ` Anthony PERARD
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony PERARD @ 2019-08-16 10:15 UTC (permalink / raw)
  To: Dario Faggioli; +Cc: xen-devel

On Fri, Aug 09, 2019 at 02:32:47PM +0200, Dario Faggioli wrote:
> Hey Anthony,
> 
> There's more of those issues related to building our QEMU with recent
> (the one in openSUSE Tumbleweed) GCC:
> 
> gcc version 9.1.1 20190723 [gcc-9-branch revision 273734] (SUSE Linux)

[...]

> I fixed it by manually importing the following upstream commit:
> 
> 94932c95c10 "qxl: avoid unaligned pointer reads/writes"

Done. And I've merged every single commit available upstream! I hope
that's enough :-D.

Joke aside, QEMU v4.1 was released today, so I merged it. I was waiting
for that instead of cherry-picking the single commit you've pointed.

Cheers,

-- 
Anthony PERARD

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

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

end of thread, other threads:[~2019-08-16 10:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-09 12:32 [Xen-devel] More QEMU gcc-9.1 build issues Dario Faggioli
2019-08-16 10:15 ` Anthony PERARD

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.