우분투 16.04 LTS에서 Android 빌드시 아래와 같은 에러가 발생할 수 있다.
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/include/c++/4.6/bits/basic_string.h:235: error: unsupported reloc 43
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/include/c++/4.6/bits/basic_string.h:235: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:310: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:311: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:332: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:322: error: unsupported reloc 43
libnativehelper/JNIHelp.cpp:338: error: unsupported reloc 43
...
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: 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/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
https://android-review.googlesource.com/#/c/223100/
위의 링크를 참고하였다.
build/core/clang/HOST_x86_common.mk 파일을 수정한다.
에서 다음과 같이 변경한다.
보면 아래의 내용이 하나 추가된 것 말곤 없다.
-B$($(clang_2nd_arch_prefix)HOST_TOOLCHAIN_FOR_CLANG)/x86_64-linux/bin
'안드로이드OS > 문제해결' 카테고리의 다른 글
Process: org.tensorflow.demo, PID: 26192 java.lang.RuntimeException: Problem reading label file! (0) | 2017.11.18 |
---|---|
/bin/sh: 1: bc: not found (0) | 2017.01.31 |
How to use Screen Capture by adb in Android (0) | 2017.01.23 |
awk: line 2: function strtonum never defined (0) | 2017.01.20 |
openjdk version7 설치하기 - 우분투 16.04 (0) | 2016.12.07 |