Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Master branch compilation error #12

Open
ric96 opened this issue Dec 14, 2018 · 5 comments
Open

Android Master branch compilation error #12

ric96 opened this issue Dec 14, 2018 · 5 comments

Comments

@ric96
Copy link
Contributor

ric96 commented Dec 14, 2018

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)) ####

@ric96
Copy link
Contributor Author

ric96 commented Dec 18, 2018

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

@docularxu
Copy link
Contributor

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

@Ehsan-aghapour
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants