Building Issue in Lollipop -5.0.2_r1

446 views
Skip to first unread message

Kishore Poojari

unread,
Dec 2, 2015, 10:06:00 AM12/2/15
to Android Building
Hello All , 
   I downloaded android-5.0.2_r1 from git and applied patch given by vendor , then when I try to build following error is coming 

...
including ./tools/external/fat32lib/Android.mk ...
dex2oatd I  2425  2425 art/dex2oat/dex2oat.cc:1239] out/host/linux-x86/bin/dex2oatd --runtime-arg -Xms64m --runtime-arg -Xmx512m --boot-image=out/target/product/generic/dex_bootjars/system/framework/boot.art --dex-file=out/target/product/generic/obj/APPS/BasicDreams_intermediates/arm/package.odex.input --dex-location=/system/app/BasicDreams/BasicDreams.apk --oat-file=out/target/product/generic/obj/APPS/BasicDreams_intermediates/arm/package.odex --android-root=out/target/product/generic/system --instruction-set=arm --instruction-set-features=default --include-patch-information --runtime-arg -Xnorelocate --no-include-debug-symbols
dex2oatd E  2425  2425 art/runtime/gc/heap.cc:421] 0x56298768
dex2oatd F  2425  2425 art/runtime/gc/heap.cc:422] There's a gap between the image space and the main space
dex2oatd F  2425  2425 art/runtime/runtime.cc:284] Runtime aborting...
dex2oatd F  2425  2425 art/runtime/runtime.cc:284] (Aborting thread was not attached to runtime!)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #00 pc 00006a22  /home/accord/Android_Source/out/host/linux-x86/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+82)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #01 pc 00004141  /home/accord/Android_Source/out/host/linux-x86/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+33)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #02 pc 0036f689  /home/accord/Android_Source/out/host/linux-x86/lib/libartd.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+121)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #03 pc 0033a99d  /home/accord/Android_Source/out/host/linux-x86/lib/libartd.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+301)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #04 pc 0033a869  /home/accord/Android_Source/out/host/linux-x86/lib/libartd.so (art::Dumpable<art::AbortState>::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+41)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #05 pc 003394e8  /home/accord/Android_Source/out/host/linux-x86/lib/libartd.so (std::__1::basic_ostream<char, std::__1::char_traits<char> >& art::operator<<<art::AbortState>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Dumpable<art::AbortState> const&)+40)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #06 pc 003329d8  /home/accord/Android_Source/out/host/linux-x86/lib/libartd.so (art::Runtime::Abort()+168)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #07 pc 000f6209  /home/accord/Android_Source/out/host/linux-x86/lib/libartd.so (art::LogMessage::~LogMessage()+393)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #08 pc 001eb8ab  /home/accord/Android_Source/out/host/linux-x86/lib/libartd.so (art::gc::Heap::Heap(unsigned int, unsigned int, unsigned int, unsigned int, double, double, unsigned int, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, art::InstructionSet, art::gc::CollectorType, art::gc::CollectorType, unsigned int, unsigned int, bool, unsigned int, unsigned int, bool, bool, bool, bool, bool, bool, bool, bool, bool, unsigned long long)+5707)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #09 pc 003331f2  /home/accord/Android_Source/out/host/linux-x86/lib/libartd.so (art::Runtime::Init(std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*> > > const&, bool)+1298)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #10 pc 00332cad  /home/accord/Android_Source/out/host/linux-x86/lib/libartd.so (art::Runtime::Create(std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*> > > const&, bool)+93)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #11 pc 0001ea1a  /home/accord/Android_Source/out/host/linux-x86/bin/dex2oatd (art::Dex2Oat::CreateRuntime(std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*> > > const&, art::InstructionSet)+42)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #12 pc 0001655f  /home/accord/Android_Source/out/host/linux-x86/bin/dex2oatd (art::Dex2Oat::Create(art::Dex2Oat**, std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, void const*> > > const&, art::CompilerOptions const&, art::Compiler::Kind, art::InstructionSet, art::InstructionSetFeatures, art::VerificationResults*, art::DexFileToMethodInlinerMap*, unsigned int)+143)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #13 pc 00010290  /home/accord/Android_Source/out/host/linux-x86/bin/dex2oatd (art::dex2oat(int, char**)+11296)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #14 pc 0000d660  /home/accord/Android_Source/out/host/linux-x86/bin/dex2oatd (main+32)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #15 pc 00019a82  /lib/i386-linux-gnu/libc-2.19.so (__libc_start_main+242)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284]   native: #16 pc 0000ccc0  /home/accord/Android_Source/out/host/linux-x86/bin/dex2oatd (???)
dex2oatd F  2425  2425 art/runtime/runtime.cc:284] Dumping all threads without appropriate locks held: thread list lock mutator lock
dex2oatd F  2425  2425 art/runtime/runtime.cc:284] All threads:
dex2oatd F  2425  2425 art/runtime/runtime.cc:284] DALVIK THREADS (0):
dex2oatd F  2425  2425 art/runtime/runtime.cc:284] 
make: *** [out/target/product/generic/obj/APPS/BasicDreams_intermediates/arm/package.odex] Aborted (core dumped)
make: *** Deleting file `out/target/product/generic/obj/APPS/BasicDreams_intermediates/arm/package.odex'

Please help me sort out this issue.

Regards,
Kishore P

Kishore Poojari

unread,
Dec 3, 2015, 2:17:20 PM12/3/15
to Android Building
Hello All ,   
      I downloaded android-5.0.2_r1 from git and given a build for mini_emulator_arm64-userdebug , that time following error is coming,
please help me sort out this issue (Is there any library is missing ........?)

.................
 target StaticLib: components_autofill_core_browser_gyp (out/target/product/generic/obj/STATIC_LIBRARIES/components_autofill_core_browser_gyp_intermediates/components_autofill_core_browser_gyp.a)
target StaticLib: components_pref_registry_gyp (out/target/product/generic/obj/STATIC_LIBRARIES/components_pref_registry_gyp_intermediates/components_pref_registry_gyp.a)
target StaticLib: components_web_contents_delegate_android_gyp (out/target/product/generic/obj/STATIC_LIBRARIES/components_web_contents_delegate_android_gyp_intermediates/components_web_contents_delegate_android_gyp.a)
target thumb C++: mojo_mojo_js_bindings_lib_gyp <= external/chromium_org/mojo/bindings/js/core.cc
target thumb C++: mojo_mojo_js_bindings_lib_gyp <= external/chromium_org/mojo/bindings/js/handle.cc
target thumb C++: mojo_mojo_js_bindings_lib_gyp <= external/chromium_org/mojo/bindings/js/support.cc
target thumb C++: mojo_mojo_js_bindings_lib_gyp <= external/chromium_org/mojo/bindings/js/waiting_callback.cc
mkdir -p out/target/product/generic/obj/STATIC_LIBRARIES/third_party_libvpx_libvpx_gyp_intermediates; cp out/target/product/generic/obj/GYP/shared_intermediates/third_party/libvpx/bilinearfilter_v6.S out/target/product/generic/obj/STATIC_LIBRARIES/third_party_libvpx_libvpx_gyp_intermediates/bilinearfilter_v6.S
target StaticLib: third_party_webrtc_modules_audio_processing_gyp (out/target/product/generic/obj/STATIC_LIBRARIES/third_party_webrtc_modules_audio_processing_gyp_intermediates/third_party_webrtc_modules_audio_processing_gyp.a)
target StaticLib: content_content_app_both_gyp (out/target/product/generic/obj/STATIC_LIBRARIES/content_content_app_both_gyp_intermediates/content_content_app_both_gyp.a)
target Strip: libext2_uuid (out/target/product/generic/obj/lib/libext2_uuid.so)
target Strip: libext2_com_err (out/target/product/generic/obj/lib/libext2_com_err.so)
target Strip: libext2_e2p (out/target/product/generic/obj/lib/libext2_e2p.so)
Install: out/target/product/generic/system/lib/libext2_uuid.so
Install: out/target/product/generic/system/lib/libext2_com_err.so
Install: out/target/product/generic/system/lib/libext2_e2p.so
target SharedLib: libext2_profile (out/target/product/generic/obj/SHARED_LIBRARIES/libext2_profile_intermediates/LINKED/libext2_profile.so)
target Strip: fsck_msdos (out/target/product/generic/obj/EXECUTABLES/fsck_msdos_intermediates/fsck_msdos)
target Strip: libiprouteutil (out/target/product/generic/obj/lib/libiprouteutil.so)
target Strip: libnetlink (out/target/product/generic/obj/lib/libnetlink.so)
Install: out/target/product/generic/system/lib/libiprouteutil.so
target Executable: sh (out/target/product/generic/obj/EXECUTABLES/sh_intermediates/LINKED/sh)
/home/accord/Android_Original/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
error: out/target/product/generic/obj/EXECUTABLES/sh_intermediates/src/lalloc.o: file is empty
external/mksh/src/edit.c:703: error: undefined reference to 'afree'

external/mksh/src/edit.c:704: error: undefined reference to 'afree'
external/mksh/src/edit.c:4801: error: undefined reference to 'afree'
external/mksh/src/edit.c:4802: error: undefined reference to 'afree'
external/mksh/src/edit.c:4778: error: undefined reference to 'aresize'
external/mksh/src/edit.c:4779: error: undefined reference to 'aresize'
external/mksh/src/edit.c:2374: error: undefined reference to 'aresize'
external/mksh/src/edit.c:2253: error: undefined reference to 'aresize'
external/mksh/src/edit.c:757: error: undefined reference to 'aresize2'
external/mksh/src/edit.c:252: error: undefined reference to 'aresize2'
external/mksh/src/edit.c:254: error: undefined reference to 'aresize2'
external/mksh/src/edit.c:255: error: undefined reference to 'aresize2'
external/mksh/src/edit.c:5478: error: undefined reference to 'ainit'
external/mksh/src/edit.c:5507: error: undefined reference to 'afreeall'
external/mksh/src/main.c:1113: error: undefined reference to 'afreeall'
external/mksh/src/main.c:1118: error: undefined reference to 'afreeall'
external/mksh/src/main.c:964: error: undefined reference to 'ainit'
external/mksh/src/main.c:1039: error: undefined reference to 'afreeall'
external/mksh/src/main.c:224: error: undefined reference to 'ainit'
external/mksh/src/main.c:228: error: undefined reference to 'ainit'
collect2: error: ld returned 1 exit status
make: *** [out/target/product/generic/obj/EXECUTABLES/sh_intermediates/LINKED/sh] Error 1
make: *** Waiting for unfinished jobs....
target SharedLib: libc_malloc_debug_leak (out/target/product/generic/obj/SHARED_LIBRARIES/libc_malloc_debug_leak_intermediates/LINKED/libc_malloc_debug_leak.so)
target SharedLib: libc_malloc_debug_qemu (out/target/product/generic/obj/SHARED_LIBRARIES/libc_malloc_debug_qemu_intermediates/LINKED/libc_malloc_debug_qemu.so)

Regards,
Kishore P
Reply all
Reply to author
Forward
0 new messages