Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Error! Bad return status for module build on kernel: 5.3.0-kali3-686-pae (i686) #67

Open
roy668899 opened this issue Apr 10, 2020 · 4 comments

Comments

@roy668899
Copy link

bash
Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...(bad exit status: 2)
make -j4 KERNELRELEASE=5.3.0-kali3-686-pae KVER=5.3.0-kali3-686-pae src=/usr/src...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.3.0-kali3-686-pae (i686)
/build/make.log for more information.

The content of make.log:

DKMS make.log for rtl88x2bu-5.6.1
for kernel 5.3.0-kali3-686-pae (i686)
2020年 04月 11日 星期六 00:40:15 CST
Makefile:2207: /usr/src/rtl88x2bu-5.6.1

/rtl8822b.mk: 没有那个文件或目录 # means 'no such file or diectory'
make: *** 没有规则可制作目标“/usr/src/rtl88x2bu-5.6.1 # means 'no rules could be used to make...'

/rtl8822b.mk”。 停止。 # means 'stop'

How could I deal with it?
Thx a lot

@roy668899
Copy link
Author

I'm pretty sure that rtl8822b.mk is in the directory

@bevarb
Copy link

bevarb commented May 11, 2020

have you solved this problem?

@metalheadcode
Copy link

metalheadcode commented May 21, 2020

i'm having same issue

make.log

DKMS make.log for rtl88x2bu-5.3.1 for kernel 5.6.0-kali1-amd64 (x86_64)
Thu 21 May 2020 11:38:30 PM +08
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.6.0-kali1-amd64/build M=/var/lib/dkms/rtl88x2bu/5.3.1/build  modules
make[1]: Entering directory '/usr/src/linux-headers-5.6.0-kali1-amd64'
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_recv.o
/usr/src/rtl88x2bu-5.3.1/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/usr/src/rtl88x2bu-5.3.1/core/rtw_mlme_ext.c:1828:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1828 |    ptable->func = &OnAuthClient;
      |    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/usr/src/rtl88x2bu-5.3.1/core/rtw_mlme_ext.c:1830:2: note: here
 1830 |  case WIFI_ASSOCREQ:
      |  ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/mesh/rtw_mesh.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_iol.o
/usr/src/rtl88x2bu-5.3.1/core/rtw_ap.c: In function ‘rtw_add_bcn_ie’:
/usr/src/rtl88x2bu-5.3.1/core/rtw_ap.c:196:25: warning: ‘ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  196 |  if (p != NULL && ielen > 0) {
      |                   ~~~~~~^~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_beamforming.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_rm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/rtw_rm_fsm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/os_intfs.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/usb_intf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/usb_ops_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/mlme_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/recv_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/wifi_regd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/rtw_android.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/rtw_proc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/rtw_rhashtable.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/ioctl_mp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/hal/hal_intf.o
/usr/src/rtl88x2bu-5.3.1/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_change_iface’:
/usr/src/rtl88x2bu-5.3.1/os_dep/linux/ioctl_cfg80211.c:2365:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2365 |   is_p2p = _TRUE;
/usr/src/rtl88x2bu-5.3.1/os_dep/linux/ioctl_cfg80211.c:2367:2: note: here
 2367 |  case NL80211_IFTYPE_STATION:
      |  ^~~~
/usr/src/rtl88x2bu-5.3.1/os_dep/linux/ioctl_cfg80211.c:2389:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2389 |   is_p2p = _TRUE;
/usr/src/rtl88x2bu-5.3.1/os_dep/linux/ioctl_cfg80211.c:2391:2: note: here
 2391 |  case NL80211_IFTYPE_AP:
      |  ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/hal/hal_com.o
/usr/src/rtl88x2bu-5.3.1/os_dep/linux/rtw_proc.c: In function ‘rtw_proc_create_entry’:
/usr/src/rtl88x2bu-5.3.1/os_dep/linux/rtw_proc.c:70:71: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   70 |  entry = proc_create_data(name,  S_IFREG | S_IRUGO | S_IWUGO, parent, fops, data);
      |                                                                       ^~~~
      |                                                                       |
      |                                                                       const struct file_operations *
In file included from /usr/src/rtl88x2bu-5.3.1/include/../os_dep/linux/rtw_proc.h:18,
                 from /usr/src/rtl88x2bu-5.3.1/include/osdep_intf.h:128,
                 from /usr/src/rtl88x2bu-5.3.1/include/drv_types.h:105,
                 from /usr/src/rtl88x2bu-5.3.1/os_dep/linux/rtw_proc.c:17:
/usr/src/linux-headers-5.6.0-kali1-common/include/linux/proc_fs.h:59:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
   59 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
      |                               ^~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/hal/hal_com_phycfg.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.3.1/build/hal/hal_phy.o
/usr/src/rtl88x2bu-5.3.1/hal/hal_intf.c: In function ‘c2h_handler’:
/usr/src/rtl88x2bu-5.3.1/hal/hal_intf.c:943:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
  943 |   sub_id = payload[0];
      |   ~~~~~~~^~~~~~~~~~~~
/usr/src/rtl88x2bu-5.3.1/hal/hal_intf.c:946:2: note: here
  946 |  default:
      |  ^~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.6.0-kali1-common/scripts/Makefile.build:273: /var/lib/dkms/rtl88x2bu/5.3.1/build/os_dep/linux/rtw_proc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-5.6.0-kali1-common/Makefile:1696: /var/lib/dkms/rtl88x2bu/5.3.1/build] Error 2
make[1]: *** [/usr/src/linux-headers-5.6.0-kali1-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.6.0-kali1-amd64'
make: *** [Makefile:2011: modules] Error 2

@metalheadcode
Copy link

[SOLVED] i just realize that this is old version, I try the new ver 5.6.1 it works! you can get here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants