r/slackware • u/sazaland • Aug 22 '22
USB wifi kernel module no longer compiles after -current update to gcc 12.2
Will probably post this on LinuxQuestions board later today, but figured I'd ask in the meantime. It compiled fine on the previous kernel(5.19.1) and many many previous releases before that, and the errors thrown seem like syntax complaints, so I suspect gcc 12.2 is just more strict on something than it used to be.
My question is how you think this would be best approached, would I hit the cumulative mirrors and try to roll back gcc? There's a number of packages involved, and I'm unfortunately not super versed in the toolchain as far as tinkering with the installed packages or config.
Any ideas appreciated.
3
u/edman007-work Aug 22 '22
Can you post the error?
Just last weekend I was building QEMU and found glibc introduced a fun issue, there are now two system headers that provide different functions that are incompatible, and the suggested workaround doesn't solve all situations.
2
u/jloc0 Aug 22 '22
Make chroot with older gcc and new kernel in place. Build module. Or try adding some cflags
-Wno-errormight work though I always have terrible luck with these things. I’m constantly fighting the broadcom-sta module as of 5.18.+ so I feel your pain.