And the reason is: [Makefile:1870: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build] Error 2
My rtl8821ce wifi chip strikes again!
This problem arose after my 04/02/2022 snapshot, which I reverted to because attempts to fix this problem led to a grub failure to boot and other problems. Instead of booting I got a grub> prompt. I used the standard procedures to make the -1032-oem the desired kernel and booted into it even though it didn't have the rtl8821ce kernel mod activated. My wifi ran fine, but I could no longer run the apt command without constantly running into
$ sudo dpkg --configure -a
Comparing them with examples of previous files, the /etc/default/grub and the /etc/grub.d/* files contain no errors that I could notice. In fact, the /etc/grub.d files all have jan 11 dates, well before this debacle began.
Clearing the dpkg cache did not fix the problem. I suspect that the problem is in the -1032-oem kernel itself.
I uninstalled dkms and set grub to point to the -1032-oem kernel, which booted fine. And, the wifi runs at 5G and is stable.
The make log:
My rtl8821ce wifi chip strikes again!
This problem arose after my 04/02/2022 snapshot, which I reverted to because attempts to fix this problem led to a grub failure to boot and other problems. Instead of booting I got a grub> prompt. I used the standard procedures to make the -1032-oem the desired kernel and booted into it even though it didn't have the rtl8821ce kernel mod activated. My wifi ran fine, but I could no longer run the apt command without constantly running into
$ sudo dpkg --configure -a
Setting up grub-pc (2.04-1ubuntu26.15) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/99_breeze-grub.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.14.0-1032-oem (5.14.0-1032.35) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.14.0-1032-oem
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/99_breeze-grub.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.14.0-1032-oem (--configure):
installed linux-image-5.14.0-1032-oem package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
grub-pc
linux-image-5.14.0-1032-oem
jerry@jerry-hp17cn1xxx:~$
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/99_breeze-grub.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
dpkg: error processing package grub-pc (--configure):
installed grub-pc package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.14.0-1032-oem (5.14.0-1032.35) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.14.0-1032-oem
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/99_breeze-grub.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.14.0-1032-oem (--configure):
installed linux-image-5.14.0-1032-oem package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
grub-pc
linux-image-5.14.0-1032-oem
jerry@jerry-hp17cn1xxx:~$
Clearing the dpkg cache did not fix the problem. I suspect that the problem is in the -1032-oem kernel itself.
I uninstalled dkms and set grub to point to the -1032-oem kernel, which booted fine. And, the wifi runs at 5G and is stable.
The make log:
DKMS make.log for rtl8821ce-v5.5.2_34066.20200325 for kernel 5.14.0-1032-oem (x86_64)
Thu Apr 7 13:37:49 CDT 2022
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.14.0-1032-oem/build M=/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.14.0-1032-oem'
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_debug.o
....lots of similar lines
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_mp.o
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/hal/hal_intf.o
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:7310:97: error: missing binary operator before token "("
7310 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
| ^
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_mgmt_frame_register’:
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:7322:97: error: missing binary operator before token "("
7322 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
| ^
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:7344:97: error: missing binary operator before token "("
7344 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
| ^
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c: At top level:
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9650:98: error: missing binary operator before token "("
9650 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
| ^
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9653:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’
9653 | .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
| ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9653:25: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, u64)’ {aka ‘int (*)(struct wiphy *, struct wireless_dev *, long long unsigned int)’} from incompatible pointer type ‘void (*)(struct wiphy *, struct wireless_dev *, u16, bool)’ {aka ‘void (*)(struct wiphy *, struct wireless_dev *, short unsigned int, _Bool)’} [-Werror=incompatible-pointer-types]
9653 | .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9653:25: note: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx_cancel_wait’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1870: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.14.0-1032-oem'
make: *** [Makefile:2244: modules] Error 2
Thu Apr 7 13:37:49 CDT 2022
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.14.0-1032-oem/build M=/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.14.0-1032-oem'
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/core/rtw_debug.o
....lots of similar lines
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_mp.o
CC [M] /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/hal/hal_intf.o
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:7310:97: error: missing binary operator before token "("
7310 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
| ^
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_mgmt_frame_register’:
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:7322:97: error: missing binary operator before token "("
7322 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
| ^
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:7344:97: error: missing binary operator before token "("
7344 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
| ^
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c: At top level:
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9650:98: error: missing binary operator before token "("
9650 | #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,0)
| ^
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9653:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’
9653 | .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
| ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9653:25: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, u64)’ {aka ‘int (*)(struct wiphy *, struct wireless_dev *, long long unsigned int)’} from incompatible pointer type ‘void (*)(struct wiphy *, struct wireless_dev *, u16, bool)’ {aka ‘void (*)(struct wiphy *, struct wireless_dev *, short unsigned int, _Bool)’} [-Werror=incompatible-pointer-types]
9653 | .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.c:9653:25: note: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx_cancel_wait’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1870: /var/lib/dkms/rtl8821ce/v5.5.2_34066.20200325/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.14.0-1032-oem'
make: *** [Makefile:2244: modules] Error 2
Comment