1、
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] 错误 1
make: *** 正在等待未完成的任务....-----CAUTION! Error(s) while Compiling, please check the log above.-----
网上参考 :http://www.cnblogs.com/chu888chu888/archive/2011/11/16.html
此处编译错误是由于ubuntu 采用了GCC4.6.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
2、
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libMesa_intermediates/src/glsl/linker.o] 错误 1
make: *** 正在等待未完成的任务....
external/mesa3d/src/glsl/ir_hierarchical_visitor.h:114:30: warning: ‘virtual ir_visitor_status ir_hierarchical_visitor::visit_leave(ir_function_signature*)’ was hidden [-Woverloaded-virtual]
网上查找:http://wenku.baidu.com/view/a40acf7e1711cc7931b71626.html
改动:/JZ4770/external/mesa3d/src/glsl$ vi linker.cpp
添加:
69 #include <climits>
70 #include <stddef.h>
3、
external/gtest/src/../include/gtest/internal/gtest-param-util.h:122:11: error: ‘ptrdiff_t’ does not name a type
host C: liblzf <= external/liblzf/lzf_d.c
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libgtest_main_host_intermediates/gtest_main.o] 错误 1 // (1)
make: *** 正在等待未完成的任务....
In file included from external/gtest/src/../include/gtest/gtest-param-test.h:157:0,
from external/gtest/src/../include/gtest/gtest.h:69,
from external/gtest/src/../src/gtest.cc:34,
from external/gtest/src/gtest-all.cc:36:
external/gtest/src/../include/gtest/internal/gtest-param-util.h:122:11: error: ‘ptrdiff_t’ does not name a type
In file included from external/gtest/src/gtest-all.cc:38:0:
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libgtest_host_intermediates/gtest-all.o] 错误 1 // (2)
-----CAUTION! Error(s) while Compiling, please check the log above.-----
// 网上查找: http://wenku.baidu.com/view/a40acf7e1711cc7931b71626.html
//(1) 改动:vi JZ4770/external/gtest/src/../include/gtest/internal/gtest-param-util.h
39 #include <vector>
40 #include <cstddef>
网上查找 :http://blog.csdn.net/yiyaaixuexi/article/details/8330645
//(2)参考
Two fixes required:
1)
vi external/gtest/src/Android.mk
Add '-fpermissive' to lines 52 and 70 (both lines contain same info)
LOCAL_CFLAGS += -O0 -fpermissive
2)
vi external/gtest/include/gtest/internal/gtest-param-util.h
Add '#include <stddef.h>' to list of includes as shown:
#include <vector>
#include <cstddef>
#include <gtest/internal/gtest-port.h>
//改动: vi JZ4770/external/gtest/src/Android.mk
52 LOCAL_CFLAGS += -O0 // 改为 : LOCAL_CFLAGS += -O0 -fpermissive
70 LOCAL_CFLAGS += -O0 // 改为 : LOCAL_CFLAGS += -O0 -fpermissive
// vi JZ4770/external/gtest/include/gtest/internal/gtest-param-util.h
39 #include <vector>
40 #include <cstddef>
4、
Install: out/target/product/gps1/system/lib/libssl.so
target SharedLib: libnativehelper (out/target/product/gps1/obj/SHARED_LIBRARIES/libnativehelper_intermediates/LINKED/libnativehelper.so)
Install: out/host/linux-x86/bin/e2fsck
Install: out/host/linux-x86/bin/tune2fs
Install: out/target/product/gps1/root/sbin/e2fsck
/bin/bash: out/host/linux-x86/bin/tune2fs: 权限不够
make: *** [out/target/product/gps1/userdata.img] 错误 126
make: *** 正在删除文件“out/target/product/gps1/userdata.img”
make: *** 正在等待未完成的任务....
-----CAUTION! Error(s) while Compiling, please check the log above.-----
解决办法:
sudo chmod 777 out/host/linux-x86/bin/tune2fs