1:
3:
解决方法:
4:
解决方法:
5:
解决方法:
6:
解决方法:
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main. o] Error 1
解决方法:
build/core/combo/HOST_linux-x86.mk line 61:
把:
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
改为:
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libMesa_intermediates/ src/glsl/linker.o] Error 1
解决方法:
vim external/mesa3d/src/glsl/linker.cpp
添加:
#include <cstddef>
3:
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/arrange_profiles.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/oprofile/libpp/format_output.cpp:26:0:
external/oprofile/libpp/format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/format_output.o] Error 1
解决方法:
external/oprofile/libpp/format_output.h
把:
mutable counts_t & counts;
改为:
counts_t & counts;
4:
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/ libgtest_main_host_intermediates/gtest_main.o] Error 1
解决方法:
$vim external/gtest/src/../include/gtest/internal/gtest-param-util.h
添加:
#include <cstddef>
5:
make: *** [out/host/linux-x86/obj/EXECUTABLES/test- librsloader_intermediates/test-librsloader] Error 1
解决方法:
$vim external/llvm/llvm-host-build.mk
在文件中插入一行:
LOCAL_LDLIBS := -lpthread -ldl
6:
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/ slang_rs_export_foreach.o] Error 1
解决方法:
$ vim frameworks/compile/slang/Android.mk
将 local_cflags_for_slang 所在行最后的 -Werror 去掉:
#local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror
local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter