[Bug 1988710] Re: qemu FTBFS with GCC 12

Launchpad Bug Tracker 1988710 at bugs.launchpad.net
Wed Sep 21 00:53:40 UTC 2022


This bug was fixed in the package qemu - 1:7.0+dfsg-7ubuntu2

---------------
qemu (1:7.0+dfsg-7ubuntu2) kinetic; urgency=medium

  [ Paride Legovini ]
  * d/rules: disable LTO on non-amd64 builds (LP: #1921664)
  * GCC-12 FTBFS (LP: #1988710)
    - d/p/u/lp1988710-silence-openbios-array-bounds-false-positive.patch.
      Silence -Warray-bounds false positive (treated as error)

  [ Christian Ehrhardt ]
  * More on GCC-12 FTBFS (LP 1988710)
    - d/rules: set -O1 for alpha firmware build
    - d/p/u/lp1988710-opensbi-Makefile-fix-build-with-binutils-2.38.patch:
      further FTBFS fixup

 -- Christian Ehrhardt <christian.ehrhardt at canonical.com>  Mon, 19 Sep
2022 08:07:24 +0200

** Changed in: qemu (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-12 in Ubuntu.
https://bugs.launchpad.net/bugs/1988710

Title:
  qemu FTBFS with GCC 12

Status in gcc:
  New
Status in gcc-12 package in Ubuntu:
  New
Status in qemu package in Ubuntu:
  Fix Released

Bug description:
  qemu 1:7.0+dfsg-7ubuntu1 FTBFS on Kinetic due to an extra warning
  emitted by gcc 12:

  ----------------

  In function ‘ppc64_patch_handlers’,
      inlined from ‘cpu_970_init’ at /<<PKGBUILDDIR>>/roms/openbios/arch/ppc/qemu/init.c:433:5:
  /<<PKGBUILDDIR>>/roms/openbios/arch/ppc/qemu/init.c:400:10: error: array subscript 0 is outside array bounds of ‘uint32_t[0]’ {aka ‘unsigned int[]’} [-Werror=array-bounds]
    400 |     *dsi = 0x48002002;
        |     ~~~~~^~~~~~~~~~~~
  /<<PKGBUILDDIR>>/roms/openbios/arch/ppc/qemu/init.c:403:10: error: array subscript 0 is outside array bounds of ‘uint32_t[0]’ {aka ‘unsigned int[]’} [-Werror=array-bounds]
    403 |     *isi = 0x48002202;
        |     ~~~~~^~~~~~~~~~~~

  [...]

  cc1: all warnings being treated as errors
  make[3]: *** [rules.mak:323: target/arch/ppc/qemu/init.o] Error 1

  ----------------

  Test rebuild done in this PPA:

    https://launchpad.net/~paride/+archive/ubuntu/qemu-nochange

  Full build log:

    https://launchpadlibrarian.net/621778341/buildlog_ubuntu-kinetic-
  amd64.qemu_1%3A7.0+dfsg-7ubuntu1~kineticppa1_BUILDING.txt.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1988710/+subscriptions




More information about the foundations-bugs mailing list