Build Failed. Clang Error,

Build Failed throwing new Error

out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/libutils.a(VectorImpl.o):system/core/libutils/VectorImpl.cpp:function typeinfo for android::VectorImpl: error: undefined reference to ‘vtable for __cxxabiv1::__class_type_info’
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_executable_internal.mk:34: recipe for target ‘out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/validatekeymaps’ failed
make: *** [out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/validatekeymaps] Error 1
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function vtable for ClassElement: error: undefined reference to ‘__cxa_pure_virtual’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function vtable for ClassElement: error: undefined reference to ‘__cxa_pure_virtual’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function typeinfo for ClassElement: error: undefined reference to ‘vtable for __cxxabiv1::__class_type_info’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function typeinfo for Field: error: undefined reference to ‘vtable for __cxxabiv1::__si_class_type_info’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function vtable for Expression: error: undefined reference to ‘__cxa_pure_virtual’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function typeinfo for Expression: error: undefined reference to ‘vtable for __cxxabiv1::__class_type_info’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function typeinfo for LiteralExpression: error: undefined reference to ‘vtable for __cxxabiv1::__si_class_type_info’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function typeinfo for StringLiteralExpression: error: undefined reference to ‘vtable for __cxxabiv1::__si_class_type_info’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function typeinfo for Variable: error: undefined reference to ‘vtable for __cxxabiv1::__si_class_type_info’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function vtable for Statement: error: undefined reference to ‘__cxa_pure_virtual’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function typeinfo for Statement: error: undefined reference to ‘vtable for __cxxabiv1::__class_type_info’
out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/AST.o:frameworks/base/tools/aidl/AST.cpp:function typeinfo for Case: error: undefined reference to ‘vtable for __cxxabiv1::__class_type_info’
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_executable_internal.mk:34: recipe for target ‘out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl’ failed
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl] Error 1

A post was merged into an existing topic: Not Able to build Kernel ? Clang Linker error