Cyb3rNinja Posted March 8, 2016 Share Posted March 8, 2016 I get the following error about date time when making new driver file found 1/2016 on website of alfa. Makefile:10: *** mixed implicit and normal rules: deprecated syntax CC [M] /root/Downloads/AWUS036NHV_v4.3.0.4_11485.20140519/core/rtw_debug.o /root/Downloads/AWUS036NHV_v4.3.0.4_11485.20140519/core/rtw_debug.c: In function ‘dump_drv_version’: /root/Downloads/AWUS036NHV_v4.3.0.4_11485.20140519/core/rtw_debug.c:66:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time] DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__); ^ /root/Downloads/AWUS036NHV_v4.3.0.4_11485.20140519/core/rtw_debug.c:66:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time] DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__); How can I correct this? Quote Link to comment Share on other sites More sharing options...
cooper Posted March 11, 2016 Share Posted March 11, 2016 This is more a warning than an error, really. The compiler is saying that this specific macro introduces into the source code a compile-time constant (the exact time it was built) meaning that if someone else built that same code base, they'd get a different binary. From a software management perspective, this is unwanted but for you in practical terms, it doesn't matter at all. Look at this ubuntu question on what you need to do to fix the issue. Note that you can also set CFLAGS as an environment variable which should typically get picked up by a Makefile, so you might be able to get away with just CFLAGS="-Wno-error=date-time" make Quote Link to comment Share on other sites More sharing options...
Cyb3rNinja Posted March 16, 2016 Author Share Posted March 16, 2016 Wow thanks for replying!!!!!! I will read the link you gave me. This was the output after changing the cflags any other feedback is vary welcome! root@noname:~/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417# CFLAGS="-Wno-error=date-time" make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.0.0-kali1-amd64/build M=/root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417 modules make[1]: Entering directory '/usr/src/linux-headers-4.0.0-kali1-amd64' Makefile:10: *** mixed implicit and normal rules: deprecated syntax CC [M] /root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.o /root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.c: In function ‘dump_drv_version’: /root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.c:66:64: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time] DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__); ^ /root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.c:66:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time] DBG_871X_SEL_NL(sel, "build time: %s %s\n", __DATE__, __TIME__); ^ /root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.c:66:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time] /root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.c:66:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time] /root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.c:66:1: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time] /root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.c:66:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time] cc1: some warnings being treated as errors /usr/src/linux-headers-4.0.0-kali1-common/scripts/Makefile.build:263: recipe for target '/root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.o' failed make[4]: *** [/root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417/core/rtw_debug.o] Error 1 /usr/src/linux-headers-4.0.0-kali1-common/Makefile:1407: recipe for target '_module_/root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417' failed make[3]: *** [_module_/root/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417] Error 2 Makefile:145: 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.0.0-kali1-amd64' Makefile:1355: recipe for target 'modules' failed make: *** [modules] Error 2 root@noname:~/Desktop/RTL8188EUS_linux_v4.3.0.8_13968.20150417/driver/rtl8188EUS_linux_v4.3.0.8_13968.20150417# Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.