Всем привет! Я новичок, для учебы понадобилось собрать AOSP(весь проект). Сделал всё по документации, ветку решил оставить main, делал repo init с флагом –partial-clone. Инициализация и синхронизация прошли нормально, но сборка падает с этими ошибками:
#
18:50:33 Build sandboxing disabled due to nsjail error.
============================================
PLATFORM_VERSION_CODENAME=Baklava
PLATFORM_VERSION=Baklava
TARGET_PRODUCT=aosp_cf_x86_64_phone
TARGET_BUILD_VARIANT=eng
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=silvermont
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=silvermont
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.11.0-13-generic-x86_64-Ubuntu-24.10
HOST_CROSS_OS=windows
BUILD_ID=MAIN
OUT_DIR=out
============================================
[100% 125/125] analyzing Android.bp files and generating ninja file at out/soong/build.aosp_cf_x86_64_phone.ninja
FAILED: out/soong/build.aosp_cf_x86_64_phone.ninja
cd "$(dirname "out/host/linux-x86/bin/soong_build")" && BUILDER="$PWD/$(basename "out/host/linux-x86/bin/soong_build")" && cd / && env -i "$BUILDER" --top "$TOP" --soong_out
"out/soong" --out "out" --soong_variables out/soong/soong.aosp_cf_x86_64_phone.variables -o out/soong/build.aosp_cf_x86_64_phone.ninja --kati_suffix -aosp_cf_x86_64_phone -l
out/.module_paths/Android.bp.list --available_env out/soong/soong.environment.available --used_env out/soong/soong.environment.used.aosp_cf_x86_64_phone.build Android.bp
error: external/rust/cxx/Android.bp:67:1: "libcxxbridge05" depends on undefined module "rust_static_cc_lib_defaults".
Or did you mean ["trusty_security_vm_launcher"]?
error: cts/tests/tests/simpleperf/Android.bp:6:1: "CtsSimpleperfTestCases" depends on undefined module "simpleperf_static_libs".
Or did you mean ["CtsSampleHostTestCases" "CtsSimpleCpuTestCases" "libsimpleparcelable_ndk"]?
error: build/make/tools/ide_query/cc_analyzer/Android.bp:21:1: "ide_query_cc_analyzer_defaults" depends on undefined module "llvm-build-host-tools-defaults".
Or did you mean ["//build/bazel/examples/gensrcs" "//build/soong/cmd/extract_apks" "//build/soong/provenance/tools" "//build/soong/tradefed_modules" "build_tools_runtime_properties"
"mobile_data_downloader_license" "num-bigint_test_tests_biguint" "prebuilt_android.net.ipsec.ike" "prebuilt_art.module.public.api" "prebuilt_ats_olc_server_deploy" "prebuilt_com.andr
oid.conscrypt" "prebuilt_displaycompat-service" "prebuilt_error_prone_core_jars" "prebuilt_firebase-encoders-jar" "prebuilt_fonts_xml0xc02bb0f108" "prebuilt_jetbrains-annotations" "p
rebuilt_libandroidicu_headers" "prebuilt_libartpalette-headers" "prebuilt_mockito4-prebuilt-jar" "prebuilt_note_memtag_heap_sync" "prebuilt_okhttp-tests-nojarjar" "prebuilt_robolectr
ic-ant-1.8.0" "prebuilt_service-healthfitness" "prebuilt_symbol-processing-api" "prebuilt_transport-runtime-aar" "prebuilt_tv-lib-dagger-android"]?
error: packages/modules/Nfc/libnfc-nci/src/rust/Android.bp:94:1: "libnfc_hidl_hal_cxx" depends on undefined module "rust_static_cc_lib_defaults".
Or did you mean ["trusty_security_vm_launcher"]?
18:50:53 soong bootstrap failed with: exit status 1
#### failed to build some targets (21 seconds) ####
Система Ubuntu 24, на внешнем жёстком диске, выделено около 600 Гб. Я пробовал сносить рабочую папку и скачивать заново(два раза, не помогло), один раз пробовал выбрать ветку android_14.0.0_r75, тоже не помогло. В документации была также эта инструкция, тоже не получилось. Я так понимаю, что проблема в том, что не хватает некоторых библиотек rust? Полностью мои действия выглядят так:
mkdir aosp
cd aosp
repo init --partial-clone -b main -u https://android.googlesource.com/a/platform/manifest
repo sync -c -j $(nproc) --fail-fast
source build/envsetup.sh
lunch aosp_cf_x86_64-trunk_staging-eng
m