There is a bad object in your ccache directory (specified with the CCACHE_DIR environment variable), either look for 0 byte files in there and remove them or wipe the whole thing.
On Wed, Oct 25, 2017 at 12:12 AM, Sanjay Shrestha <[email protected]> wrote: > [ 94% 77921/82366] target SharedLib: libldnhncr_32 > (/home/yaznas/validus/out/target/product/bullhead/obj_ > arm/SHARED_LIBRARIES/libldnhncr_intermediates/LINKED/libldnhncr.so) > FAILED: /home/yaznas/validus/out/target/product/bullhead/obj_ > arm/SHARED_LIBRARIES/libldnhncr_intermediates/LINKED/libldnhncr.so > /bin/bash -c "prebuilts/misc/linux-x86/ccache/ccache > prebuilts/clang/host/linux-x86/clang-3859424/bin/clang++ -nostdlib > -Wl,-soname,libldnhncr.so -Wl,--gc-sections -shared > /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/crtbegin_so.o > /home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/ > libldnhncr_intermediates/EffectLoudnessEnhancer.o > /home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/ > libldnhncr_intermediates/dsp/core/dynamic_range_compression.o > -Wl,--whole-archive -Wl,--no-whole-archive /home/yaznas/validus/out/ > target/product/bullhead/obj_arm/STATIC_LIBRARIES/ > libunwind_llvm_intermediates/libunwind_llvm.a /home/yaznas/validus/out/ > target/product/bullhead/obj_arm/STATIC_LIBRARIES/libcompiler_rt-extras_ > intermediates/libcompiler_rt-extras.a /home/yaznas/validus/out/ > target/product/bullhead/obj_arm/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a > /home/yaznas/validus/out/target/product/bullhead/obj_ > arm/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a -Wl,-z,noexecstack > -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel > -Wl,--fatal-warnings -Wl,--icf=safe -Wl,--hash-style=gnu > -Wl,--no-undefined-version -Wl,--no-fix-cortex-a8 -target > arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/ > arm-linux-androideabi-4.9/arm-linux-androideabi/bin > -Wl,--exclude-libs,libunwind_llvm.a -Wl,--no-undefined > /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libcutils.so > /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/liblog.so > /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libc++.so > /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libdl.so > /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libc.so > /home/yaznas/validus/out/target/product/bullhead/obj_arm/lib/libm.so -o > /home/yaznas/validus/out/target/product/bullhead/obj_arm/SHARED_LIBRARIES/ > libldnhncr_intermediates/LINKED/libldnhncr.so /home/yaznas/validus/out/ > target/product/bullhead/obj_arm/lib/crtend_so.o" > prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: > error: /home/yaznas/validus/out/target/product/bullhead/obj_ > arm/SHARED_LIBRARIES/libldnhncr_intermediates/EffectLoudnessEnhancer.o: > file is empty > prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: > error: /home/yaznas/validus/out/target/product/bullhead/obj_ > arm/SHARED_LIBRARIES/libldnhncr_intermediates/dsp/core/dynamic_range_compression.o: > file is empty > clang.real: error: linker command failed with exit code 1 (use -v to see > invocation) > [ 94% 77922/82366] target SharedLib: libbundlewrapper_32 > (/home/yaznas/validus/out/target/product/bullhead/obj_ > arm/SHARED_LIBRARIES/libbundlewrapper_intermediates/LINKED/ > libbundlewrapper.so) > [ 94% 77923/82366] target StaticExecutable: simpleperf_32 > (/home/yaznas/validus/out/target/product/bullhead/obj_ > arm/EXECUTABLES/simpleperf_intermediates/LINKED/simpleperf32) > [ 94% 77924/82366] ld /home/yaznas/validus/out/soong/.intermediates/ > frameworks/compile/libbcc/bcinfo/libbcinfo/android_arm_ > armv7-a-neon_cortex-a53.a57_shared_core/libbcinfo.so > [ 94% 77925/82366] ld /home/yaznas/validus/out/ > soong/.intermediates/external/llvm/libLLVM/android_arm64_ > armv8-a_cortex-a53_shared_core/libLLVM.so > ninja: build stopped: subcommand failed. > 12:39:57 ninja failed with: exit status 1 > make: *** [build/core/main.mk:21: run_soong_ui] Error 1 > > > This is the error im facing while trying to build for bullhead. Any > solutions? > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
