Getting build error on Hikey960 platform build


#1

HI, I am getting below error, and i don’t have any idea why I am getting on base AOSP code with platform hikey960-userdebug, let me know suggest is there am I missing some thing?

Build Error:
[ 9% 8023/81066] link out/soong/.bootstrap/bpfix/obj/a.out
[ 9% 8024/81066] test github.com/google/blueprint/microfactory
FAILED: out/soong/.bootstrap/blueprint-microfactory/test/test.passed
out/soong/.bootstrap/bin/gotestrunner -p ./build/blueprint/microfactory -f out/soong/.bootstrap/blueprint-microfactory/test/test.passed – out/soong/.bootstrap/blueprint-microfactory/test/test -test.short
— FAIL: TestRebuildAfterRemoveOut (0.69s)
microfactory_test.go:191: Output timestamp should be different, but both were 2018-06-18 17:23:04 +0530 IST
— FAIL: TestRebuildAfterPartialBuild (0.74s)
microfactory_test.go:191: Output timestamp should be different, but both were 2018-06-18 17:23:04 +0530 IST
— FAIL: TestRebuildAfterGoChange (0.57s)
microfactory_test.go:191: Output timestamp should be different, but both were 2018-06-18 17:23:05 +0530 IST
FAIL
[ 9% 8025/81066] cp out/soong/host/linux-x86/bin/bpfix
[ 9% 8026/81066] //system/netd/bpfloader:bpfloader clang++ BpfLoader.cpp
[ 9% 8027/81066] //system/core/bootstat:bootstat clang++ bootstat.cpp
ninja: build stopped: subcommand failed.
17:23:09 ninja failed with: exit status 1
make: *** [run_soong_ui] Error 1
~
~


#2

Could you please try to remove out/soong and retry building ?


#3

Hi Loic, I have removed , but still the same result.

how can I make clean build of hikey960 with AOSP version 8 and above? what the steps to follow?
if you mention clean steps which will be help full for me.
thanks.


#4

You can try

repo sync
make clean