Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] Include "bc" along with "rtl8821cu-dkms" package, otherwise "rtl8821cu-dkms" fails to build properly.
Date: Sun, 13 Nov 2022 22:05:01 +0100	[thread overview]
Message-ID: <20221113210501.cauXr9zI0NBTU_PKpISR-LPpDZDz5d7ItBgpnydxtsU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40506@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 6346 bytes --]

Closed 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 🤷

      reply	other threads:[~2022-11-13 21:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-13 20:26 [ISSUE] " slender100
2022-11-13 21:05 ` classabbyamp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221113210501.cauXr9zI0NBTU_PKpISR-LPpDZDz5d7ItBgpnydxtsU@z \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).