2016-02-01 46 views
1

我正在嘗試構建Cyanogenmod 12.1,因爲它已存在nightlies (hlte - Samsung Galaxy Note 3),但遇到了一些問題。make:*** [/aosp/out/host/linux-x86/obj/lib/libc++.so]構建Cyanogenmod時發生錯誤1

我使用的是基於Ubuntu 14.04的Docker容器(Dockerfile,文件號爲https://github.com/jameshiew/docker-aosp-builder/blob/a3fef049e9963db42a9168207d590a82638181b7/Dockerfile) - 我試圖儘量與https://source.android.com/source/initializing.html中描述的環境相匹配。

我做的第一件事就是在空白目錄中做repo init -u https://github.com/CyanogenMod/android.git -b cm-12.1然後repo sync所有檢查都沒問題。

然後我做了breakfast cm_hlte-userdebug(退房有關我的設備回購),然後加入<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" />到本地清單和repo sync版再次獲得propietary斑點我的設備。

然後我做了lunch cm_hlte-userdebug && mka,但不斷收到奇怪的錯誤libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43拋出。

具有相同問題的人看在了CyanogenMod的格里特了這個討論之後 - http://review.cyanogenmod.org/#/c/120824/ - 和Debian的bug跟蹤系統,另一個討論 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808206),我做了make clean,清除的ccache,並試圖WITHOUT_HOST_CLANG=true mka。構建進一步發展(不再有更多unsupported reloc錯誤),但現在(在單獨的兩次運行中)它停止在同一點(下面的錯誤輸出)。

主要錯誤是:

prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
make: *** [/aosp/out/host/linux-x86/obj/lib/libc++.so] Error 1 

富勒輸出:

Install: /aosp/out/host/linux-x86/lib/libc++.so 
... 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_handlers.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(exception.o): multiple definition of 'std::unexpected()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_handlers.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_alloc::what() const' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_length::what() const' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_new_length::what() const' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_alloc::~bad_alloc()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_length::~bad_array_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_new_length::~bad_array_new_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_length::~bad_array_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_length::~bad_array_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_new_length::~bad_array_new_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_new_length::~bad_array_new_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_alloc::~bad_alloc()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_alloc::~bad_alloc()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::set_new_handler(void (*)())' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_handlers.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::get_new_handler()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_handlers.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_alloc::bad_alloc()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_alloc::bad_alloc()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_new_length::bad_array_new_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_length::bad_array_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_new_length::bad_array_new_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(new.o): multiple definition of 'std::bad_array_length::bad_array_length()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(cxa_new_delete.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::logic_error::what() const' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::runtime_error::what() const' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::runtime_error::~runtime_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::underflow_error::~underflow_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::underflow_error::~underflow_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::underflow_error::~underflow_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::overflow_error::~overflow_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::overflow_error::~overflow_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::overflow_error::~overflow_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::range_error::~range_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::range_error::~range_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::range_error::~range_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::runtime_error::~runtime_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::runtime_error::~runtime_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::logic_error::~logic_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::out_of_range::~out_of_range()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::out_of_range::~out_of_range()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::out_of_range::~out_of_range()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::length_error::~length_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::length_error::~length_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::length_error::~length_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::invalid_argument::~invalid_argument()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::invalid_argument::~invalid_argument()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::invalid_argument::~invalid_argument()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::domain_error::~domain_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::domain_error::~domain_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::domain_error::~domain_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::logic_error::~logic_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): multiple definition of 'std::logic_error::~logic_error()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(stdexcept.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_cast::what() const' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_typeid::what() const' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_typeid::~bad_typeid()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_typeid::~bad_typeid()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_typeid::~bad_typeid()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_cast::~bad_cast()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_cast::~bad_cast()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_cast::~bad_cast()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_cast::bad_cast()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_typeid::bad_typeid()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_cast::bad_cast()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): multiple definition of 'std::bad_typeid::bad_typeid()' 
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: /aosp/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a(typeinfo.o): previous definition here 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
make: *** [/aosp/out/host/linux-x86/obj/lib/libc++.so] Error 1 
make: *** Waiting for unfinished jobs.... 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
Note: Some input files use or override a deprecated API. 
Note: Recompile with -Xlint:deprecation for details. 
Note: Some input files use unchecked or unsafe operations. 
Note: Recompile with -Xlint:unchecked for details. 
make: Leaving directory `/aosp' 

我環顧四周相當多,但我不知道這個問題可能是在這一點上的東西;是否與編譯器,檢出的代碼(或缺少),環境或其他相關。有人會對這個問題有什麼看法嗎?

回答

0

你可以在你的Android根路徑中試試這個: cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld

相關問題