All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dfaggioli@suse.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: Anthony Perard <anthony.perard@citrix.com>
Subject: [Xen-devel] More QEMU gcc-9.1 build issues
Date: Fri, 09 Aug 2019 14:32:47 +0200	[thread overview]
Message-ID: <635339af71d7a5defa3c5e88ca1a45abbe66f2e9.camel@suse.com> (raw)


[-- 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

             reply	other threads:[~2019-08-09 12:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-09 12:32 Dario Faggioli [this message]
2019-08-16 10:15 ` [Xen-devel] More QEMU gcc-9.1 build issues Anthony PERARD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=635339af71d7a5defa3c5e88ca1a45abbe66f2e9.camel@suse.com \
    --to=dfaggioli@suse.com \
    --cc=anthony.perard@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.