Skip to content

Instantly share code, notes, and snippets.

@subashz
Created July 10, 2020 18:22
Show Gist options
  • Save subashz/bd540dd676767b5f06149b068b1348cb to your computer and use it in GitHub Desktop.
Save subashz/bd540dd676767b5f06149b068b1348cb to your computer and use it in GitHub Desktop.
destroy_build_var_cache:unset:5: var_cache_ ANDROID_BUILD_PATHS OUT_DIR print report_config TARGET_ARCH TARGET_BUILD_VARIANT TARGET_DEVICE TARGET_GCC_VERSION
TARGET_PLATFORM_VERSION TARGET_PRODUCT TARGET_2ND_ARCH 2ND_TARGET_GCC_VERSION : invalid parameter name
: ZSH seems to be causing the problem, switch to bash
@subashz
Copy link
Author

subashz commented Jul 11, 2020

/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/subash/dev/os/docker-lineageos/android/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/subash/dev/os/docker-lineageos/android/out/host/linux-x86/bin/sepolicy-analyze /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ "userdebug" = "user" -a -s /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo "==========" 1>&2; echo "ERROR: permissive domains not allowed in user builds" 1>&2; echo "List of invalid domains:" 1>&2; cat /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/subash/dev/os/docker-lineageos/android/out/target/product/on7xelte/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/samsung/on7xelte/sepolicy/installd.te:5:ERROR 'Duplicate declaration of type' at token ';' on line 45923:

device/samsung/on7xelte/sepolicy/property.te:7:ERROR 'Duplicate declaration of type' at token ';' on line 45235:

This happens because, I also have those defination in common tree.
So, remove that declaration from one of them. either from main device tree or from the common-tree.

@subashz
Copy link
Author

subashz commented Jul 11, 2020

firmware/gnss_firmware.bin.gen.S:5: Error: file not found: firmware/gnss_firmware.bin
make[2]: *** [/home/subash/dev/os/docker-lineageos/android/kernel/samsung/exynos7870/scripts/Makefile.build:293: firmware/gnss_firmware.bin.gen.o] Error 1

Chomod -R 777 * for the whole kernel folder.

Also seems like my .repo folder was owned my other local user in my laptop .
So, I need to Chomod -R 777 * .repo folder and
also the entier lineage source code.
//

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment