imx_android_setup.sh is ok and https://community.nxp.com/docs/DOC-343242
but so many errors in building, please help me solve it
Lprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/lib32 -ldl -lpthread -lm -lrt -Wl,-rpath,\$ORIGIN/../lib -Wl,-rpath,\$ORIGIN/lib -nodefaultlibs -lgcc_s -lgcc -lc -lgcc_s -lgcc
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld: error: out/soong/.intermediates/art/runtime/libart/linux_glibc_x86_static/obj/art/runtime/mirror/string.o: file is empty
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld: error: out/soong/.intermediates/art/runtime/libart/linux_glibc_x86_static/obj/art/runtime/mirror/throwable.o: file is empty
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld: error: out/soong/.intermediates/art/runtime/libart/linux_glibc_x86_static/obj/art/runtime/mirror/var_handle.o: file is empty
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld: error: out/soong/.intermediates/art/runtime/libart/linux_glibc_x86_static/obj/art/runtime/monitor.o: file is empty
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld: error: out/soong/.intermediates/art/runtime/libart/linux_glibc_x86_static/obj/art/runtime/native_bridge_art_interface.o: file is empty
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin/ld: error: out/soong/.intermediates/art/runtime/libart/linux_glibc_x86_static/obj/art/runtime/native_stack_dump.o: file is empty
art/runtime/check_jni.cc:1353: error: undefined reference to 'art::mirror::Throwable::Dump()'
art/runtime/class_linker.cc:221: error: undefined reference to 'art::mirror::Throwable::Dump()'
art/runtime/class_linker.cc:503: error: undefined reference to 'art::mirror::String::SetClass(art::ObjPtr<art::mirror::Class>)'
art/runtime/class_linker.cc:749: error: undefined reference to 'art::mirror::VarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:755: error: undefined reference to 'art::mirror::FieldVarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:761: error: undefined reference to 'art::mirror::ArrayElementVarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:767: error: undefined reference to 'art::mirror::ByteArrayViewVarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:773: error: undefined reference to 'art::mirror::ByteBufferViewVarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:809: error: undefined reference to 'art::mirror::Throwable::SetClass(art::ObjPtr<art::mirror::Class>)'
art/runtime/class_linker.cc:1022: error: undefined reference to 'art::mirror::String::SetClass(art::ObjPtr<art::mirror::Class>)'
art/runtime/class_linker.cc:1045: error: undefined reference to 'art::mirror::VarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:1046: error: undefined reference to 'art::mirror::FieldVarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:1047: error: undefined reference to 'art::mirror::ArrayElementVarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:1048: error: undefined reference to 'art::mirror::ByteArrayViewVarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:1049: error: undefined reference to 'art::mirror::ByteBufferViewVarHandle::SetClass(art::mirror::Class*)'
art/runtime/class_linker.cc:1059: error: undefined reference to 'art::mirror::Throwable::SetClass(art::ObjPtr<art::mirror::Class>)'
art/runtime/class_linker.cc:1702: error: undefined reference to 'art::mirror::String::ToModifiedUtf8()'
art/runtime/class_linker.cc:1792: error: undefined reference to 'art::mirror::String::Equals(art::ObjPtr<art::mirror::String>)'
art/runtime/class_linker.cc:1798: error: undefined reference to 'art::mirror::String::ToModifiedUtf8()'
art/runtime/class_linker.cc:1802: error: undefined reference to 'art::mirror::String::ToModifiedUtf8()'
art/runtime/class_linker.cc:3378: error: undefined reference to 'art::mirror::String::ToModifiedUtf8()'
Downloading and Compiling Android9.0.0-2.0.0 BSP on Ubuntu16.04.2 LTS
and make clean ,then make -j4 ok