问题一
参考
搭建Ubuntu14.04编译环境并下载源码(二)
http://www.it165.net/os/html/201407/8770.html
问题二
<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
参考
http://blog.csdn.net/xumercury/article/details/7746229
问题三
external/mesa3d/src/glsl/linker.cpp:1394:49: error: expected primary-expression before ‘,’ token
解决方法:
把 "#include <stddef.h>" 添加到 linker.cpp 文件头部。
问题四
external/oprofile/libpp/format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]
http://blog.csdn.net/yangtalent1206/article/details/21397629
终极解决办法
http://www.linuxidc.com/Linux/2012-11/73918.htm