96boards-hikey / aosp-device-linaro-hikey

This repository is based off https://android.googlesource.com/device/linaro/hikey/
12 stars 16 forks source link

Android Master branch compilation error #12

Open ric96 opened 5 years ago

ric96 commented 5 years ago

Lunch Details:

$ lunch hikey970-userdebug

============================================
PLATFORM_VERSION_CODENAME=Q
PLATFORM_VERSION=Q
TARGET_PRODUCT=hikey970
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-4.19.6-300.fc29.x86_64-x86_64-Ubuntu-16.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PI
OUT_DIR=out
============================================

ERROR:

[ 34% 30771/88593] build out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
FAILED: out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c         30 -o out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/policy.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp neverallow -w -f out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/policy_2.conf ||       ( echo \"\" 1>&2;         echo \"sepolicy-analyze failed. This is most likely due to the use\" 1>&2;      echo \"of an expanded attribute in a neverallow assertion. Please fix\" 1>&2;       echo \"the policy.\" 1>&2;      exit 1 ) ) && (touch out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp ) && (mv out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows )"
device/linaro/hikey/sepolicy/hostapd.te:4:ERROR 'unknown type hostapd' at token ';' on line 48765:
# hostapd no longer directly accesses /data outside /data/vendor.
typeattribute hostapd data_between_core_and_vendor_violators;
checkpolicy:  error(s) encountered while parsing configuration
12:25:38 ninja failed with: exit status 1

#### failed to build some targets (29:48 (mm:ss)) ####
pundiramit commented 5 years ago

This should help. https://android-git.linaro.org/device/linaro/dragonboard410c.git/commit/?h=dragonboard&id=dbe30cae1ef227860089e1840aeb1cd140c0003a

ric96 commented 5 years ago

@pundiramit thanks, this looks promising. I'll send in a pr once build finishes.

docularxu commented 5 years ago

hi, @ric96 how does it goes, can the 970 build succeed? With this change, does wifi still work?

Ehsan-aghapour commented 5 years ago

Hi, Now it compile seccussfully! But wifi does not work. Also it seems that it is slow, should I added driver or something for gpu, wifi, ... before??

Thanks, Ehsan

hemangpandhi commented 4 years ago

Is there any update on this? Does android Q work well on. Hikey 970?