make: *** [/aosp/out/host/linux-x86/obj/lib/libc++.so] Error 1 when building Cyanogenmod - android-source

I'm trying to build Cyanogenmod 12.1 for a device for which there already exist nightlies (hlte - Samsung Galaxy Note 3), but am encountering some problems building.
I'm using a Ubuntu 14.04-based Docker container (Dockerfile at https://github.com/jameshiew/docker-aosp-builder/blob/a3fef049e9963db42a9168207d590a82638181b7/Dockerfile) - I've tried to match the environment as described at https://source.android.com/source/initializing.html as closely as possible.
The first thing I did was do repo init -u https://github.com/CyanogenMod/android.git -b cm-12.1 in a blank directory then repo sync which all checked out fine.
Then I did breakfast cm_hlte-userdebug (to check out repos relevant to my device) then added <project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" /> to a local manifest and repo synced again to get propietary blobs for my device.
I then did lunch cm_hlte-userdebug && mka but kept getting odd errors of the sort libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43 thrown about.
After looking at this discussion on Cyanogenmod's gerrit by people having the same problem - http://review.cyanogenmod.org/#/c/120824/ - and another discussion on Debian's bug tracker - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808206), I did make clean, cleared the ccache and tried WITHOUT_HOST_CLANG=true mka. The build progressed further (no more unsupported reloc errors) but now (in separate two runs) it is stopping at the same point (error output below).
The main error is:
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
Fuller output:
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'
I have looked around quite a bit but am not sure what the problem might be at this point; whether it's related to the compiler, the checked out code (or lack of), the environment, or something else. Would anyone have some hint at a glance of what the problem might be?

You can try this in your android root path:
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld

Related

System.TypeInitializationException: The type initializer for 'Microsoft.Data.SqlClient.SqlConnection' threw an exception

Due to the below error i am blocked on the work.
System.TypeInitializationException: The type initializer for 'Microsoft.Data.SqlClient.SqlConnection' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Microsoft.Data.SqlClient.SqlConnectionFactory' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Microsoft.Data.SqlClient.SqlPerformanceCounters' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Microsoft.Data.Common.ADP' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SqlClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Data.SqlClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.Data.Common.ADP..cctor()
--- End of inner exception stack trace ---
I have dereferenced the System.Data.SqlClient in the entire project but still getting this exception.
I have added the reference for Microsoft.Data.SqlClient i even upgraded this to the latest version.[version="5.0.1" targetFramework="net472"]
I have verifying the connection string by using the VS Community DataBase TestConnection it is working fine.
We are getting this error while trying to establish connection through c# code.
.NetFramework: net472
VSCommunity editor with C# as the scripting language and Windows 11 as the OS.

Play Framework is hiding the intial exception

