rtl8821ce fails to build when CONFIG_CFG80211 is not enabled for linux-kvm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Medium
|
Roxana Nicolescu | ||
rtl8821ce (Ubuntu) |
Confirmed
|
Medium
|
Unassigned | ||
Jammy |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[SRU Justification]
Impact:
jammy:linux-kvm does not have CONFIG_CFG80211 enabled.
Module rtl8821ce-dkms requires it, otherwise build will fail.
Build was not performed before because of this rule:
# Only build on wifi enabled kernels
if ! grep -q '^CONFIG_
BUILD_EXCLUSIVE
fi
But in the last update: 5.5.2.1-
BUILD_EXCLUSIVE
instead of appending the new exclude rule.
This lead to new regression in autopkgtest for jammy:linux-
Fix:
Append the last rule:
BUILD_EXCLUSIVE
Tescase:
autopkgtest rtl8821ce fails during build with the error from below
Regression potential:
None. Build is skipped so no tests are performed.
...
ERROR: modpost: "cfg80211_
ERROR: modpost: "cfg80211_
ERROR: modpost: "wiphy_
ERROR: modpost: "__cfg80211_
ERROR: modpost: "cfg80211_new_sta" [/var/lib/
ERROR: modpost: "cfg80211_
ERROR: modpost: "cfg80211_
ERROR: modpost: "cfg80211_
ERROR: modpost: "cfg80211_put_bss" [/var/lib/
ERROR: modpost: "cfg80211_roamed" [/var/lib/
WARNING: modpost: suppressed 18 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:2262: modules] Error 2
=======
./rtl8821ce/
autopkgtest [02:46:16]: test dkms-autopkgtest: -------
dkms-autopkgtest FAIL non-zero exit status 1
autopkgtest [02:46:17]: test dkms-autopkgtest: - - - - - - - - - - results - - - - - - - - - -
autopkgtest [02:46:17]: @@@@@@@
dkms-autopkgtest FAIL non-zero exit status 1
Creating nova instance adt-jammy-
Changed in ubuntu-kernel-tests: | |
importance: | Undecided → Medium |
Changed in rtl8821ce (Ubuntu): | |
importance: | Undecided → Medium |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Roxana Nicolescu (roxanan) |
tags: | added: sru-20230130 |
summary: |
- rtl8821ce fails to build when CONFIG_CFG80211 is not enabled + rtl8821ce fails to build when CONFIG_CFG80211 is not enabled for linux- + kvm |
Proposed attached patch.
Tested locally on jammy:linux- kvm-5.15. 0-1029. 34 jammy-kvm: ~/rtl$ sudo dpkg -i rtl8821ce- dkms_5. 5.2.1-0ubuntu11 ~0.22.04. 2_all.deb dkms_5. 5.2.1-0ubuntu11 ~0.22.04. 2_all.deb ... 1-0ubuntu11~ 0.22.04. 2) over (5.5.2. 1-0ubuntu11~ 0.22.04. 2) ... 1-0ubuntu11~ 0.22.04. 2) ... dkms/rtl8821ce/ 5.5.2.1/ 5.15.0- 1029-kvm/ x86_64/ dkms.conf for module rtl8821ce includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch. jammy-kvm: ~/rtl$
ubuntu@
(Reading database ... 104520 files and directories currently installed.)
Preparing to unpack rtl8821ce-
Deleting module rtl8821ce-5.5.2.1 completely from the DKMS tree.
Unpacking rtl8821ce-dkms (5.5.2.
Setting up rtl8821ce-dkms (5.5.2.
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.15.0-1029-kvm
Building initial module for 5.15.0-1029-kvm
Error! The /var/lib/
This indicates that it should not be built.
Skipped.
ubuntu@
Also tried on kientic 5-19 to make sure it's still not built. dkms/rtl8821ce/ 5.5.2.1/ source/ dkms.conf) dkms/rtl8821ce/ 5.5.2.1/ 5.19.0- 31-generic/ x86_64/ dkms.conf for module rtl8821ce includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
Building initial module for 5.19.0-31-generic
Deprecated feature: MODULES_CONF (/var/lib/
Error! The /var/lib/
This indicates that it should not be built.