lwfinger / rtl8723bu

Driver for RTL8723BU
283 stars 143 forks source link

Compiler error when trying to Cross-compile for arm #65

Closed hardiksingh-rathore closed 7 years ago

hardiksingh-rathore commented 7 years ago

Compiler error


include/uapi/asm-generic/int-ll64.h:11:29: fatal error: asm/bitsperlong.h: No such file or directory compilation terminated.


Error in details


rtl8723bu$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C /lib/modules/4.4.0-75-generic/build M=/home/hardik/Project/solus/lubuntu-sdk/kernel/rtl8723bu modules make[1]: Entering directory /usr/src/linux-headers-4.4.0-75-generic' CC [M] /home/hardik/Project/solus/lubuntu-sdk/kernel/rtl8723bu/core/rtw_cmd.o In file included from include/asm-generic/int-ll64.h:10:0, from ./arch/arm/include/asm/types.h:4, from include/uapi/linux/types.h:4, from include/linux/types.h:5, from /home/hardik/Project/solus/lubuntu-sdk/kernel/rtl8723bu/include/basic_types.h:39, from /home/hardik/Project/solus/lubuntu-sdk/kernel/rtl8723bu/include/drv_types.h:31, from /home/hardik/Project/solus/lubuntu-sdk/kernel/rtl8723bu/core/rtw_cmd.c:22: include/uapi/asm-generic/int-ll64.h:11:29: fatal error: asm/bitsperlong.h: No such file or directory compilation terminated. make[2]: *** [/home/hardik/Project/solus/lubuntu-sdk/kernel/rtl8723bu/core/rtw_cmd.o] Error 1 make[1]: *** [_module_/home/hardik/Project/solus/lubuntu-sdk/kernel/rtl8723bu] Error 2 make[1]: Leaving directory/usr/src/linux-headers-4.4.0-75-generic' make: *** [modules] Error 2


Host machine details


Toolchain :arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.7.3-11ubuntu1) 4.7.3 OS -Ubuntu 14.04 Processor - x86

hardiksingh-rathore commented 7 years ago

I just compiled it using command make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- KSRC="path to kernel source"

got this solution here