I'm getting this error from Play after implementing a controller. If I throw in a try to catch and println the error, I can see what exception was thrown by my code, but otherwise this information is missing and I get an error relating to files in SBT instead.
What is going on during the handling of my exception that is causing this other exception?
I'm running my application with sbt api/run.
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /[0:0:0:0:0:0:0:0]:9000
(Server started, use Enter to stop and go back to the console...)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/Users/dan/Library/Caches/Coursier/v1/https/repo1.maven.org/maven2/com/google/inject/guice/4.2.3/guice-4.2.3.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-10-15 00:55:32 INFO play.api.http.EnabledFilters Enabled Filters (see <https://www.playframework.com/documentation/latest/Filters>):
play.filters.csrf.CSRFFilter
play.filters.headers.SecurityHeadersFilter
play.filters.hosts.AllowedHostsFilter
play.filters.cors.CORSFilter
2020-10-15 00:55:32 INFO play.api.Play Application started (Dev) (no global state)
2020-10-15 00:55:32 ERROR p.api.http.DefaultHttpErrorHandler Error while handling error
java.lang.ClassCastException: class xsbti.BasicVirtualFileRef cannot be cast to class java.io.File (xsbti.BasicVirtualFileRef is in unnamed module of loader sbt.internal.MetaBuildLoader #6e75aa0d; java.io.File is in module java.base of loader 'bootstrap')
at play.sbt.run.PlayReload$.$anonfun$sourceMap$1(PlayReload.scala:69)
at scala.collection.MapLike$MappedValues.get(MapLike.scala:260)
at play.runsupport.Reloader.$anonfun$findSource$1(Reloader.scala:547)
at scala.Option.flatMap(Option.scala:271)
at play.runsupport.Reloader.findSource(Reloader.scala:546)
at play.core.server.DevServerStart$$anon$1$$anon$2.sourceOf(DevServerStart.scala:171)
at play.core.SourceMapper.$anonfun$sourceFor$1(ApplicationProvider.scala:21)
at play.core.SourceMapper.$anonfun$sourceFor$1$adapted(ApplicationProvider.scala:21)
at scala.collection.ArrayOps$.find$extension(ArrayOps.scala:684)
at play.core.SourceMapper.sourceFor(ApplicationProvider.scala:21)
at play.core.SourceMapper.sourceFor$(ApplicationProvider.scala:20)
at play.core.server.DevServerStart$$anon$1$$anon$2.sourceFor(DevServerStart.scala:169)
at play.api.http.HttpErrorHandlerExceptions$.$anonfun$throwableToUsefulException$1(HttpErrorHandler.scala:358)
at scala.Option.flatMap(Option.scala:283)
at play.api.http.HttpErrorHandlerExceptions$.throwableToUsefulException(HttpErrorHandler.scala:358)
at play.api.http.DefaultHttpErrorHandler.onServerError(HttpErrorHandler.scala:261)
at play.filters.cors.AbstractCORSPolicy$$anonfun$1.applyOrElse(AbstractCORSPolicy.scala:128)
at play.filters.cors.AbstractCORSPolicy$$anonfun$1.applyOrElse(AbstractCORSPolicy.scala:126)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:453)
at play.api.libs.streams.Execution$trampoline$.execute(Execution.scala:70)
at scala.concurrent.impl.Promise$Transformation.submitWithValue(Promise.scala:392)
at scala.concurrent.impl.Promise$DefaultPromise.submitWithValue(Promise.scala:302)
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete0(Promise.scala:249)
at scala.concurrent.impl.Promise$Transformation.handleFailure(Promise.scala:407)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:469)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:56)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:93)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:94)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:93)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:48)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
It was an incompatibility between play and sbt, and has been fixed:
https://github.com/playframework/playframework/issues/10486
You end up with this error when an exception happens during handling the server error in the default or custom Play error handler. See play.api.http.HttpErrorHandler.

Build Failed, Exception Message: The values provided for the root activity's arguments did not satisfy the root activity's requirements.

