* Package: net-wireless/broadcom-sta-6.30.223.271-r6 * Repository: gentoo * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 5.17.3-gentoo-dist * Checking for suitable kernel configuration options ... * B43: If you insist on building this, you must blacklist it! * BCMA: If you insist on building this, you must blacklist it! * SSB: If you insist on building this, you must blacklist it! * X86_INTEL_LPSS: Please disable it. The module does not work with it enabled. * MAC80211: If you insist on building this, you must blacklist it! * LIB80211_CRYPT_TKIP: You will need this for WPA. * PREEMPT_RCU: Please do not set the Preemption Model to "Preemptible Kernel"; choose something else. [ !! ] * Please check to make sure these options are set correctly. * Failure to do so may cause unexpected problems. >>> Unpacking source... >>> Unpacking hybrid-v35_64-nodebug-pcoem-6_30_223_271.tar.gz to /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work >>> Unpacking README-broadcom-sta-6.30.223.271.txt to /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work unpack README-broadcom-sta-6.30.223.271.txt: file format not recognized. Ignoring. >>> Source unpacked in /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work >>> Preparing source in /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work ... * Applying broadcom-sta-6.30.223.141-makefile.patch ... patching file Makefile Hunk #1 succeeded at 147 with fuzz 2 (offset 19 lines). [ ok ] * Applying broadcom-sta-6.30.223.141-eth-to-wlan.patch ... [ ok ] * Applying broadcom-sta-6.30.223.141-gcc.patch ... [ ok ] * Applying broadcom-sta-6.30.223.248-r3-Wno-date-time.patch ... patching file Makefile Hunk #1 succeeded at 145 with fuzz 2 (offset 19 lines). [ ok ] * Applying broadcom-sta-6.30.223.271-r1-linux-3.18.patch ... [ ok ] * Applying broadcom-sta-6.30.223.271-r2-linux-4.3-v2.patch ... [ ok ] * Applying broadcom-sta-6.30.223.271-r4-linux-4.7.patch ... [ ok ] * Applying broadcom-sta-6.30.223.271-r4-linux-4.8.patch ... [ ok ] * Applying broadcom-sta-6.30.223.271-r4-linux-4.11.patch ... [ ok ] * Applying broadcom-sta-6.30.223.271-r4-linux-4.12.patch ... [ ok ] * Applying broadcom-sta-6.30.223.271-r4-linux-4.15.patch ... [ ok ] * Applying broadcom-sta-6.30.223.271-r5-linux-5.1.patch ... [ ok ] * Applying broadcom-sta-6.30.223.271-r5-linux-5.6.patch ... [ ok ] * Applying broadcom-sta-6.30.223.271-r6-linux-5.9.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work ... ln: failed to create symbolic link 'Module.symvers': File exists * Preparing wl module make -j4 HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' -C /usr/src/linux M=/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work wl.ko make: Entering directory '/usr/src/linux-5.17.3-gentoo-dist' CFG80211 API is prefered for this kernel version Using CFG80211 API CC [M] /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.o CC [M] /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.o CC [M] /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_iw.o CC [M] /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_cfg80211_hybrid.o /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.c: In function ‘osl_os_get_image_block’: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.c:1087:35: warning: passing argument 2 of ‘kernel_read’ makes pointer from integer without a cast [-Wint-conversion] 1087 | rdlen = kernel_read(fp, fp->f_pos, buf, len); | ~~^~~~~~~ | | | loff_t {aka long long int} In file included from ./include/linux/huge_mm.h:8, from ./include/linux/mm.h:697, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linuxver.h:65, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.c:25: ./include/linux/fs.h:3020:43: note: expected ‘void *’ but argument is of type ‘loff_t’ {aka ‘long long int’} 3020 | extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *); | ^~~~~~ /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.c:1087:44: warning: passing argument 3 of ‘kernel_read’ makes integer from pointer without a cast [-Wint-conversion] 1087 | rdlen = kernel_read(fp, fp->f_pos, buf, len); | ^~~ | | | char * In file included from ./include/linux/huge_mm.h:8, from ./include/linux/mm.h:697, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linuxver.h:65, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.c:25: ./include/linux/fs.h:3020:51: note: expected ‘size_t’ {aka ‘long unsigned int’} but argument is of type ‘char *’ 3020 | extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *); | ^~~~~~ /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.c:1087:49: warning: passing argument 4 of ‘kernel_read’ makes pointer from integer without a cast [-Wint-conversion] 1087 | rdlen = kernel_read(fp, fp->f_pos, buf, len); | ^~~ | | | int In file included from ./include/linux/huge_mm.h:8, from ./include/linux/mm.h:697, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linuxver.h:65, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/shared/linux_osl.c:25: ./include/linux/fs.h:3020:59: note: expected ‘loff_t *’ {aka ‘long long int *’} but argument is of type ‘int’ 3020 | extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *); | ^~~~~~~~ In file included from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:81: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_iw.h:74: warning: "isprint" redefined 74 | #define isprint(c) bcm_isprint(c) | In file included from ./include/linux/string_helpers.h:6, from ./include/linux/seq_file.h:7, from ./include/linux/seq_file_net.h:5, from ./include/net/net_namespace.h:183, from ./include/linux/netdevice.h:37, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linuxver.h:69, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:27: ./include/linux/ctype.h:30: note: this is the location of the previous definition 30 | #define isprint(c) ((__ismask(c)&(_P|_U|_L|_D|_SP)) != 0) | In file included from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/osl.h:79, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:28: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c: In function ‘wl_attach’: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:647:43: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 647 | bcopy(&wl->pub->cur_etheraddr, dev->dev_addr, ETHER_ADDR_LEN); /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linux_osl.h:156:49: note: in definition of macro ‘bcopy’ 156 | #define bcopy(src, dst, len) memcpy((dst), (src), (len)) | ^~~ In file included from ./include/linux/string.h:253, from ./include/linux/bitmap.h:11, from ./include/linux/cpumask.h:12, from ./arch/x86/include/asm/cpumask.h:5, from ./arch/x86/include/asm/msr.h:11, from ./arch/x86/include/asm/processor.h:22, from ./arch/x86/include/asm/timex.h:5, from ./include/linux/timex.h:65, 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/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linuxver.h:40, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:27: ./include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size) | ~~~~~~^ /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c: In function ‘wl_pci_probe’: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:786:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 786 | if ((val & 0x0000ff00) != 0) | ^~ /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:788:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 788 | bar1_size = pci_resource_len(pdev, 2); | ^~~~~~~~~ In file included from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/osl.h:79, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:28: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c: In function ‘wl_set_mac_address’: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:1853:31: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1853 | bcopy(sa->sa_data, dev->dev_addr, ETHER_ADDR_LEN); /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linux_osl.h:156:49: note: in definition of macro ‘bcopy’ 156 | #define bcopy(src, dst, len) memcpy((dst), (src), (len)) | ^~~ In file included from ./include/linux/string.h:253, from ./include/linux/bitmap.h:11, from ./include/linux/cpumask.h:12, from ./arch/x86/include/asm/cpumask.h:5, from ./arch/x86/include/asm/msr.h:11, from ./arch/x86/include/asm/processor.h:22, from ./arch/x86/include/asm/timex.h:5, from ./include/linux/timex.h:65, 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/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linuxver.h:40, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:27: ./include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size) | ~~~~~~^ In file included from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/osl.h:79, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:28: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c: In function ‘_wl_add_monitor_if’: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:3032:37: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 3032 | bcopy(wl->dev->dev_addr, dev->dev_addr, ETHER_ADDR_LEN); /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linux_osl.h:156:49: note: in definition of macro ‘bcopy’ 156 | #define bcopy(src, dst, len) memcpy((dst), (src), (len)) | ^~~ In file included from ./include/linux/string.h:253, from ./include/linux/bitmap.h:11, from ./include/linux/cpumask.h:12, from ./arch/x86/include/asm/cpumask.h:5, from ./arch/x86/include/asm/msr.h:11, from ./arch/x86/include/asm/processor.h:22, from ./arch/x86/include/asm/timex.h:5, from ./include/linux/timex.h:65, 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/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/include/linuxver.h:40, from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:27: ./include/linux/fortify-string.h:212:37: note: expected ‘void *’ but argument is of type ‘const unsigned char *’ 212 | __FORTIFY_INLINE void *memcpy(void *p, const void *q, __kernel_size_t size) | ~~~~~~^ /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c: In function ‘wl_proc_read’: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:3313:26: error: implicit declaration of function ‘PDE_DATA’; did you mean ‘NODE_DATA’? [-Werror=implicit-function-declaration] 3313 | wl_info_t * wl = PDE_DATA(file_inode(filp)); | ^~~~~~~~ | NODE_DATA /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:3313:26: warning: initialization of ‘wl_info_t *’ {aka ‘struct wl_info *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c: In function ‘wl_proc_write’: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.c:3370:26: warning: initialization of ‘wl_info_t *’ {aka ‘struct wl_info *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 3370 | wl_info_t * wl = PDE_DATA(file_inode(filp)); | ^~~~~~~~ In file included from /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_cfg80211_hybrid.c:43: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_cfg80211_hybrid.c: In function ‘wl_set_auth_type’: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_cfg80211_hybrid.h:52:12: warning: this statement may fall through [-Wimplicit-fallthrough=] 52 | if (wl_dbg_level & WL_DBG_DBG) { \ | ^ /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_cfg80211_hybrid.c:793:17: note: in expansion of macro ‘WL_DBG’ 793 | WL_DBG(("network eap\n")); | ^~~~~~ /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_cfg80211_hybrid.c:794:9: note: here 794 | default: | ^~~~~~~ cc1: some warnings being treated as errors make[1]: *** [scripts/Makefile.build:288: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work/src/wl/sys/wl_linux.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1831: /var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work] Error 2 make: Leaving directory '/usr/src/linux-5.17.3-gentoo-dist' * ERROR: net-wireless/broadcom-sta-6.30.223.271-r6::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-wireless/broadcom-sta-6.30.223.271-r6::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-wireless/broadcom-sta-6.30.223.271-r6::gentoo'`. * The complete build log is located at '/var/log/portage/net-wireless:broadcom-sta-6.30.223.271-r6:20220420-061605.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/temp/environment'. * Working directory: '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work' * S: '/var/tmp/portage/net-wireless/broadcom-sta-6.30.223.271-r6/work'