This was a bug -- the build failed when there wasn't a vendor partition (which isn't a built configuration anymore inside Google to due Treble). You should be able to cherry-pick https://android-review.googlesource.com/c/platform/build/+/970728 to fix the problem.
- Dan On Mon, Oct 28, 2019 at 9:48 PM 姜有川 <jiangyouchuan....@gmail.com> wrote: > Hello, > I encountered the following error when compiling android-10.0.0_r1 under > Ubuntu 16.04: > ============================================ > PLATFORM_VERSION_CODENAME=REL > PLATFORM_VERSION=10 > TARGET_PRODUCT=mini_emulator_x86_64 > TARGET_BUILD_VARIANT=userdebug > TARGET_BUILD_TYPE=release > TARGET_ARCH=x86_64 > TARGET_ARCH_VARIANT=x86_64 > TARGET_2ND_ARCH=x86 > TARGET_2ND_ARCH_VARIANT=x86_64 > HOST_ARCH=x86_64 > HOST_2ND_ARCH=x86 > HOST_OS=linux > HOST_OS_EXTRA=Linux-4.15.0-66-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=QP1A.190711.019 > OUT_DIR=out > ============================================ > [ 0% 3/67918] build > out/target/product/mini-emulator-x86_64/obj/ETC/fs_config_dirs_system_intermediates/fs_config_dirs_system > FAILED: > out/target/product/mini-emulator-x86_64/obj/ETC/fs_config_dirs_system_intermediates/fs_config_dirs_system > /bin/bash -c "build/make/tools/fs_config/fs_config_generator.py fsconfig > --aid-header system/core/include/private/android_filesystem_config.h > --capability-header bionic/libc/kernel/uapi/linux/capability.h > --partition system --all-partitions --dirs --out_file > out/target/product/mini-emulator-x86_64/obj/ETC/fs_config_dirs_system_intermediates/fs_config_dirs_system > /dev/null" > usage: fs_config_generator.py fsconfig [-h] --aid-header AID_HEADER > --capability-header > CAPABILITY_HEADER > --partition PARTITION > [--all-partitions ALL_PARTITIONS] > [--files] [--dirs] --out_file > OUT_FILE > fsconfig [fsconfig ...] > fs_config_generator.py fsconfig: error: argument --all-partitions: > expected one argument > [ 0% 6/67918] build > out/target/product/mini-emulator-x86_64/obj/ETC/fs_config_files_system_intermediates/fs_config_files_system > FAILED: > out/target/product/mini-emulator-x86_64/obj/ETC/fs_config_files_system_intermediates/fs_config_files_system > /bin/bash -c "build/make/tools/fs_config/fs_config_generator.py fsconfig > --aid-header system/core/include/private/android_filesystem_config.h > --capability-header bionic/libc/kernel/uapi/linux/capability.h > --partition system --all-partitions --files --out_file > out/target/product/mini-emulator-x86_64/obj/ETC/fs_config_files_system_intermediates/fs_config_files_system > /dev/null" > usage: fs_config_generator.py fsconfig [-h] --aid-header AID_HEADER > --capability-header > CAPABILITY_HEADER > --partition PARTITION > [--all-partitions ALL_PARTITIONS] > [--files] [--dirs] --out_file > OUT_FILE > fsconfig [fsconfig ...] > fs_config_generator.py fsconfig: error: argument --all-partitions: > expected one argument > 09:49:47 ninja failed with: exit status 1 > make: *** [run_soong_ui] 错误 1 > > I hope to get your help. Thank you very much. > Best, > Jiang > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to android-building@googlegroups.com > To unsubscribe from this group, send email to > android-building+unsubscr...@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-building+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-building/3292548b-da9e-4d67-9030-f95bd6d17726%40googlegroups.com > <https://groups.google.com/d/msgid/android-building/3292548b-da9e-4d67-9030-f95bd6d17726%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@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-building+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CALQgHd%3Dei%3DEDusD88VkoTVgEd6mm2-bRiKP-%3D4FrOU18b1n%2BaA%40mail.gmail.com.