Bug 216056 - Kernel Fails to compile with GCC 12.1 different errors than 18.0
Summary: Kernel Fails to compile with GCC 12.1 different errors than 18.0
Status: RESOLVED DUPLICATE of bug 216026
Alias: None
Product: Virtualization
Classification: Unclassified
Component: kvm (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: virtualization_kvm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-01 02:20 UTC by Robert Dinse
Modified: 2022-06-01 06:59 UTC (History)
0 users

See Also:
Kernel Version: 5.18.1
Subsystem:
Regression: No
Bisected commit-id:


Attachments
.config renamed as "config" because stupid browser wouldn't show dot files. (260.92 KB, text/plain)
2022-06-01 02:20 UTC, Robert Dinse
Details

Description Robert Dinse 2022-06-01 02:20:51 UTC
Created attachment 301084 [details]
.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
Comment 1 Artem S. Tashkinov 2022-06-01 06:56:25 UTC

*** This bug has been marked as a duplicate of bug 216026 ***
Comment 2 Robert Dinse 2022-06-01 06:59:36 UTC
Not a duplicate, that bug report was on 5.18.0, which supposedly patches to fix were going to be committed to but apparently weren't as it is still broken in 5.18.1.

Note You need to log in before you can comment on or make changes to this bug.