kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 216137] New: Kernel Will Not Compile using GCC 12.1
@ 2022-06-15  6:26 bugzilla-daemon
  2022-06-15  6:29 ` [Bug 216137] " bugzilla-daemon
  2022-06-15 14:05 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2022-06-15  6:26 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=216137

            Bug ID: 216137
           Summary: Kernel Will Not Compile using GCC 12.1
           Product: Virtualization
           Version: unspecified
    Kernel Version: 5.18.0 through 5.18.4
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: blocking
          Priority: P1
         Component: kvm
          Assignee: virtualization_kvm@kernel-bugs.osdl.org
          Reporter: nanook@eskimo.com
        Regression: No

I've filed a bug on previous versions but it appears to have disappeared from
the system, at least I can not find it with the search tool.

Using gcc 12.1, 5.18.0 through 5.18.4 fails to compile all with this same error
in the kvm section:

 dpkg-source --before-build .
 debian/rules binary
In function ‘reg_read’,
    inlined from ‘reg_rmw’ at arch/x86/kvm/emulate.c:266:2:
arch/x86/kvm/emulate.c:254:27: error: array subscript 32 is above array bounds
of ‘long unsigned int[17]’ [-Werror=array-bounds]
  254 |         return ctxt->_regs[nr];
      |                ~~~~~~~~~~~^~~~
In file included from arch/x86/kvm/emulate.c:23:
arch/x86/kvm/kvm_emulate.h: In function ‘reg_rmw’:
arch/x86/kvm/kvm_emulate.h:366:23: note: while referencing ‘_regs’
  366 |         unsigned long _regs[NR_VCPU_REGS];
      |                       ^~~~~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:288: arch/x86/kvm/emulate.o] Error 1
make[4]: *** [scripts/Makefile.build:550: arch/x86/kvm] Error 2
make[3]: *** [Makefile:1834: arch/x86] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make[1]: *** [scripts/Makefile.package:83: bindeb-pkg] Error 2
make: *** [Makefile:1542: bindeb-pkg] Error 2

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 216137] Kernel Will Not Compile using GCC 12.1
  2022-06-15  6:26 [Bug 216137] New: Kernel Will Not Compile using GCC 12.1 bugzilla-daemon
@ 2022-06-15  6:29 ` bugzilla-daemon
  2022-06-15 14:05 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2022-06-15  6:29 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=216137

--- Comment #1 from Robert Dinse (nanook@eskimo.com) ---
This has really become more urgent now that 5.17 has become EOL.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 216137] Kernel Will Not Compile using GCC 12.1
  2022-06-15  6:26 [Bug 216137] New: Kernel Will Not Compile using GCC 12.1 bugzilla-daemon
  2022-06-15  6:29 ` [Bug 216137] " bugzilla-daemon
@ 2022-06-15 14:05 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2022-06-15 14:05 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=216137

Artem S. Tashkinov (aros@gmx.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Artem S. Tashkinov (aros@gmx.com) ---


*** This bug has been marked as a duplicate of bug 216026 ***

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

end of thread, other threads:[~2022-06-15 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-15  6:26 [Bug 216137] New: Kernel Will Not Compile using GCC 12.1 bugzilla-daemon
2022-06-15  6:29 ` [Bug 216137] " bugzilla-daemon
2022-06-15 14:05 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).