Check this error this morning,solution as following words http://blog.sina.com.cn/s/blog_643e838601015ngx.html from external/mesa3d/src/glsl/loop_analysis.h:29, <command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] <built-in>:0:0: note: this is the location of the previous definition cc1plus: all warnings being treated as errors make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1解决方法:
修改源码目录下/build/core/combo/HOST_linux-x86.mk文件:
将以下语句
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
修改为
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
ATTENTION:
There is a SPACE between the -U_FORTIFY_SOURCE and -D_FORTIFY_SOURCE
Ubuntu 64bit 12.04 error: "_FORTIFY_SOURCE" redefined [-Werror]
最新推荐文章于 2024-04-01 17:04:41 发布
本文解决了编译过程中出现的_FORTIFY_SOURCE被重新定义的问题,通过修改HOST_linux-x86.mk文件中的预处理器宏定义来规避此错误。
2648

被折叠的 条评论
为什么被折叠?



