TI中文支持网
TI专业的中文技术问题搜集分享网站

关于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__ 宏。

Yaoming Qin:

TI 也是找的linaro拿的编译器,所以只有等他们修好了bug了….

赞(0)
未经允许不得转载:TI中文支持网 » 关于sdk cross compile的-Werror=date-time 错误bug
分享到: 更多 (0)