Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#74018 - GCC 11.2.0-4 can't compile kernel modules

Attached to Project: Arch Linux
Opened by Jim (MustardOnCheese) - Thursday, 03 March 2022, 12:54 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 03 March 2022, 19:31 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To freswa (frederik)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
GCC 11.2.0-4 can't compile kernel modules

Steps to reproduce:
Upgrade gcc and gcc-libs to 11.2.0-4 and try to add a dkms module. Error about:

cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so

Downgrade to 11.2.0-3 fixes issue and allows me to add openrazer-driver-dkms for Razer keyboard and mouse.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 03 March 2022, 19:31 GMT
Reason for closing:  None
Additional comments about closing:  No official Arch kernel pkg.
Comment by Antonio Rojas (arojas) - Thursday, 03 March 2022, 13:17 GMT
which kernel version?
Comment by Jim (MustardOnCheese) - Thursday, 03 March 2022, 15:02 GMT
I am using linux-zen 5.16.11.zen1-2.1. I also tried with 5.16.11-arch and linux-lts 5.15.26-1.1 with gcc 11.2.0-4 to build openrazer-driver-dkms. Once I downgraded to 11.2.0-3, I was able to build openrazer-driver-dkms on linux-zen 5.16.11.zen1-2.1.
Comment by Andreas Radke (AndyRTR) - Thursday, 03 March 2022, 16:15 GMT
We don't have kernels with pkgrel 2.1 or 1.1 in our repos. Please do a full -Syu and show uname -a.
Comment by Jim (MustardOnCheese) - Thursday, 03 March 2022, 19:24 GMT
$ uname -a
Linux hans 5.15.26-1.1-lts #1 SMP Thu, 03 Mar 2022 11:14:36 +0000 x86_64 GNU/Linux

Loading...