From: bugzilla-daemon@kernel.org
To: kvm@vger.kernel.org
Subject: [Bug 216056] New: Kernel Fails to compile with GCC 12.1 different errors than 18.0
Date: Wed, 01 Jun 2022 02:20:51 +0000 [thread overview]
Message-ID: <bug-216056-28872@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=216056
Bug ID: 216056
Summary: Kernel Fails to compile with GCC 12.1 different errors
than 18.0
Product: Virtualization
Version: unspecified
Kernel Version: 18.1
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: kvm
Assignee: virtualization_kvm@kernel-bugs.osdl.org
Reporter: nanook@eskimo.com
Regression: No
Created attachment 301084
--> https://bugzilla.kernel.org/attachment.cgi?id=301084&action=edit
.config renamed as "config" because stupid browser wouldn't show dot files.
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[3]: *** Waiting for unfinished jobs....
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
This is the error channel from make bindeb-pkg
Similar error happens with makerpm-pkg
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
next reply other threads:[~2022-06-01 2:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-01 2:20 bugzilla-daemon [this message]
2022-06-01 6:56 ` [Bug 216056] Kernel Fails to compile with GCC 12.1 different errors than 18.0 bugzilla-daemon
2022-06-01 6:59 ` bugzilla-daemon
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=bug-216056-28872@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@kernel.org \
--cc=kvm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox