Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Compile failed when i update the new kernal 5.19.2. #16

Closed
luolehu opened this issue Aug 19, 2022 · 5 comments
Closed

Compile failed when i update the new kernal 5.19.2. #16

luolehu opened this issue Aug 19, 2022 · 5 comments

Comments

@luolehu
Copy link

luolehu commented Aug 19, 2022

╭─cres@cres in ~/rtw8852be on main ✔ (origin/main)

╰$ make -j8    
#rm -f .symvers.8852be
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.2-arch1-1/build M=/home/cres/rtw8852be  modules
make[1]: 进入目录“/usr/lib/modules/5.19.2-arch1-1/build”
  CC [M]  /home/cres/rtw8852be/platform/platform_linux_pc_pci.o
  CC [M]  /home/cres/rtw8852be/os_dep/osdep_service.o
  CC [M]  /home/cres/rtw8852be/os_dep/osdep_service_linux.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/rtw_cfg.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/ioctl_linux.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/os_intfs.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/xmit_linux.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/mlme_linux.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/recv_linux.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/wifi_regd.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/rtw_android.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/rtw_proc.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/nlrtw.o
  CC [M]  /home/cres/rtw8852be/os_dep/linux/rtw_rhashtable.o
/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c: 在函数‘rtw_cfg80211_ch_switch_notify’中:
/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c:513:9: 错误:提供给函数‘cfg80211_ch_switch_notify’的实参太少
  513 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/cres/rtw8852be/include/osdep_service_linux.h:100,
                 from /home/cres/rtw8852be/include/osdep_service.h:42,
                 from /home/cres/rtw8852be/include/drv_types.h:25,
                 from /home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:7967:6: 附注:在此声明
 7967 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c: 在文件作用域:
/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c:10619:20: 错误:initialization of ‘int (*)(struct wiphy *, struct net_device *, unsigned int)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *)’ [-Werror=incompatible-pointer-types]
10619 |         .stop_ap = cfg80211_rtw_stop_ap,
      |                    ^~~~~~~~~~~~~~~~~~~~
/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c:10619:20: 附注:(在‘rtw_cfg80211_ops.stop_ap’的初始化附近)
/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c:10661:24: 错误:initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int,  struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, struct cfg80211_chan_def *)’ [-Werror=incompatible-pointer-types]
10661 |         .get_channel = cfg80211_rtw_get_channel,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c:10661:24: 附注:(在‘rtw_cfg80211_ops.get_channel’的初始化附近)
/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c: 在函数‘rtw_wdev_unregister’中:
/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.c:10917:17: 错误:‘struct wireless_dev’没有名为‘current_bss’的成员
10917 |         if (wdev->current_bss) {
      |                 ^~
cc1:有些警告被当作是错误
make[2]: *** [scripts/Makefile.build:249:/home/cres/rtw8852be/os_dep/linux/ioctl_cfg80211.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[1]: *** [Makefile:1849:/home/cres/rtw8852be] 错误 2
make[1]: 离开目录“/usr/lib/modules/5.19.2-arch1-1/build”
make: *** [Makefile:770:modules] 错误 2
@HRex39
Copy link
Owner

HRex39 commented Aug 19, 2022

@HRex39 HRex39 closed this as completed Aug 19, 2022
@HRex39
Copy link
Owner

HRex39 commented Aug 19, 2022

I tried to fix it according to upper reference, for further kernel update, maybe using LWFinger's repo is the better solution.
Hope you can successfully build in the latest "dev" branch.

@HRex39 HRex39 reopened this Aug 19, 2022
@HRex39
Copy link
Owner

HRex39 commented Aug 19, 2022

Maybe my ifdef is wrong because your kernel is 5.19 but I wrote 6.0.0.
Anyway, if you have time, please feedback the results of the compilation.

@Mingy123
Copy link

Hello, I faced a similar issue and after making modifications to specified errors of the compiler (changing the ifdef check to 5.19 instead of 6.0.0) it compiled successfully.
Thanks and good luck!

@HRex39
Copy link
Owner

HRex39 commented Aug 20, 2022

Hello, I faced a similar issue and after making modifications to specified errors of the compiler (changing the ifdef check to 5.19 instead of 6.0.0) it compiled successfully. Thanks and good luck!

Thanks for reply. I just modified it.

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