New issue by slender100 on void-packages repository https://github.com/void-linux/void-packages/issues/40506 Description: ### Is this a new report? Yes ### System Info Void 5.19.17_1 x86_64 GenuineIntel uptodate rFF ### Package(s) Affected rtl8821cu-dkms ### Does a report exist for this bug with the project's home (upstream) and/or another distro? No ### Expected behaviour The rtl8821cu-dkms wifi drivers build and install successfully. ### Actual behaviour Without the inclusion of the bc package, rtl8821cu-dkms fails to install, giving me this log: `DKMS make.log for rtl8821cu-5.12.0 for kernel 5.19.17_1 (x86_64)` `Sun Nov 13 02:44:01 PM EST 2022` `/bin/sh: 1: bc: not found` `make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.17_1/build M=/var/lib/dkms/rtl8821cu/5.12.0/build modules` `make[1]: Entering directory '/usr/src/kernel-headers-5.19.17_1'` `/bin/sh: 1: bc: not found` ` CC [M] /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_cmd.o` ` CC [M] /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_security.o` ` CC [M] /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.o` ` CC [M] /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_io.o` `/var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.c: In function 'dump_drv_version':` `/var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.c:45:62: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]` ` 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);` ` | ^` `In file included from ./include/linux/kernel.h:29,` ` from ./arch/x86/include/asm/percpu.h:27,` ` from ./arch/x86/include/asm/nospec-branch.h:14,` ` from ./arch/x86/include/asm/paravirt_types.h:40,` ` from ./arch/x86/include/asm/ptrace.h:97,` ` from ./arch/x86/include/asm/math_emu.h:5,` ` from ./arch/x86/include/asm/processor.h:13,` ` from ./arch/x86/include/asm/timex.h:5,` ` from ./include/linux/timex.h:67,` ` from ./include/linux/time32.h:13,` ` from ./include/linux/time.h:60,` ` from ./include/linux/stat.h:19,` ` from ./include/linux/module.h:13,` ` from /var/lib/dkms/rtl8821cu/5.12.0/build/include/basic_types.h:76,` ` from /var/lib/dkms/rtl8821cu/5.12.0/build/include/drv_types.h:26,` ` from /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.c:17:` `/var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.c:45:44: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]` ` 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);` ` | ^~~~~~~~` `./include/linux/printk.h:436:19: note: in definition of macro 'printk_index_wrap'` ` 436 | _p_func(_fmt, ##__VA_ARGS__); \` ` | ^~~~~~~~~~~` `/var/lib/dkms/rtl8821cu/5.12.0/build/include/rtw_debug.h:85:19: note: in expansion of macro 'printk'` ` 85 | #define _dbgdump printk` ` | ^~~~~~` `/var/lib/dkms/rtl8821cu/5.12.0/build/include/rtw_debug.h:252:4: note: in expansion of macro 'RTW_PRINT'` ` 252 | RTW_PRINT(fmt, ##arg); \` ` | ^~~~~~~~~` `/var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.c:45:2: note: in expansion of macro 'RTW_PRINT_SEL'` ` 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);` ` | ^~~~~~~~~~~~~` `/var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.c:45:54: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]` ` 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);` ` | ^~~~~~~~` `./include/linux/printk.h:436:19: note: in definition of macro 'printk_index_wrap'` ` 436 | _p_func(_fmt, ##__VA_ARGS__); \` ` | ^~~~~~~~~~~` `/var/lib/dkms/rtl8821cu/5.12.0/build/include/rtw_debug.h:85:19: note: in expansion of macro 'printk'` ` 85 | #define _dbgdump printk` ` | ^~~~~~` `/var/lib/dkms/rtl8821cu/5.12.0/build/include/rtw_debug.h:252:4: note: in expansion of macro 'RTW_PRINT'` ` 252 | RTW_PRINT(fmt, ##arg); \` ` | ^~~~~~~~~` `/var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.c:45:2: note: in expansion of macro 'RTW_PRINT_SEL'` ` 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);` ` | ^~~~~~~~~~~~~` `In file included from /var/lib/dkms/rtl8821cu/5.12.0/build/include/drv_types.h:60,` ` from /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.c:17:` `/var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.c:45:44: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]` ` 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", __DATE__, __TIME__);` ` | ^~~~~~~~` `/var/lib/dkms/rtl8821cu/5.12.0/build/include/rtw_debug.h:254:25: note: in definition of macro 'RTW_PRINT_SEL'` ` 254 | _seqdump(sel, fmt, ##arg) /*rtw_warn_on(1)*/; \` ` | ^~~` ` CC [M] /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_ioctl_query.o` `CC [M] /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_ioctl_set.o` `CC [M] /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_ieee80211.o` ` CC [M] /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_mlme.o` `cc1: some warnings being treated as errors` `make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/rtl8821cu/5.12.0/build/core/rtw_debug.o] Error 1` `make[2]: *** Waiting for unfinished jobs....` `make[1]: *** [Makefile:1846: /var/lib/dkms/rtl8821cu/5.12.0/build] Error 2` `make[1]: Leaving directory '/usr/src/kernel-headers-5.19.17_1'` `make: *** [Makefile:2498: modules] Error 2` ### Steps to reproduce 1. Attempt to install rtl8821cu-dkms. 2. See if it fails, compare this log in the issue with your own and see if its the same. The simple fix is to include the bc package along with this one, as it is dependent on bc to successfully build. For example, the rtl8822bu-dkms includes bc to successfully install, someone must've forgot this same inclusion with this one 🤷