[Moto G5 ROMs, Kernels, Recoveries, & Other Develop] OlegIvanov:
Problem with build

Hi everyone,

I am trying to build ROM for aosp_cedric, based on the sources posted here. But at the end of the build I get a lot of errors with undefined references on linking android.hardware.radio@1.0.so (logs are below). Does anyone know how to solve this problem? Thanks in advance : )

[ 20% 805/3959] //hardware/interfaces/radio/1.0:android.hardware.radio@1.0 header-abi-linker android.hardware.radio@1.0.so.lsdump [arm]

FAILED: /media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.0.so.lsdump

prebuilts/build-tools/linux-x86/bin/header-abi-linker -o '/media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.0.so.lsdump' -so /media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.0.so -arch arm -api current -I/media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0_genc++_headers/gen @'/media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.0.so.lsdump'.rsp

Couldn't really create object File

Expected<T> must be checked before access or destruction.

Unchecked Expected<T> contained error:

Invalid data was encountered while parsing the fileAborted (core dumped)

[ 20% 806/3959] //hardware/interfaces/radio/1.1:android.hardware.radio@1.1 link android.hardware.radio@1.1.so [arm]

FAILED: /media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.1/android.hardware.radio@1.1/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.1.so

prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ /media/Elements/aosp/out/soong/.intermediates/bionic/libc/crtbegin_so/android_arm_armv7-a-neon_cortex-a53_core/crtbegin_so.o @'/media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.1/android.hardware.radio@1.1/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.1.so'.rsp /media/Elements/aosp/out/soong/.intermediates/external/libunwind_llvm/libunwind_llvm/android_arm_armv7-a-neon_cortex-a53_static_core/libunwind_llvm.a /media/Elements/aosp/out/soong/.intermediates/external/compiler-rt/libcompiler_rt-extras/android_arm_armv7-a-neon_cortex-a53_static_core/libcompiler_rt-extras.a /media/Elements/aosp/out/soong/.intermediates/build/soong/libatomic/android_arm_armv7-a-neon_cortex-a53_static_core/libatomic.a /media/Elements/aosp/out/soong/.intermediates/build/soong/libgcc/android_arm_armv7-a-neon_cortex-a53_static_core/libgcc.a /media/Elements/aosp/out/soong/.intermediates/system/libhidl/base/libhidlbase/android_arm_armv7-a-neon_cortex-a53_shared_core/libhidlbase.so /media/Elements/aosp/out/soong/.intermediates/system/libhidl/transport/libhidltransport/android_arm_armv7-a-neon_cortex-a53_shared_core/libhidltransport.so /media/Elements/aosp/out/soong/.intermediates/system/libhwbinder/libhwbinder/android_arm_armv7-a-neon_cortex-a53_shared_core/libhwbinder.so /media/Elements/aosp/out/soong/.intermediates/system/core/liblog/liblog/android_arm_armv7-a-neon_cortex-a53_shared_core/liblog.so /media/Elements/aosp/out/soong/.intermediates/system/core/libutils/libutils/android_arm_armv7-a-neon_cortex-a53_shared_core/libutils.so /media/Elements/aosp/out/soong/.intermediates/system/core/libcutils/libcutils/android_arm_armv7-a-neon_cortex-a53_shared_core/libcutils.so /media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.0.so /media/Elements/aosp/out/soong/.intermediates/external/libcxx/libc++/android_arm_armv7-a-neon_cortex-a53_shared_core/libc++.so /media/Elements/aosp/out/soong/.intermediates/bionic/libc/libc/android_arm_armv7-a-neon_cortex-a53_shared_core/libc.so /media/Elements/aosp/out/soong/.intermediates/bionic/libm/libm/android_arm_armv7-a-neon_cortex-a53_shared_core/libm.so /media/Elements/aosp/out/soong/.intermediates/bionic/libdl/libdl/android_arm_armv7-a-neon_cortex-a53_shared_core/libdl.so /media/Elements/aosp/out/soong/.intermediates/bionic/libc/crtend_so/android_arm_armv7-a-neon_cortex-a53_core/obj/bionic/libc/arch-common/bionic/crtend_so.o -o '/media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.1/android.hardware.radio@1.1/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.1.so' -nostdlib -Wl,--gc-sections -shared -Wl,-soname,android.hardware.radio@1.1.so -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin -Wl,--no-undefined -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 -Wl,--exclude-libs,libunwind_llvm.a

prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.0.so: section name section has wrong type: 0

prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /media/Elements/aosp/out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm_armv7-a-neon_cortex-a53_shared_core/android.hardware.radio@1.0.so: bad section name offset for section 1: 0

out/soong/.intermediates/hardware/interfaces/radio/1.1/android.hardware.radio@1.1_genc++/gen/android/hardware/radio/1.1/types.cpp:1336: error: undefined reference to 'android::hardware::radio::V1_0::readEmbeddedFromParcel(android::hardware::radio::V1_0::CellInfo const&, android::hardware::Parcel const&, unsigned int, unsigned int)'