To check why it is not able to compile, I did the nm on the static library 
and I got this output.

nm 
out/target/product/generic_arm64/obj/STATIC_LIBRARIES/libaudiopolicycomponents_intermediates/libaudiopolicycomponents.a
nm: DeviceDescriptor.o: File format not recognized
nm: AudioGain.o: File format not recognized
nm: HwModule.o: File format not recognized
nm: IOProfile.o: File format not recognized
nm: AudioPort.o: File format not recognized
nm: AudioProfile.o: File format not recognized
nm: AudioRoute.o: File format not recognized
nm: AudioPolicyMix.o: File format not recognized
nm: AudioPatch.o: File format not recognized
nm: AudioInputDescriptor.o: File format not recognized
nm: AudioOutputDescriptor.o: File format not recognized
nm: AudioCollections.o: File format not recognized
nm: EffectDescriptor.o: File format not recognized
nm: SoundTriggerSession.o: File format not recognized
nm: SessionRoute.o: File format not recognized
nm: AudioSourceDescriptor.o: File format not recognized
nm: VolumeCurve.o: File format not recognized
nm: TypeConverter.o: File format not recognized
nm: AudioSession.o: File format not recognized
nm: ConfigParsingUtils.o: File format not recognized
nm: StreamDescriptor.o: File format not recognized
nm: Gains.o: File format not recognized


On Monday, February 25, 2019 at 8:30:27 PM UTC+5:30, Veera 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
>
> 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: [email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to