Getting build error Android Oreo build for HiKey960 platform

Hi ,
I have downloaded android oreo APOS code (android-8.1.0_r33) and try to build for hikey960-userdebug, but getting the below error? can some one help me to resolve? why I am getting this error?

1 warning generated.
[ 6% 1750/26276] test microfactory
FAILED: out/soong/.bootstrap/microfactory/test/test.passed
out/soong/.bootstrap/bin/gotestrunner -p ./build/soong/cmd/microfactory -f out/s oong/.bootstrap/microfactory/test/test.passed – out/soong/.bootstrap/microfacto ry/test/test -test.short
— FAIL: TestRebuildAfterPartialBuild (0.44s)
microfactory_test.go:191: Output timestamp should be different, but both were 2018-06-15 10:00:53 +0530 IST
— FAIL: TestRebuildAfterMainChange (0.49s)
microfactory_test.go:191: Output timestamp should be different, but both were 2018-06-15 10:00:53 +0530 IST
— FAIL: TestRebuildAfterGoChange (0.35s)
microfactory_test.go:191: Output timestamp should be different, but both were 2018-06-15 10:00:54 +0530 IST
FAIL
[ 6% 1753/26276] //external/llvm/lib/…libLLVMCore clang++ Verifier.cpp [arm]
ninja: build stopped: subcommand failed.
10:00:56 ninja failed with: exit status 1

failed to build some targets (08:52 (mm:ss))

Stable branch is not supported. You should try again with MASTER branch, or pick a “known good” manifest.

Also, it would be better to post questions about hikey960 in the hikey960 forum section.

Thanks for replay, but after downloading the manifest file i.e hikey960.xml , I am trying to run the command repo sync -j24 -m hikey960.xml . it is not getting success and giving me error : not found manifest file.

root@iicbuildsrv37:/samba/iicbuildsrv37/android# repo sync -j4 -m …/hikey960.xml
fatal: manifest …/hikey960.xml not found

but manifest file is available:
root@iicbuildsrv37:/samba/iicbuildsrv37# ls
android hikey960.xml
root@iicbuildsrv37:/samba/iicbuildsrv37# cd android

Let me ask you this; how many '.' are there in '..'?

Are you certain that that parameter even supports relative paths?

Hmm, not sure if that -m parameter even works.
Do this;

cd {android root}
wget https://github.com/96boards/aosp-known-good-manifests/raw/master/latest/hikey960.xml -O .repo/manifests/default.xml
repo sync

Hi,

Thanks for the replay , After following below steps getting some more build errors? what might be the problem?

cd {android root}
wget https://github.com/96boards/aosp-known-good-manifests/raw/master/latest/hikey960.xml -O .repo/manifests/default.xml
repo sync

source build/envsetup.sh
lunch
Which would you like? [aosp_arm-eng] 34

============================================
PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=hikey960
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-Ubuntu-14.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC-MR1
OUT_DIR=out

root@iicbuildsrv37:/samba/iicbuildsrv37/HiKEY960# make -j24

PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=hikey960
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a73
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-24-generic-x86_64-Ubuntu-14.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OC-MR1
OUT_DIR=out

[1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
[58/59] glob prebuilts/ndk/cpufeatures.bp
[83/83] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-hikey960-cleanspec.ninja is missing, regenerating…
out/build-hikey960.ninja is missing, regenerating…
[545/844] including system/sepolicy/Android.mk …
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[844/844] including tools/tradefederation/core/Android.mk …
build/make/core/base_rules.mk:295: warning: overriding commands for target out/target/product/hikey960/obj/lib/android.hardware.renderscript@1.0-impl.so' build/make/core/base_rules.mk:295: warning: ignoring old commands for target out/target/product/hikey960/obj/lib/android.hardware.renderscript@1.0-impl.so’
build/make/core/base_rules.mk:334: warning: overriding commands for target out/target/product/hikey960/obj/lib/android.hardware.renderscript@1.0-impl.so.toc' build/make/core/base_rules.mk:334: warning: ignoring old commands for target out/target/product/hikey960/obj/lib/android.hardware.renderscript@1.0-impl.so.toc’
build/make/core/base_rules.mk:295: warning: overriding commands for target out/target/product/hikey960/obj_arm/lib/android.hardware.renderscript@1.0-impl.so' build/make/core/base_rules.mk:295: warning: ignoring old commands for target out/target/product/hikey960/obj_arm/lib/android.hardware.renderscript@1.0-impl.so’
build/make/core/base_rules.mk:334: warning: overriding commands for target out/target/product/hikey960/obj_arm/lib/android.hardware.renderscript@1.0-impl.so.toc' build/make/core/base_rules.mk:334: warning: ignoring old commands for target out/target/product/hikey960/obj_arm/lib/android.hardware.renderscript@1.0-impl.so.toc’
[ 99% 801/802] glob tools/tradefederation/core/remote/src/**/*.java
[ 1% 1155/78474] Fix manifest: out/target/common/obj/APPS/BasicDreams_intermediates/manifest/AndroidManifest.xml
FAILED: out/target/common/obj/APPS/BasicDreams_intermediates/manifest/AndroidManifest.xml
/bin/bash -c “packages/screensavers/Basic/AndroidManifest.xml out/target/common/obj/APPS/BasicDreams_intermediates/manifest/AndroidManifest.xml --minSdkVersion Q”
/bin/bash: packages/screensavers/Basic/AndroidManifest.xml: Permission denied
[ 1% 1178/78474] target C++: libminui <= bootable/recovery/minui/resources.cpp
ninja: build stopped: subcommand failed.
10:16:19 ninja failed with: exit status 1

failed to build some targets (01:29 (mm:ss))

root@iicbuildsrv37:/samba/iicbuildsrv37/HiKEY960#

That says “Permission denied”. I’m not sure what to suggest. That error would seem to be caused by your build system, not the source code.