You are not logged in.

#1 2022-03-14 09:13:21

chub
Member
Registered: 2022-03-14
Posts: 1

cc1: error: incompatible gcc/plugin versions

my dkms build is failing after updating the kernel

this repository was working:

https://github.com/morrownr/8821cu-20210118

when trying to do it manually

$ make
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/5.16.12-arch1-1.0/build M=/home/user/Downloads/8821cu/8821cu-20210118  modules
make[1]: Entering directory '/usr/lib/modules/5.16.12-arch1-1.0/build'
  CC [M]  /home/user/Downloads/8821cu/8821cu-20210118/core/rtw_cmd.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:287: /home/user/Downloads/8821cu/8821cu-20210118/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1846: /home/user/Downloads/8821cu/8821cu-20210118] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.16.12-arch1-1.0/build'
make: *** [Makefile:2498: modules] Error 2
$ uname -a
Linux router 5.16.12-arch1-1.0 #1 SMP PREEMPT Fri, 04 Mar 2022 13:50:58 +0000 i686 GNU/Linux
$ cat /proc/version
Linux version 5.16.12-arch1-1.0 (linux@archlinux) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT Fri, 04 Mar 2022 13:50:58 +0000
$ pacman -Q gcc
gcc 11.2.0-3.4
$ gcc --version | head -n 1
gcc (GCC) 11.2.0
$ pacman -Q binutils
binutils 2.38-3.9
$ pacman -Q bc
bc 1.07.1-4.0

the error seems to point to different version used to compile the kernel, yet my gcc version seems to match. any ideas?

Last edited by chub (2022-03-14 09:13:46)

Offline

#2 2022-03-14 17:37:57

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,179

Re: cc1: error: incompatible gcc/plugin versions

Reads like a dupliciate of this one.  But it's useful to know that there are two of you out there building dkms kernel modules.  I see you're building a kernel module to support an out of kernel source for a USB Wifi driver.  I'll just note that I'm running a realtek 8811 chipset based usb device on my arch32 laptop, and a realtek 8812 chipset based PCI-e card on my video server, and these are working just fine from kernel sources. I guess the 8811, 8821 and 8831 are just too weird to be in kernel, or maybe the letters after the number are important because mine are EUS and US respectively.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Online

Board footer

Powered by FluxBB