我已经找到了一个与我的问题有关的问题,但是相应线程中给出的答案并不能解决我的问题。 我在与此线程的启动器完全相同的设备上遇到了完全相同的问题: Error when build LineageOS: "make: *** [ninja_wrapper] Error 1"
但是,添加后
export LC_ALL=C
到我的bashrc
文件,该错误不断发生。
我的终端如下:
olzge@olzge-ThinkPad-T430:~/android/lineage$ brunch A6020
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/lenovo/A6020
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20180825-UNOFFICIAL-A6020
TARGET_PRODUCT=lineage_A6020
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-30-generic-x86_64-with-LinuxMint-19-tara
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/olzge/android/lineage/out
============================================
make: Entering directory '/home/olzge/android/lineage'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20180825-UNOFFICIAL-A6020
TARGET_PRODUCT=lineage_A6020
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-30-generic-x86_64-with-LinuxMint-19-tara
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/olzge/android/lineage/out
============================================
Running kati to generate build-lineage_A6020.ninja...
Environment variable BUILD_NUMBER was modified (9b5fedf8b5 => 4781c2e193), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20180825-UNOFFICIAL-A6020
TARGET_PRODUCT=lineage_A6020
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-30-generic-x86_64-with-LinuxMint-19-tara
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/olzge/android/lineage/out
============================================
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
find: '/home/olzge/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': No such file or directory
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/lenovo/A6020/proprietary/app/TimeService/TimeService.apk:system/app/TimeService/TimeService.apk, use BUILD_PREBUILT instead!
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/lenovo/A6020/proprietary/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk:system/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk, use BUILD_PREBUILT instead!
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/lenovo/A6020/proprietary/vendor/app/ims/ims.apk:system/vendor/app/ims/ims.apk, use BUILD_PREBUILT instead!
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/lenovo/A6020/proprietary/vendor/app/imssettings/imssettings.apk:system/vendor/app/imssettings/imssettings.apk, use BUILD_PREBUILT instead!
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/app/TimeService/TimeService.apk'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/app/TimeService/TimeService.apk'
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk'
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/bin/rild'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/bin/rild'
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/framework/qcnvitems.jar'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/framework/qcnvitems.jar'
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/framework/qcrilhook.jar'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/framework/qcrilhook.jar'
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/lib/hw/keystore.default.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/lib/hw/keystore.default.so'
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/lib64/hw/keystore.default.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/lib64/hw/keystore.default.so'
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/vendor/lib64/libHevcSwDecoder.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/vendor/lib64/libHevcSwDecoder.so'
build/core/Makefile:34: warning: overriding commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/vendor/lib64/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/olzge/android/lineage/out/target/product/A6020/system/vendor/lib64/mediadrm/libdrmclearkeyplugin.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/lenovo/A6020/proprietary/bin/rild', needed by '/home/olzge/android/lineage/out/target/product/A6020/system/bin/rild', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/olzge/android/lineage'
#### make failed to build some targets (27 seconds) ####
olzge@olzge-ThinkPad-T430:~/android/lineage$