Build is failing with below Exception and how to debug these kinds of errors ?
TF215097: An error occurred while initializing a build for build definition xxxxx:
Exception Message: The values provided for the root activity's arguments did not satisfy the root activity's requirements:
'DynamicActivity': Expected an input parameter value of type 'Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity' for parameter named 'Verbosity'.
Parameter name: rootArgumentValues (type ArgumentException)
Exception Stack Trace: at System.Activities.Validation.ActivityValidationServices.ValidateRootInputs(Activity rootActivity, IDictionary2 inputs)
at System.Activities.Hosting.WorkflowInstance.InitializeCore(IDictionary2 workflowArgumentValues, IList`1 workflowExecutionProperties)
In my case it was build definition level changes, Changing Build Verbosity to "minimal" worked fine.

NUnit.ConsoleRunner.Runner "System.Security.SecurityException: That assembly does not allow partially trusted callers"

nunit-console.exe throws the following error while i tried to execute from Mapped Network Drive
Unhandled Exception: System.TypeInitializationException: The type initializer for 'NUnit.ConsoleRunner.Runner' threw an exception. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers.
at NUnit.ConsoleRunner.Runner..cctor()
The action that failed was:
LinkDemand
The assembly or AppDomain that failed was:
nunit-console-runner, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77
The method that caused the failure was:
NUnit.Core.Logger GetLogger(System.Type)
The Zone of the assembly that failed was:
Internet
The Url of the assembly that failed was:
file:///Z:/jenkinsworkspace/workspace/FlashUpload/tools/NUnit/lib/nunit-console-runner.DLL
--- End of inner exception stack trace ---
at NUnit.ConsoleRunner.Runner.Main(String[] args)
at NUnit.ConsoleRunner.Class1.Main(String[] args)**
I tried adding loadFromRemoteSources enabled="true" in nunit-console.exe.config, but that did not solve the problem.
Add this to the nunit-console.config file.
<supportedRuntime version="v4.0"/>
Got this from here:
Get .NET to consider a specific network share to be fully trusted:

What is a Boxed Error in Scala?

When I run my application, the browser shows
[ExecutionException: Boxed Error]
It doesn't say anything about the line number, etc.
In the console, I have the following
! #6elaah0c8 - Internal server error, for (GET) [/testlearn] ->
play.api.Application$$anon$1: Execution exception[[ExecutionException: Boxed Error]]
at play.api.Application$class.handleError(Application.scala:289) ~[play_2.10.jar:2.1.1]
at play.api.DefaultApplication.handleError(Application.scala:383) [play_2.10.jar:2.1.1]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$17$$anonfun$apply$24.apply(PlayDefaultUpstreamHandler.scala:326) [play_2.10.jar:2.1.1]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$17$$anonfun$apply$24.apply(PlayDefaultUpstreamHandler.scala:324) [play_2.10.jar:2.1.1]
at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10.jar:2.1.1]
at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10.jar:2.1.1]
java.util.concurrent.ExecutionException: Boxed Error
at scala.concurrent.impl.Promise$.resolver(Promise.scala:52) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at scala.concurrent.impl.Promise$.scala$concurrent$impl$Promise$$resolveTry(Promise.scala:44) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:116) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at scala.concurrent.Promise$class.complete(Promise.scala:55) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:58) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:23) [factorie-1.0.0-M4-jar-with-dependencies.jar:na]
Caused by: java.lang.AssertionError: assertion failed
at scala.Predef$.assert(Predef.scala:165) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at cc.factorie.util.TraversableExtras$class.max2ByDouble(TraversableExtras.scala:95) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at cc.factorie.package$$anon$2.max2ByDouble(package.scala:148) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at cc.factorie.optimize.SampleRankExample.accumulateExampleInto(SampleRank.scala:31) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at cc.factorie.optimize.OnlineTrainer$$anonfun$processExamples$3.apply(Trainer.scala:72) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
at cc.factorie.optimize.OnlineTrainer$$anonfun$processExamples$3.apply(Trainer.scala:63) ~[factorie-1.0.0-M4-jar-with-dependencies.jar:na]
"Boxed Error" is Scala's response to an Error being thrown within a Future. In Java, and hence Scala, subclasses of type Error have a special meaning as Fatal errors. See Differences between Exception and Error. In short, the javadoc says:
An Error is a subclass of Throwable that indicates serious problems
that a reasonable application should not try to catch. Most such
errors are abnormal conditions.
Unlike throwing other Throwables within a future, when a subclass of Error is thrown, the default Scala resolver will wrap up the Error in a java.util.concurrent.ExecutionException, with the message string "Boxed Error", and complete your promise with a failure.
To quote the futures documentation http://docs.scala-lang.org/overviews/core/futures.html w.r.t. Error being thrown:
[Error] exceptions are rethrown in the thread executing the failed
asynchronous computation. The rationale behind this is to prevent
propagation of critical and control-flow related exceptions normally
not handled by the client code and at the same time inform the client
in which future the computation failed.
If you want to do something special with the Failure, the original Error that was thrown can be extracted (but not in a way particularly amenable to pattern matching), by ExecutionException#getCause()
I don't know that's a Boxed Error, but according to your stacktrace, the root problem comes from the factorie lib, from the max2Double method at line 95.
Extract from the source code:
/**Returns both the maximum element and the second-to-max element */
def max2ByDouble(extractor: A => Double): (A, A) = {
val s1 = t.toSeq
assert(s1.length > 1) // <<<== HERE
var best1 = Double.NegativeInfinity
...
It seems that your Traversable is empty.