Ubuntu1804编译Tiny4412 Android源代码遇到的问题

【版权申明】未经博主同意,谢绝转载!(请尊重原创,博主保留追究权) 

Ubuntu1804编译Tiny4412 Android源代码遇到的问题

1. [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp]

Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l
flex-2.5.39: loadlocale.c:130:_nl_intern_locale_data: ?? ‘cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))’ ???
Export includes file: frameworks/base/tools/aapt/Android.mk – out/host/linux-x86/obj/STATIC_LIBRARIES/libaapt_intermediates/export_includes
Export includes file: frameworks/base/libs/androidfw/Android.mk – out/host/linux-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/export_includes
Export includes file: external/libpng/Android.mk – out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/export_includes
build/core/binary.mk:646: recipe for target ‘out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp’ failed
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error (core dumped)

解决办法:

#导出环境变量
export LC_ALL=C

2. make: *** [out/host/linux-x86/obj32/lib/libc++.so] Error 1

external/libcxx/src/thread.cpp:133: error: unsupported reloc 43
external/libcxx/src/thread.cpp:133: error: unsupported reloc 43
external/libcxx/include/thread:146: error: unsupported reloc 43
external/libcxx/include/thread:149: error: unsupported reloc 43
external/libcxx/include/thread:149: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target ‘out/host/linux-x86/obj32/lib/libc++.so’ failed
make: *** [out/host/linux-x86/obj32/lib/libc++.so] Error 1

解决办法1:

cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin
make update-api
make -j4 # 我也不知道为什么, make不加-j4 会失败.

解决办法2:

# 修改art/build/Android.common_build.mk
# 将
ifneq ($(WITHOUT_HOST_CLANG), true)
# 改为
ifeq ($(WITHOUT_HOST_CLANG), false)
发布了68 篇原创文章 · 获赞 22 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/MACMACip/article/details/105234637
今日推荐