This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于sdk cross compile的-Werror=date-time 错误bug

在SDK2.0里,wireless module被册掉了,将SDK1.0的wireless复制过来,编译会报错,后来移植yaffs的时候,编译也会报错:

  CC      fs/yaffs2/yaffs_vfs.o
fs/yaffs2/yaffs_vfs.c: In function 'yaffs_proc_read':
fs/yaffs2/yaffs_vfs.c:3253:37: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
        "Multi-version YAFFS built:" __DATE__ " " __TIME__
                                     ^
fs/yaffs2/yaffs_vfs.c:3253:50: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
        "Multi-version YAFFS built:" __DATE__ " " __TIME__
                                                  ^
fs/yaffs2/yaffs_vfs.c: In function 'init_yaffs_fs':
fs/yaffs2/yaffs_vfs.c:3604:54: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   "yaffs built " __DATE__ " " __TIME__ " Installing.");
                                                      ^
fs/yaffs2/yaffs_vfs.c:3604:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   "yaffs built " __DATE__ " " __TIME__ " Installing.");
 ^
fs/yaffs2/yaffs_vfs.c: In function 'exit_yaffs_fs':
fs/yaffs2/yaffs_vfs.c:3645:52: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   "yaffs built " __DATE__ " " __TIME__ " removing.");
                                                    ^
fs/yaffs2/yaffs_vfs.c:3645:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   "yaffs built " __DATE__ " " __TIME__ " removing.");

搜索-Werror=date-time,发现这是gcc 4.9的一个bug:
参考https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1328858

能否修复这一bug,毕竟很多代码用到__TIME__和__DATE__ 宏。