[Android Software/Hacking General [Developers Only]] fKm:
I am out of ideas now. Tried the whole afternoon to build AOSP. Even switched to 3.8 but I can't fix this error:

host Executable: asan_test (out/host/linux-x86/obj/EXECUTABLES/asan_test_intermediates/asan_test64)
host Executable: asan_test_32 (out/host/linux-x86/obj32/EXECUTABLES/asan_test_intermediates/asan_test32)
host Executable: liblatinime_host_unittests (out/host/linux-x86/obj/EXECUTABLES/liblatinime_host_unittests_intermediates/liblatinime_host_unittests)
target Java: bouncycastle (out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes)
external/compiler-rt/lib/asan/tests/asan_globals_test.cc:44: error: undefined reference to '__asan_init'
external/compiler-rt/lib/asan/tests/asan_globals_test.cc:44: error: undefined reference to '__asan_version_mismatch_check_v8'
external/compiler-rt/lib/asan/tests/asan_globals_test.cc:44: error: undefined reference to '__asan_init'
external/compiler-rt/lib/asan/tests/asan_globals_test.cc:44: error: undefined reference to '__asan_version_mismatch_check_v8'
external/compiler-rt/lib/asan/tests/asan_test.cc:1055: error: undefined reference to '__asan_init'
external/compiler-rt/lib/asan/tests/asan_test.cc:1055: error: undefined reference to '__asan_version_mismatch_check_v8'
external/compiler-rt/lib/asan/tests/asan_test.cc:1055: error: undefined reference to '__asan_init'
target Static Jar: libphonenumber-platform (out/target/common/obj/JAVA_LIBRARIES/libphonenumber-platform_intermediates/javalib.jar)
external/compiler-rt/lib/asan/tests/asan_test.cc:1055: error: undefined reference to '__asan_version_mismatch_check_v8'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Copying: out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar
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/asan_test_intermediates/asan_test64' failed
make: *** [out/host/linux-x86/obj/EXECUTABLES/asan_test_intermediates/asan_test64] Error 1
make: *** Waiting for unfinished jobs....
build/core/host_executable_internal.mk:34: recipe for target 'out/host/linux-x86/obj32/EXECUTABLES/asan_test_intermediates/asan_test32' failed
make: *** [out/host/linux-x86/obj32/EXECUTABLES/asan_test_intermediates/asan_test32] Error 1
packages/inputmethods/LatinIME/native/jni/tests/defines_test.cpp:31: error: undefined reference to '__asan_init'
packages/inputmethods/LatinIME/native/jni/tests/defines_test.cpp:31: error: undefined reference to '__asan_version_mismatch_check_v8'
packages/inputmethods/LatinIME/native/jni/tests/dictionary/header/header_read_write_utils_test.cpp:75: error: undefined reference to '__asan_init'
packages/inputmethods/LatinIME/native/jni/tests/dictionary/header/header_read_write_utils_test.cpp:75: error: undefined reference to '__asan_version_mismatch_check_v8'
packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/language_model_dict_content_test.cpp:117: error: undefined reference to '__asan_init'
packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/language_model_dict_content_test.cpp:117: error: undefined reference to '__asan_version_mismatch_check_v8'
packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/language_model_dict_content_global_counters_test.cpp:57: error: undefined reference to '__asan_init'
packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/language_model_dict_content_global_counters_test.cpp:57: error: undefined reference to '__asan_version_mismatch_check_v8'
packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/edit_distance.h:33: error: undefined reference to '__asan_alloca_poison'
packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/edit_distance.h:65: error: undefined reference to '__asan_allocas_unpoison'
packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/edit_distance.h:65: error: undefined reference to '__asan_allocas_unpoison'
packages/inputmethods/LatinIME/native/jni/tests/suggest/policyimpl/utils/damerau_levenshtein_edit_distance_policy_test.cpp:43: error: undefined reference to '__asan_allocas_unpoison'
packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/dict_file_writing_utils.cpp:85: error: undefined reference to '__asan_alloca_poison'
packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/dict_file_writing_utils.cpp:88: error: undefined reference to '__asan_allocas_unpoison'
packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/file_utils.cpp:75: error: undefined reference to '__asan_alloca_poison'
packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/file_utils.cpp:159: error: undefined reference to '__asan_alloca_poison'
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/liblatinime_host_unittests_intermediates/liblatinime_host_unittests' failed
make: *** [out/host/linux-x86/obj/EXECUTABLES/liblatinime_host_unittests_intermediates/liblatinime_host_unittests] Error 1

I would love if someone could help me with this. Thanks