You are not logged in.
I'm attempting to compile the rtl8812au driver from https://github.com/abperiasamy/rtl8812AU_8821AU_linux without much luck. I've got a base system installed with base-devel and my linux-headers installed as well, however 'make' fails with the error:
"scripts/Makefile:build:308: recipe for target '/home/$(uname)/rtl8812au/os_dep/linux/os_intfs.o' failed"
I previously had this driver compiled and working in eOS, so I'm not sure what I'm missing to get it working in Arch. Any help would be much appreciated. Thanks!
Last edited by Saithyr (2014-01-02 20:50:48)
Offline
We'll need more of a log than that to help.
Offline
We'll need more of a log than that to help.
Here's a log from running make:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.12.6-1-ARCH/build M=/home/patrick/rtl8812au modules
make[1]: Entering directory '/usr/src/linux-3.12.6-1-ARCH'
CC [M] /home/patrick/rtl8812au/core/rtw_cmd.o
CC [M] /home/patrick/rtl8812au/core/rtw_security.o
CC [M] /home/patrick/rtl8812au/core/rtw_debug.o
CC [M] /home/patrick/rtl8812au/core/rtw_io.o
CC [M] /home/patrick/rtl8812au/core/rtw_ioctl_query.o
CC [M] /home/patrick/rtl8812au/core/rtw_ioctl_set.o
CC [M] /home/patrick/rtl8812au/core/rtw_ieee80211.o
CC [M] /home/patrick/rtl8812au/core/rtw_mlme.o
CC [M] /home/patrick/rtl8812au/core/rtw_mlme_ext.o
CC [M] /home/patrick/rtl8812au/core/rtw_wlan_util.o
CC [M] /home/patrick/rtl8812au/core/rtw_vht.o
CC [M] /home/patrick/rtl8812au/core/rtw_pwrctrl.o
CC [M] /home/patrick/rtl8812au/core/rtw_rf.o
CC [M] /home/patrick/rtl8812au/core/rtw_recv.o
CC [M] /home/patrick/rtl8812au/core/rtw_sta_mgt.o
CC [M] /home/patrick/rtl8812au/core/rtw_ap.o
CC [M] /home/patrick/rtl8812au/core/rtw_xmit.o
CC [M] /home/patrick/rtl8812au/core/rtw_p2p.o
CC [M] /home/patrick/rtl8812au/core/rtw_tdls.o
CC [M] /home/patrick/rtl8812au/core/rtw_br_ext.o
CC [M] /home/patrick/rtl8812au/core/rtw_iol.o
CC [M] /home/patrick/rtl8812au/core/rtw_sreset.o
CC [M] /home/patrick/rtl8812au/core/efuse/rtw_efuse.o
CC [M] /home/patrick/rtl8812au/os_dep/osdep_service.o
CC [M] /home/patrick/rtl8812au/os_dep/linux/os_intfs.o
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c: In function ‘rtw_proc_init_one’:
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:352:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:352:11: warning: assignment makes pointer from integer without a cast [enabled by default]
rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:359:3: error: implicit declaration of function ‘create_proc_read_entry’ [-Werror=implicit-function-declaration]
entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:359:9: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:370:21: warning: assignment makes pointer from integer without a cast [enabled by default]
padapter->dir_dev = create_proc_entry(dev->name,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:401:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("write_reg", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:407:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_write_reg;
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:409:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("read_reg", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:415:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_read_reg;
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:418:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("fwstate", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:426:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("sec_info", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:434:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("mlmext_state", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:442:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("qos_option", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:449:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("ht_option", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:456:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("rf_info", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:463:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("ap_info", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:470:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("adapter_state", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:477:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("trx_info", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:484:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("mac_reg_dump1", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:491:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("mac_reg_dump2", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:498:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("mac_reg_dump3", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:505:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("bb_reg_dump1", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:512:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("bb_reg_dump2", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:519:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("bb_reg_dump3", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:526:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("rf_reg_dump1", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:533:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("rf_reg_dump2", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:542:9: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("rf_reg_dump3", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:549:9: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("rf_reg_dump4", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:559:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("all_sta_info", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:577:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("best_channel", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:585:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("rx_signal", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:591:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_rx_signal;
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:593:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("ht_enable", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:599:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_ht_enable;
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:601:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("bw_mode", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:607:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_bw_mode;
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:609:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("ampdu_enable", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:615:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_ampdu_enable;
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:617:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("rx_stbc", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:623:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_rx_stbc;
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:626:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("path_rssi", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:629:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("rssi_disp", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:635:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_rssi_disp;
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:647:8: warning: assignment makes pointer from integer without a cast [enabled by default]
entry = create_proc_read_entry("sreset", S_IFREG | S_IRUGO,
^
/home/patrick/rtl8812au/os_dep/linux/os_intfs.c:653:7: error: dereferencing pointer to incomplete type
entry->write_proc = proc_set_sreset;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target '/home/patrick/rtl8812au/os_dep/linux/os_intfs.o' failed
make[2]: *** [/home/patrick/rtl8812au/os_dep/linux/os_intfs.o] Error 1
Makefile:1228: recipe for target '_module_/home/patrick/rtl8812au' failed
make[1]: *** [_module_/home/patrick/rtl8812au] Error 2
make[1]: Leaving directory '/usr/src/linux-3.12.6-1-ARCH'
Makefile:1041: recipe for target 'modules' failed
make: *** [modules] Error 2
Hopefully that helps.
Offline
Googling "create_proc_entry" indicates that it has been deprecated and removed, so the problem is that the module hasn't been updated for recent kernels. You can try it with the LTS kernel, don't know if it'll build there or not.
Edit, looks to me like it was removed before 3.10, so the LTS kernel probably won't work, either.
Edit2, the repo was updated, are you building from master?
Last edited by Scimmia (2013-12-28 18:20:07)
Offline
Googling "create_proc_entry" indicates that it has been deprecated and removed, so the problem is that the module hasn't been updated for recent kernels. You can try it with the LTS kernel, don't know if it'll build there or not.
Edit, looks to me like it was removed before 3.10, so the LTS kernel probably won't work, either.
Edit2, the repo was updated, are you building from master?
I am building from master, says it was updated 4 months ago and I'm still seeing "create_proc_entry" in the /os_dep/linux/os_intfs.c file. Are you seeing something different?
Offline
Builds fine here, some warnings, but nothing critical. Commit 4c37a90842b2794bfae8835e3d485fc079215f9e should have fixed the error you're seeing. Try it with a fresh clone.
Offline
Builds fine here, some warnings, but nothing critical. Commit 4c37a90842b2794bfae8835e3d485fc079215f9e should have fixed the error you're seeing. Try it with a fresh clone.
Yep, got it to build with a fresh clone as well. Also had to install wireless_tools, for some reason the device wasn't showing in
iw dev
but it was listed in
iwconfig
. Thanks for the help!
Offline