我正在尝试在Mac OS High Sierra(10.13.6)上构建Android 10 rom,但是即使在建立了此处所述的构建环境https://source.android.com/setup/build/initializing之后,我仍得到以下输出
including vendor/aosp/vendorsetup.sh
ccache found and CCACHE_EXEC has been set to : /usr/local/bin/ccache
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Trying dependencies-only mode on a non-existing device tree?
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
CUSTOM_VERSION=PixelExperience_evert-10.0-20200721-2149-UNOFFICIAL
TARGET_PRODUCT=aosp_evert
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200705.002
OUT_DIR=/Volumes/Disk2/roms/peplus/out
PRODUCT_SOONG_NAMESPACES=vendor/google-customization/apex/apex_images vendor/motorola/evert device/motorola/evert vendor/motorola/sdm660-common device/motorola/sdm660-common hardware/qcom-caf/msm8998 hardware/qcom-caf/common/fwk-detect
============================================
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
CUSTOM_VERSION=PixelExperience_evert-10.0-20200721-2149-UNOFFICIAL
TARGET_PRODUCT=aosp_evert
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=QQ3A.200705.002
OUT_DIR=/Volumes/Disk2/roms/peplus/out
PRODUCT_SOONG_NAMESPACES=vendor/google-customization/apex/apex_images vendor/motorola/evert device/motorola/evert vendor/motorola/sdm660-common device/motorola/sdm660-common hardware/qcom-caf/msm8998 hardware/qcom-caf/common/fwk-detect
============================================
Environment variable BUILD_NUMBER was modified (dfd121530b => dd64c2817e), regenerating...
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Environment variable BUILD_NUMBER was modified (dfd121530b => dd64c2817e), regenerating...
[100% 2/2] initializing build system ...
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
[ 0% 4/461] including art/Android.mk ...
art/build/Android.common.mk:51: warning: unsupported HOST_ARCH=x86_64
[ 99% 460/461] finishing build rules ...
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'LauncherRotationStressTest'
[100% 461/461] writing build rules ...
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service.rc'
build/make/core/base_rules.mk:525: warning: ignoring old commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service.rc'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/lib64/com.fingerprints.extension@1.0.so'
build/make/core/base_rules.mk:510: warning: ignoring old commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/lib64/com.fingerprints.extension@1.0.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/system/lib/libbtconfigstore.so'
build/make/core/base_rules.mk:510: warning: ignoring old commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/system/lib/libbtconfigstore.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/system/lib64/libbtconfigstore.so'
build/make/core/base_rules.mk:510: warning: ignoring old commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/system/lib64/libbtconfigstore.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/lib/vendor.qti.hardware.btconfigstore@1.0.so'
build/make/core/base_rules.mk:510: warning: ignoring old commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/lib/vendor.qti.hardware.btconfigstore@1.0.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/lib64/libsensorndkbridge.so'
build/make/core/base_rules.mk:510: warning: ignoring old commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/lib64/libsensorndkbridge.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/lib64/vendor.qti.hardware.btconfigstore@1.0.so'
build/make/core/base_rules.mk:510: warning: ignoring old commands for target `/Volumes/Disk2/roms/peplus/out/target/product/evert/vendor/lib64/vendor.qti.hardware.btconfigstore@1.0.so'
/Volumes/Disk2/roms/peplus/out/target/product/evert/obj/CONFIG/kati_packaging/dist.mk was modified, regenerating...
[ 0% 471/82618] Building Kernel Config
FAILED: /Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ/.config
/bin/bash -c "(PATH=/Volumes/Disk2/roms/peplus/prebuilts/clang/host/darwin-x86/clang-r353983d/bin:\$PATH LD_LIBRARY_PATH=/Volumes/Disk2/roms/peplus/prebuilts/clang/host/darwin-x86/clang-r353983d/lib64:\$LD_LIBRARY_PATH PATH=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/common/perl-base /Volumes/Disk2/roms/peplus/prebuilts/build-tools/darwin-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/Disk2/roms/peplus/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/motorola/msm8998 O=/Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/local/bin/ccache clang\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= lineageos_evert_defconfig ) && (if [ ! -z \"\" ]; then echo \"Overriding kernel config with ''\"; echo >> /Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ/.config; PATH=/Volumes/Disk2/roms/peplus/prebuilts/clang/host/darwin-x86/clang-r353983d/bin:\$PATH LD_LIBRARY_PATH=/Volumes/Disk2/roms/peplus/prebuilts/clang/host/darwin-x86/clang-r353983d/lib64:\$LD_LIBRARY_PATH PATH=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/common/perl-base /Volumes/Disk2/roms/peplus/prebuilts/build-tools/darwin-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/Disk2/roms/peplus/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/motorola/msm8998 O=/Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/local/bin/ccache clang\" oldconfig; fi ) && (PATH=/Volumes/Disk2/roms/peplus/prebuilts/clang/host/darwin-x86/clang-r353983d/bin:\$PATH LD_LIBRARY_PATH=/Volumes/Disk2/roms/peplus/prebuilts/clang/host/darwin-x86/clang-r353983d/lib64:\$LD_LIBRARY_PATH PATH=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/common/perl-base /Volumes/Disk2/roms/peplus/prebuilts/build-tools/darwin-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/Disk2/roms/peplus/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/motorola/msm8998 O=/Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/local/bin/ccache clang\" savedefconfig ) && (if [ ! -z \"\" ]; then echo \"Using additional config ''\"; kernel/motorola/msm8998/scripts/kconfig/merge_config.sh -m -O /Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ /Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ/.config kernel/motorola/msm8998/arch/arm64/configs/; PATH=/Volumes/Disk2/roms/peplus/prebuilts/clang/host/darwin-x86/clang-r353983d/bin:\$PATH LD_LIBRARY_PATH=/Volumes/Disk2/roms/peplus/prebuilts/clang/host/darwin-x86/clang-r353983d/lib64:\$LD_LIBRARY_PATH PATH=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/Disk2/roms/peplus/prebuilts/tools-custom/common/perl-base /Volumes/Disk2/roms/peplus/prebuilts/build-tools/darwin-x86/bin/make -j4 CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/Disk2/roms/peplus/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/motorola/msm8998 O=/Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/Disk2/roms/peplus/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" CLANG_TRIPLE=aarch64-linux-gnu- CC=\"/usr/local/bin/ccache clang\" KCONFIG_ALLCONFIG=/Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make: Entering directory '/Volumes/Disk2/roms/peplus/kernel/motorola/msm8998'
make[1]: Entering directory '/Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ'
GEN ./Makefile
HOSTCC scripts/basic/fixdep
couldn't understand kern.osversion `17.7.0'
i686-apple-darwin11-gcc: error trying to exec 'as': execvp: No such file or directory
make[2]: *** [scripts/Makefile.host:91: scripts/basic/fixdep] Error 1
make[1]: *** [/Volumes/Disk2/roms/peplus/kernel/motorola/msm8998/Makefile:446: scripts_basic] Error 2
make[1]: Leaving directory '/Volumes/Disk2/roms/peplus/out/target/product/evert/obj/KERNEL_OBJ'
make: *** [Makefile:152: sub-make] Error 2
make: Leaving directory '/Volumes/Disk2/roms/peplus/kernel/motorola/msm8998'
19:02:32 ninja failed with: exit status 1
#### failed to build some targets (12:52 (mm:ss)) ####
我正在使用对磁盘敏感的APFS格式化的外部驱动器。 有任何想法吗?预先谢谢你
答案 0 :(得分:1)
好吧,我进行编译的工作是从/ usr / bin /复制as
(以及后来的ls
,因为它引起了类似的问题)到prebuilts / gcc / darwin-x86 / host / i686-apple-darwin-4.2.1 / libexec / gcc / i686-apple-darwin11 / 4.2.1 /替换了我尝试执行的as
和ls
快捷方式无处可寻(或者类似的意思,我是从西班牙语翻译过来的)