ZeeRooo / RTL8192EU

Linux driver for Realtek RTL8192EU.
MIT License
53 stars 30 forks source link

Build Fail #17

Closed tanalam closed 4 years ago

tanalam commented 4 years ago

Build failed with following configuration

uname -a Linux kali 5.4.0-kali3-amd64 #1 SMP Debian 5.4.13-1kali1 (2020-01-20) x86_64 GNU/Linux


CC [M] /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.o /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c: In function ‘dump_drv_version’: /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:62: error: macro "DATE" might prevent reproducible builds [-Werror=date-time] 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME); | ^ In file included from /media/sf_KaliShare/RTL8192EU-master/include/drv_types.h:60, from /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:17: /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time] 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME); | ^~~~ /media/sf_KaliShare/RTL8192EU-master/include/rtw_debug.h:107:34: note: in definition of macro ‘RTW_PRINT’ 107 | _dbgdump(DRIVER_PREFIX fmt, ##arg);\ | ^~~ /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’ 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME); | ^~~~~ /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:54: error: macro "DATE" might prevent reproducible builds [-Werror=date-time] 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME); | ^~~~ /media/sf_KaliShare/RTL8192EU-master/include/rtw_debug.h:107:34: note: in definition of macro ‘RTW_PRINT’ 107 | _dbgdump(DRIVER_PREFIX fmt, ##arg);\ | ^~~ /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:2: note: in expansion of macro ‘RTW_PRINT_SEL’ 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME); | ^~~~~ /media/sf_KaliShare/RTL8192EU-master/core/rtw_debug.c:45:44: error: macro "TIME" might prevent reproducible builds [-Werror=date-time] 45 | RTW_PRINT_SEL(sel, "build time: %s %s\n", DATE, TIME); | ^~~~ /media/sf_KaliShare/RTL8192EU-master/include/rtw_debug.h:285:25: note: in definition of macro ‘RTW_PRINT_SEL’ 285 | _seqdump(sel, fmt, ##arg) /rtw_warn_on(1)/; \ | ^~~ cc1: some warnings being treated as errors

tanalam commented 4 years ago

THe issue was fixed. Root cause: bc was not installed in the system so this check was failing

20-ifeq ($(GCC_VER_49),1) 21-EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later 22-endif

It is resolved now. THanks