twd2 / TL-WN725N-V2-Driver-for-Linux

TL-WN725N V2 Driver for Linux
GNU General Public License v2.0
25 stars 7 forks source link

Compile error "DATE__" might prevent reproducible builds" on Debian kernel 4.2.0-1-686-pae #6

Open guysoft opened 6 years ago

guysoft commented 6 years ago

Error:

/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/osdep_service.c: In function ‘start_kthread’:
/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/osdep_service.c:1931:9: warning: assignment makes integer from pointer without a cast
  *t_hdl = kthread_run(threadfn, data, name);
         ^
/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/osdep_service.c:1932:12: warning: passing argument 1 of ‘IS_ERR’ makes pointer from integer without a cast
  if(IS_ERR(*t_hdl))
            ^
In file included from /usr/src/linux-headers-4.2.0-1-common/arch/x86/include/asm/processor.h:31:0,
                 from /usr/src/linux-headers-4.2.0-1-common/arch/x86/include/asm/thread_info.h:49,
                 from /usr/src/linux-headers-4.2.0-1-common/include/linux/thread_info.h:54,
                 from /usr/src/linux-headers-4.2.0-1-common/arch/x86/include/asm/preempt.h:6,
                 from /usr/src/linux-headers-4.2.0-1-common/include/linux/preempt.h:64,
                 from /usr/src/linux-headers-4.2.0-1-common/include/linux/spinlock.h:50,
                 from /home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/include/osdep_service.h:757,
                 from /home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/osdep_service.c:25:
/usr/src/linux-headers-4.2.0-1-common/include/linux/err.h:33:33: note: expected ‘const void *’ but argument is of type ‘_thread_hdl_’
 static inline bool __must_check IS_ERR(__force const void *ptr)
                                 ^
  CC [M]  /home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/linux/os_intfs.o
/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/linux/os_intfs.c:858:2: warning: initialization from incompatible pointer type
  .ndo_select_queue = rtw_select_queue,
  ^
/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/linux/os_intfs.c:858:2: warning: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
  CC [M]  /home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/linux/usb_intf.o
/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/linux/usb_intf.c: In function ‘rtw_drv_entry’:
/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/linux/usb_intf.c:1535:34: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X("build time: %s %s\n", __DATE__, __TIME__);
                                  ^
/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/linux/usb_intf.c:1535:44: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
  DBG_871X("build time: %s %s\n", __DATE__, __TIME__);
                                            ^
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.2.0-1-common/scripts/Makefile.build:263: recipe for target '/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/linux/usb_intf.o' failed
make[4]: *** [/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux/os_dep/linux/usb_intf.o] Error 1
/usr/src/linux-headers-4.2.0-1-common/Makefile:1403: recipe for target '_module_/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux' failed
make[3]: *** [_module_/home/guy/tmp/RTL8192EU/TL-WN725N-V2-Driver-for-Linux] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-1-686-pae'
Makefile:582: recipe for target 'modules' failed
make: *** [modules] Error 2