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 12.04 error: "_FORTIFY_SOURCE" redefined [-Werror]
最新推荐文章于 2023-03-07 18:06:02 发布
本文介绍了一种解决编译过程中出现的_FORTIFY_SOURCE被重新定义的错误方法。通过修改HOST_linux-x86.mk文件中的HOST_GLOBAL_CFLAGS配置,可以有效地避免这一编译警告,并确保项目的顺利构建。

714

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



