failed to build some targets

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

failed to build some targets

789 Views
chenw
Contributor II

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()'

Labels (1)
0 Kudos
2 Replies

685 Views
joanxie
NXP TechSupport
NXP TechSupport

yes,4.14.98_2.3.0 supports this, did you test demo images or images built by yourself? you can refer to the known issues of imx8qxp on 4.14.98_2.3.0 from the enclosed file

0 Kudos

685 Views
chenw
Contributor II
0 Kudos