oss4-dkms fails to build when CONFIG_USB/CFG80211 is disabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oss4 (Ubuntu) |
In Progress
|
Undecided
|
Unassigned | ||
Jammy |
In Progress
|
Undecided
|
Unassigned | ||
Lunar |
Won't Fix
|
Undecided
|
Unassigned | ||
Mantic |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
SRU justification:
[Impact]
This is encountered on linux kernel derivatives with fewer configuration options enabled.
First time saw on jammy:linux-
During build, it fails with the following error:
...
ERROR: modpost: "wiphy_free" [/var/lib/
ERROR: modpost: "cfg80211_
ERROR: modpost: "cfg80211_
ERROR: modpost: "usb_kill_urb" [/var/lib/
ERROR: modpost: "cfg80211_
ERROR: modpost: "cfg80211_
ERROR: modpost: "ieee80211_
ERROR: modpost: "cfg80211_get_bss" [/var/lib/
ERROR: modpost: "usb_deregister" [/var/lib/
ERROR: modpost: "wiphy_unregister" [/var/lib/
WARNING: modpost: suppressed 29 unresolved symbol warnings because there were too many)
make[2]: *** [scripts/
make[2]: *** Deleting file '/var/lib/
make[1]: *** [Makefile:1821: modules] Error 2
make[1]: Leaving directory '/usr/src/
make: *** [Makefile:1457: modules] Error 2
because CONFIG_USB=n, CONFIG_CFG80211=n
[Fix]
Add a rule to build oss4 when CONFIG_USB=y/m and CONFIG_
BUILD_EXCLUSIVE
[Test Plan]
1.For lunar and mantic:
Install a new version of linux-kvm
apt install oss4 will fail as described above.
After the fix, it will not be built at all.
2. In #2011551 the bug was solved for jammy, but BUILD_EXCLUISVE
For jammy it should not be built with both previous version and this version. Try with linux-kvm as well.
Once packages are in proposed, a new adt is triggered against proposed for mantic/
[Where problems could occur]
Low possibility of new issues.
[Note]
This fix is not scalable in the sense that if configuration name changes, the module has to be changed as well.
tags: | added: patch |
Mantic, lunar and jammy fixes are attached.
Tested locally on kvm instances when possible (for jammy and lunar only) because kvm does not have these config options enabled.
Results: kvm-6.2. 0-1029
1. lunar:linux-
$ dpkg -i oss4-dkms_ 4.2-build2020- 1ubuntu2_ amd64.deb 4.2-build2020- 1ubuntu2_ amd64.deb ... 1ubuntu2) over (4.2-build2020- 1ubuntu2) ... 1ubuntu2) ... dkms/oss4/ 4.2-build2020/ 6.2.0-1009- kvm/x86_ 64/dkms. conf for module oss4 includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
(Reading database ... 133994 files and directories currently installed.)
Preparing to unpack oss4-dkms_
Deleting module oss4-4.2-build2020 completely from the DKMS tree.
Unpacking oss4-dkms (4.2-build2020-
Setting up oss4-dkms (4.2-build2020-
Loading new oss4-4.2-build2020 DKMS files...
Building for 6.2.0-1009-kvm
Building initial module for 6.2.0-1009-kvm
Error! The /var/lib/
This indicates that it should not be built.
Skipped.
2. jammy:linux- kvm-5.15. 0-1038 4.2-build2010- 5ubuntu9. 3_amd64. deb 5.15.0- 1038-kvm -C /lib/modules/ 5.15.0- 1038-kvm/ build M=/var/ lib/dkms/ oss4/4. 2-build2010/ build/core modules && make -C /var/lib/ dkms/oss4/ 4.2-build2010/ build/drivers osscore_symbols.inc && make -C /lib/modules/ 5.15.0- 1038-kvm/ build M=/var/ lib/dkms/ oss4/4. 2-build2010/ build/drivers modules. ....... ......( bad exit status: 2) dkms/oss4/ 4.2-build2010/ build/make. log for more information. dkms/rtl8821ce/ 5.5.2.1/ 5.15.0- 1038-kvm/ x86_64/ dkms.conf for module rtl8821ce includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch.
$ dpkg -i oss4-dkms_
...
make -j1 KERNELRELEASE=
Error! Bad return status for module build on kernel: 5.15.0-1038-kvm (x86_64)
Consult /var/lib/
Error! The /var/lib/
This indicates that it should not be built.
3. mantic:linux latest 6.4 kernel generic/ x86_64 succeeded for oss4
Kvm is no longer a derivative for mantic, but tested this patch on the main linux to make sure it does not have a negative impact
dkms autoinstall on 6.4.0-1-
...done.