On Mon, Feb 25, 2019 at 8:30 PM Veera <vvn2...@gmail.com> wrote:

> I am trying to understand the Android 9 Compilation process and for that
> as an example, I moved frameworks/av/services/audiopolicy/enginedefault to
> other folders lets say, device/generic/arm64/enginedefault. I made the
> proper changes for the compilation in the Android.mk
>
So sometimes its not straight forward to move entire directory, we might
need to look for Android.mk if there is relative path mentioned as
dependency.

In your case it looks like you haven't applied clean build after moving.

> But when I tried to compile the same code there I am getting the following
> error.
>
>
>
> [  0% 75/29834] target SharedLib: 
> libaudiopolicyenginedefaul...default_intermediates/LINKED/libaudiopolicyenginedefault.so)
> FAILED: 
> out/target/product/helios/obj/SHARED_LIBRARIES/libaudiopolicyenginedefault_intermediates/LINKED/libaudiopolicyenginedefault.so/bin/bash
>  -c "prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++ -nostdlib 
> -Wl,-soname,libaudiopolicyenginedefault.so -Wl,--gc-sections -shared 
> out/target/product/helios/obj/lib/crtbegin_so.o 
> out/target/product/helios/obj/SHARED_LIBRARIES/libaudiopolicyenginedefault_intermediates/src/Engine.o
>  
> out/target/product/helios/obj/SHARED_LIBRARIES/libaudiopolicyenginedefault_intermediates/src/EngineInstance.o
>  -Wl,--whole-archive  -Wl,--no-whole-archive   
> out/target/product/helios/obj/STATIC_LIBRARIES/libaudiopolicycomponents_intermediates/libaudiopolicycomponents.a
>   
> out/target/product/helios/obj/STATIC_LIBRARIES/libclang_rt.ubsan_minimal-aarch64-android_intermediates/libclang_rt.ubsan_minimal-aarch64-android.a
>   
> out/target/product/helios/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a
>    
> out/target/product/helios/obj/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a
>  out/target/product/helios/obj/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,--no-undefined-version 
> -Wl,-m,aarch64_elf64_le_vec -Wl,--hash-style=gnu -fuse-ld=gold -Wl,--icf=safe 
>    -target aarch64-linux-android 
> -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin
>  -Wl,--exclude-libs,libclang_rt.ubsan_minimal-aarch64-android.a 
> -Wl,--no-undefined out/target/product/helios/obj/lib/liblog.so 
> out/target/product/helios/obj/lib/libcutils.so 
> out/target/product/helios/obj/lib/libutils.so 
> out/target/product/helios/obj/lib/libmedia_helper.so 
> out/target/product/helios/obj/lib/libc++.so 
> out/target/product/helios/obj/lib/libc.so 
> out/target/product/helios/obj/lib/libm.so 
> out/target/product/helios/obj/lib/libdl.so -o 
> out/target/product/helios/obj/SHARED_LIBRARIES/libaudiopolicyenginedefault_intermediates/LINKED/libaudiopolicyenginedefault.so
>  out/target/product/helios/obj/lib/crtend_so.o"
> prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin/ld.gold:
>  error: 
> out/target/product/helios/obj/STATIC_LIBRARIES/libaudiopolicycomponents_intermediates/libaudiopolicycomponents.a:
>  member at 74376 is not an ELF object
>
> --
> --
> unsubscribe: android-porting+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-porting
>
> ---
> You received this message because you are subscribed to the Google Groups
> "android-porting" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-porting+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Regards,
satish patel

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to