[Xiaomi Redmi Note 4 [Snapdragon] ROMs, Kernels, Re] vksalian:
Fix build errors - MIDO

Hi,

I tried to compile from source, but I got following errors. Please let me know how to fix it.

--------------------------------------------

vksalian@vksalian-HP-Notebook:/media/vksalian/Windows/ProgramData/Desktop/OREO/xenonhd$ make -j4

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=8.0.0

TARGET_PRODUCT=xenonhd_mido

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=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.4.0-101-generic-x86_64-with-Ubuntu-16.04-xenial

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=OPR3.170623.013

OUT_DIR=/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out

============================================

[38/38] bootstrap /media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/soong/.minibootstrap/build.ninja.in

[4/4] /media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/so...ows/Users/Public/Desktop/OREO/xenonhd/out/soong/.bootstrap/build.ninja

[633/634] glob vendor/xenonhd/build/soong/Android.bp

[41/41] /media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/...salian/Windows/Users/Public/Desktop/OREO/xenonhd/out/soong/build.ninja

/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/build-xenonhd_mido.ninja is missing, regenerating...

Checking build tools versions...

[9/1017] including ./cts/Android.mk ...

cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory

build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory

build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory

cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory

cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory

cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory

cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory

[139/1017] including ./device/xiaomi/mido/Android.mk ...

build/core/binary.mk:39: warning: hal3-test-app uses kernel headers, but does not depend on them!

[369/1017] including ./frameworks/av/media/libaaudio/Android.mk ...

frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples

frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples

[403/1017] including ./frameworks/base/Android.mk ...

./frameworks/base/Android.mk:869: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory

./frameworks/base/Android.mk:878: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory

./frameworks/base/Android.mk:883: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory

./frameworks/base/Android.mk:888: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory

[441/1017] including ./frameworks/opt/hardware/Android.mk ...

./frameworks/opt/hardware/Android.mk:21: warning: FindEmulator: find: `hardware/cyanogen/cmhw': No such file or directory

[575/1017] including ./hardware/qcom/wlan-caf/Android.mk ...

build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!

build/core/binary.mk:39: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!

[581/1017] including ./lineage-sdk/Android.mk ...

./lineage-sdk/Android.mk:152: warning: FindEmulator: find: `lineage-sdk/dummy': No such file or directory

build/core/droiddoc.mk:132: warning: FindEmulator: find: `build/tools/droiddoc/templates-sdk': No such file or directory

[644/1017] including ./packages/apps/XenonOTA/Android.mk ...

cp: cannot stat '/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/ota_conf': No such file or directory

[755/1017] including ./system/sepolicy/Android.mk ...

./system/sepolicy/Android.mk:95: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version

[1017/1017] including ./vendor/xiaomi/mido/Android.mk ...

build/core/Makefile:54: warning: Duplicate header copy: /media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/target/product/mido/obj/include/cld80211-lib/cld80211_lib.h

build/core/Makefile:54: warning: Defined in: hardware/qcom/wlan-caf/cld80211-lib/Android.mk hardware/qcom/wlan-caf/cld80211-lib/Android.mk

No private recovery resources for TARGET_DEVICE mido

platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SystemUITests

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests

platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests

platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh

test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory

test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory

test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory

build/core/base_rules.mk:467: warning: overriding commands for target `/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/host/linux-x86/cts/android-cts/testcases/libcrash-jni.so'

build/core/base_rules.mk:467: warning: ignoring old commands for target `/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/host/linux-x86/cts/android-cts/testcases/libcrash-jni.so'

build/core/base_rules.mk:467: warning: overriding commands for target `/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/target/product/mido/testcases/libcrash-jni/libcrash-jni.so'

build/core/base_rules.mk:467: warning: ignoring old commands for target `/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/target/product/mido/testcases/libcrash-jni/libcrash-jni.so'

build/core/base_rules.mk:467: warning: overriding commands for target `/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/target/product/mido/testcases/hello_world_test/hello_world_test'

build/core/base_rules.mk:467: warning: ignoring old commands for target `/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/target/product/mido/testcases/hello_world_test/hello_world_test'

./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'

./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'

./test/vts/utils/python/coverage/Android.mk:28: warning: overriding commands for target `default'

./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old commands for target `default'

build/core/Makefile:34: warning: overriding commands for target `/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/target/product/mido/system/bin/wcnss_service'

build/core/base_rules.mk:375: warning: ignoring old commands for target `/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/target/product/mido/system/bin/wcnss_service'

[ 99% 1115/1116] glob vendor/*/*/Android.bp

ninja: error: 'prebuilts/lineage-sdk/api/7.txt', needed by '/media/vksalian/Windows/Users/Public/Desktop/OREO/xenonhd/out/target/common/obj/PACKAGING/checkpublicapi-lineage-last-timestamp', missing and no known rule to make it

03:05:56 ninja failed with: exit status 1

build/core/main.mk:21: recipe for target 'run_soong_ui' failed

make: *** [run_soong_ui] Error 1

#### make failed to build some targets (01:02:35 (hh:mm:ss)) ####

vksalian@vksalian-HP-Notebook:/media/vksalian/Windows/ProgramData/Desktop/OREO/xenonhd$

--------------------------------------------