ABI update Failed

1,358 views
Skip to first unread message

figs개발자

unread,
Jun 23, 2021, 1:09:27 AM6/23/21
to Android Building
Hi All

i have a problem with the ABI update.

i changed the android.hardware.radio@1.0 
So, i'm getting an error when building aosp.

FAILED: out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm64_armv8-a_vendor_shared/android.har...@1.0.so.abidiff
(prebuilts/clang-tools/linux-x86/bin/header-abi-diff -allow-unreferenced-changes -allow-unreferenced-elf-symbol-changes -lib android.hardware.radio@1.0 -arch arm64 -o 'out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm64_armv8-a_vendor_shared/android.har...@1.0.so.abidiff' -new 'out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm64_armv8-a_vendor_shared/android.har...@1.0.so.lsdump' -old prebuilts/abi-dumps/vndk/29/64/arm64_armv8-a/source-based/android.har...@1.0.so.lsdump)|| (echo 'error: Please update ABI references with: $ANDROID_BUILD_TOP/development/vndk/tools/header-checker/utils/create_reference_dumps.py  -l android.hardware.radio@1.0' && (mkdir -p $DIST_DIR/abidiffs && cp 'out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm64_armv8-a_vendor_shared/android.har...@1.0.so.abidiff' $DIST_DIR/abidiffs/) && exit 1)
******************************************************
error: VNDK library: android.hardware.radio@1.0's ABI has INCOMPATIBLE CHANGES Please check compatibility report at: out/soong/.intermediates/hardware/interfaces/radio/1.0/android.hardware.radio@1.0/android_arm64_armv8-a_vendor_shared/android.har...@1.0.so.abidiff
******************************************************
error: Please update ABI references with: $ANDROID_BUILD_TOP/development/vndk/tools/header-checker/utils/create_reference_dumps.py  -l android.hardware.radio@1.0

i attempted to update ABI.
/development/vndk/tools/header-checker/utils/create_reference_dumps.py  -l android.hardware.radio@1.0

FAILED]
making libs for aosp_arm_ab-userdebug
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_arm_ab
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-142-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QKQ1.201109.002
OUT_DIR=out
============================================
[100% 773/773] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -globFile out/soong/.bootstrap/build-globs.ninja -o out/soong/build.ninja Android.bp
Clang SA is not enabled
error: external/nos/host/generic/citadel/updater/Android.bp:17:1: "citadel_updater" depends on undefined module "libnos_citadeld_proxy"
15:34:56 soong bootstrap failed with: exit status 1
Traceback (most recent call last):
  File "./development/vndk/tools/header-checker/utils/create_reference_dumps.py", line 254, in <module>
    main()
  File "./development/vndk/tools/header-checker/utils/create_reference_dumps.py", line 245, in main
    num_processed = create_source_abi_reference_dumps_for_all_products(args)
  File "./development/vndk/tools/header-checker/utils/create_reference_dumps.py", line 199, in create_source_abi_reference_dumps_for_all_products
    args.build_variant, targets)
  File "./development/vndk/tools/header-checker/utils/create_reference_dumps.py", line 89, in make_libs_for_product
    make_libraries(product, variant, targets, libs, llndk_mode)
  File "./development/vndk/tools/header-checker/utils/utils.py", line 156, in make_libraries
    lsdump_paths = read_lsdump_paths(product, variant, targets, build=True)
  File "./development/vndk/tools/header-checker/utils/utils.py", line 226, in read_lsdump_paths
    make_targets(product, variant, [lsdump_paths_file_path])
  File "./development/vndk/tools/header-checker/utils/utils.py", line 146, in make_targets
    subprocess.check_call(make_cmd, cwd=AOSP_DIR)
  File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['build/soong/soong_ui.bash', '--make-mode', '-j', 'TARGET_PRODUCT=aosp_arm_ab', 'TARGET_BUILD_VARIANT=userdebug', 'out/target/product/generic_arm_ab/lsdump_paths.txt']' returned non-zero exit status 1

how can i solve this problem?

* there was no error in soong/build.ninja when the AOSP build.
* [error: external/nos/host/generic/citadel/updater/Android.bp:17:1: "citadel_updater" depends on undefined module "libnos_citadeld_proxy"]
  resolving this error constantly results in other errors.


Thanks a lot
donghee

Dan Willemsen

unread,
Jun 23, 2021, 1:57:41 AM6/23/21
to android-...@googlegroups.com
I'd recommend contacting your source code provider about that build issue, as that doesn't appear to be AOSP, and the AOSP-based targets don't seem to work in that source tree. 

In general, the idea behind API/ABI stability is that it's stable across Android releases, so it's not something that can just be changed in a version that has already been released. If you intended to make changes to the radio ABI, you'd need to work with one or more of AOSP/Google/your source provider to add any newly required APIs into a new version of that API (in which case someone would be running those commands in an AOSP tree, where they would work).

If you didn't make changes to the ABI, you'd want to debug that issue further rather than attempting to update the ABI to fix your build issue.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
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 android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/ec2f530a-182b-4b33-86ce-738b9b20a7f9n%40googlegroups.com.

figs개발자

unread,
Jul 1, 2021, 2:53:55 PM7/1/21
to Android Building
Thank you.
i was missing  TARGET_PRODUCT.
it's working now


2021년 6월 23일 수요일 오후 2시 57분 41초 UTC+9에 Dan Willemsen님이 작성:
Reply all
Reply to author
Forward
0 new messages