Hikey960 AOSP build failed


I am trying to build aosp for hikey960 board but i am getting machine learning error,getting tensor flow library missing…
please check attachment…
please help me out…!
Screenshot from 2018-02-09 17:54:42|690x101

There is no link, you can use web tools like pastebin to share your logs.

Hi Loic,
this is my error log

FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -l out/.module_paths/Android.bp.list -b out/soong -n out -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
error: kernel/tests/net/test/Android.bp:1:1: “kernel_net_tests” depends on undefined module “scapy”
error: frameworks/ml/nn/runtime/test/benchmark/libnnbenchmark/Android.bp:15:1: “libnnbenchmark” depends on undefined module “libtflite_static”
error: frameworks/ml/nn/common/Android.bp:23:1: “libneuralnetworks_common” depends on undefined module “tensorflow_headers”
error: frameworks/ml/nn/common/Android.bp:23:1: “libneuralnetworks_common” depends on undefined module “libtflite_kernel_utils”
error: frameworks/ml/nn/common/Android.bp:151:1: “svdf_test” depends on undefined module “tensorflow_headers”
error: frameworks/ml/nn/common/Android.bp:130:1: “lstm_test” depends on undefined module “tensorflow_headers”
error: frameworks/ml/nn/common/Android.bp:118:1: “lsh_projection_test” depends on undefined module “tensorflow_headers”
ninja: build stopped: subcommand failed.
15:22:32 soong bootstrap failed with: exit status 1

failed to build some targets (3 seconds)

Do you run following commands?

. ./build/envsetup.sh
lunch hikey960-userdebug

note: firstly run make clean

Thanks tesmnorth
I run all three command…
But I didn’t run make clean
I thinks some machine learning library issue but couldn’t find the solution…

You dont need to install special library to your build environment. Today I builded branch which is android-8.1.0_r14 successfully. Try these:

sudo apt-get install android-tools-adb android-tools-fastboot autoconf \
	automake bc bison build-essential cscope curl device-tree-compiler flex \
	ftp-upload gdisk iasl libattr1-dev libc6:i386 libcap-dev libfdt-dev \
	libftdi-dev libglib2.0-dev libhidapi-dev libncurses5-dev \
	libpixman-1-dev libssl-dev libstdc++6:i386 libtool libz1:i386 make \
	mtools netcat python-crypto python-serial python-wand unzip uuid-dev \
	xdg-utils xterm xz-utils zlib1g-dev \
	ncurses-dev realpath android-tools-fsutils dosfstools libxml2-utils
mkdir ~/aosp
cd ~/aosp
repo init -u https://android.googlesource.com/platform/manifest -b android-8.1.0_r14
repo sync -j$(nproc)
wget https://dl.google.com/dl/android/aosp/arm-hikey960-OPR-cf4e0c80.tgz
tar xzf arm-hikey960-OPR-cf4e0c80.tgz
. ./build/envsetup.sh
lunch hikey960-userdebug
make -j$(nproc)

Open pin 1 and 3 then flash.

Thanks tesmnorth,
I will do this and let you know the results


Hi tesmnorth,

while fetching i am getting error as follow…
curl: (22) The requested URL returned error: 404 Not Found

Please continue it. Dont close repo sync command.

Hi tesmnorth,

Thanks tesmnorth I am able to build AOSP and my hikey board also working fine…
Thanks once again…

Jishan Sayyad