[Solved]incompatible gcc-plugins error for linux-lts
linux-lts 5.15.54-1
linux-lts-headers 5.15.54-1
causing error "incompatible gcc-plugins error" while buildling dkms modules
logs:
DKMS make.log for anbox-ashmem-r39.2699623 for kernel 5.15.54-1-lts (x86_64)
Thu Jul 28 09:09:25 PM PKT 2022
make -C /lib/modules/5.15.54-1-lts/build V=0 M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.15.54-1-lts/build'
CC [M] /var/lib/dkms/anbox-ashmem/r39.2699623/build/deps.o
CC [M] /var/lib/dkms/anbox-ashmem/r39.2699623/build/ashmem.o
cc1: error: incompatible gcc/plugin versions
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/anbox-ashmem/r39.2699623/build/deps.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/anbox-ashmem/r39.2699623/build/ashmem.o] Error 1
make[1]: *** [Makefile:1886: /var/lib/dkms/anbox-ashmem/r39.2699623/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.54-1-lts/build'
make: *** [Makefile:12: all] Error 2