Does not compile on 6.2.0-37-generic on Ubuntu 22.04 - running OK on 6.2.0-34-generic
elpraga opened this issue · comments
I've just run into a problem. I have been using this module for some time, and everything had beed going OK until today when I upgraded kernel to 6.2.0-37-generic.
Without any other change, the module does not compile.
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.o
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_android.o
/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.c: In function ‘rtw_regd_init’:
/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.c:409:36: error: ‘REGULATORY_IGNORE_STALE_KICKOFF’ undeclared (first use in this function)
409 | wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.c:409:36: note: each undeclared identifier is reported only once for each function it appears in
CC [M] /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/rtw_proc.o
make[2]: *** [scripts/Makefile.build:260: /var/lib/dkms/rtl88x2bu/5.13.1/build/os_dep/linux/wifi_regd.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2026: /var/lib/dkms/rtl88x2bu/5.13.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-37-generic'
make: *** [Makefile:2506: modules] Error 2
This seems to be the relevant part of /var/lib/dkms/rtl88x2bu/5.13.1/build/make.log
Any ideas how to fix this issue?
Hi @elpraga
I seem to remember this problem from maybe a year ago. I would have to dig in to refresh my memory but try this first:
$ git pull
$ sudo sh install-driver.sh
Thank you for your quick reply @morrownr ! I had run the script again before opening this issue.
Now, I have tried what you have suggested (including the git pull
), but the result remains the same.
It still does finishes compiling on kernel 6.2.0-34-generic but fails with the same error on 6.2.0-37-generic.
I had been running this driver for quite some time on the same machine, and I had never had problems before. Everything had run smoothly via dkms
.
I am absolutely baffled, and I'd appreciate any help you can give me!
Thank you!
I am absolutely baffled
We'll figure this out. I'm getting more reports in. Remember that I have 6 of these Realtek out-of-kernel drivers up here and the additional reports are giving some hints as I think what I am seeing is related somehow.
I'm seeing kernel 6.1.65 was working fine and now 6.1.66 is broken. That may indicate a backport is breaking things and since Ubuntu is using kernel 6.2.x, it could be that the Ubuntu devs picked and included the same bad backport. If I am correct, we are going to see a flood of reports this week as distros upgrade. If I can figure out which backport caused this, I can probably figure out a fix in the driver... maybe.
One way or another, this may not be a quick fix so running that previously working kernel is likely your best bet for now.
It's probably unrelated @morrownr
https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.6
We'll see. You should get a new kernel flowing in soon. Tell me what happens,
I've installed the 6.2.0-39 kernel, and I still cannot compile the driver. I'm getting the same error as with 6.2.0.-37
I'll try to set aside some time to look at this something this afternoon.
I have now accomplished numerous installations on Ubuntu, Debian 12 and the most recent RasPiOS. I've tested on kernels 6.1, 6.5, 6.6 and 6.7. I am not seeing the problem. My to-do list is long and sometimes I have to offer alternatives due to the time I have available.
In this case, you can go back to the last known working kernel while waiting for future upgrades that may fix the problem or you can see if your distro has the hardware enablement version of kernel 6.5 available and upgrade to it.
I hope you understand.
@morrownr Thank you for your time and your help!
Did I understand correctly that you did not test the kennel I've actually reported the issue on? I was having issue with the latest hwe kennel (6.2.0-39 and also with 37), and I noticed that you did not mention kennel 6.2.
I just want to double check if I should be checking for some file corruption issue it something similar.
In any case, if you were able to compile the driver successfully on later kernels, I should be able to compile it again on the future hwe kennel from 24.04, so I should not be stuck on the same kernel forever.
Thank you so much for looking into the issue!
Did I understand correctly that you did not test the kennel I've actually reported the issue on?
That is correct. I currently do not have Ubuntu 22.04 installed on my test systems. I do have Ubuntu 23.10 installed. I tested several kernels on multiple distros and platforms. It is best to work problems with the exact distro in use but there hundreds of distros and most have more than one version that is currently supported so it is impossible for me to support every distro that is out there. I have to make choices based on my experience that allow me to solve as many problems as I can.
This repo averages about 250 clones per day. I will be watching issues. You might do some reading over at the Ubuntu forums to see if anything interesting is being discussed. For now I have a long to-do list for issues that I do know how to fix or enhance so I will be working on those until more info is available. Your best option for now is probably to boot back into the last working setup you had.
Cheers,