Sohamlad7 / android_device_motorola_cedric

31 stars 38 forks source link

Dependency errors #9

Closed pgaskin closed 6 years ago

pgaskin commented 6 years ago

While building, I get the following error:

[531/1032] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:40: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
build/core/binary.mk:40: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
[1032/1032] including ./vendor/qcom/opensource/dataservices/Android.mk ...
hardware/qcom/fm/fm_hci/Android.mk: error: libfm-hci (SHARED_LIBRARIES android-arm) missing vendor.qti.hardware.fm@1.0 (SHARED_LIBRARIES android-arm) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/qcom/media-caf/msm8937/mm-video-v4l2/vidc/venc/Android.mk: error: libOmxSwVencMpeg4 (SHARED_LIBRARIES android-arm) missing libMpeg4SwEncoder (SHARED_LIBRARIES android-arm) 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/core/main.mk:728: error: exiting from previous errors.
15:52:10 ckati failed with: exit status 1

If I set ALLOW_MISSING_DEPENDENCIES to true, I get this error:

[44/44] bootstrap /home/patrick/android/lineage/out/soong/.minibootstrap/build.ninja.in
[4/4] /home/patrick/android/lineage/out/soong/.bootstrap/bin/minibp /home/patrick/android/lineage/out/soong/.bootstrap/build.ninja
[862/863] glob vendor/qcom/opensource/interfaces/display/config/1.0/Android.bp
[56/56] /home/patrick/android/lineage/out/soong/.bootstrap/bin/soong_build /home/patrick/android/lineage/out/soong/build.ninja
/home/patrick/android/lineage/out/build-lineage_cedric-dist_target-files-package.ninja is missing, regenerating...
[531/1032] including ./hardware/qcom/wlan-caf/Android.mk ...
build/core/binary.mk:40: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
build/core/binary.mk:40: warning: libwifi-hal-qcom uses kernel headers, but does not depend on them!
[1032/1032] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/Makefile:54: warning: Duplicate header copy: /home/patrick/android/lineage/out/target/product/cedric/obj/include/qcom/display/qd_utils.h
build/core/Makefile:54: warning: Defined in: hardware/qcom/display-caf/msm8937/libqdutils/../common.mk hardware/qcom/display-caf/msm8937/libqdutils/../common.mk
build/core/Makefile:54: warning: Duplicate header copy: /home/patrick/android/lineage/out/target/product/cedric/obj/include/cld80211-lib/cld80211_lib.h
build/core/Makefile:54: warning: Defined in: hardware/qcom/wlan-caf/cld80211-lib/Android.mk hardware/qcom/wlan-caf/cld80211-lib/Android.mk
No private recovery resources for TARGET_DEVICE cedric
build/core/Makefile:34: warning: overriding commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/lib/libldacBT_abr.so'
build/core/base_rules.mk:391: warning: ignoring old commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/lib/libldacBT_abr.so'
build/core/Makefile:34: warning: overriding commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/lib/libldacBT_enc.so'
build/core/base_rules.mk:391: warning: ignoring old commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/lib/libldacBT_enc.so'
build/core/Makefile:34: warning: overriding commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/lib/libqsap_sdk.so'
build/core/base_rules.mk:391: warning: ignoring old commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/lib/libqsap_sdk.so'
build/core/Makefile:34: warning: overriding commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/vendor/lib/libdrmutils.so'
build/core/base_rules.mk:391: warning: ignoring old commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/vendor/lib/libdrmutils.so'
build/core/Makefile:34: warning: overriding commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:391: warning: ignoring old commands for target `/home/patrick/android/lineage/out/target/product/cedric/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
[ 99% 1409/1410] glob vendor/*/*/Android.bp
[  0% 268/72245] target thumb C++: libinit_cedric <= device/motorola/cedric/init/init_cedric.cpp
FAILED: /home/patrick/android/lineage/out/target/product/cedric/obj/STATIC_LIBRARIES/libinit_cedric_intermediates/init_cedric.o 
/bin/bash -c "PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++    -I system/core/init -I device/motorola/cedric/init -I /home/patrick/android/lineage/out/target/product/cedric/obj/STATIC_LIBRARIES/libinit_cedric_intermediates -I /home/patrick/android/lineage/out/target/product/cedric/gen/STATIC_LIBRARIES/libinit_cedric_intermediates -I libnativehelper/include_deprecated \$(cat /home/patrick/android/lineage/out/target/product/cedric/obj/STATIC_LIBRARIES/libinit_cedric_intermediates/import_includes)  -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem /home/patrick/android/lineage/out/target/product/cedric/obj/include -isystem bionic/libc/arch-arm/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c  -fno-exceptions -Wno-multichar -ffunction-sections -fdata-sections -funwind-tables -fstack-protector-strong -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums -no-canonical-prefixes -DNDEBUG -g -Wstrict-aliasing=2 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -msoft-float -mfloat-abi=softfp -mfpu=neon -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -D__ARM_FEATURE_LPAE=1 -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin  -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -fvisibility-inlines-hidden -std=gnu++14 -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing  -fno-rtti -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Wall -DANDROID_TARGET=\\\"msm8937\\\"  -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type   -MD -MF /home/patrick/android/lineage/out/target/product/cedric/obj/STATIC_LIBRARIES/libinit_cedric_intermediates/init_cedric.d -o /home/patrick/android/lineage/out/target/product/cedric/obj/STATIC_LIBRARIES/libinit_cedric_intermediates/init_cedric.o device/motorola/cedric/init/init_cedric.cpp"
device/motorola/cedric/init/init_cedric.cpp:53:5: error: use of undeclared identifier 'property_set'; did you mean 'android::init::property_set'?
    property_set("ro.hw.dualsim", dualsim.c_str());
    ^~~~~~~~~~~~
    android::init::property_set
system/core/init/property_service.h:39:10: note: 'android::init::property_set' declared here
uint32_t property_set(const std::string& name, const std::string& value);
         ^
device/motorola/cedric/init/init_cedric.cpp:56:9: error: use of undeclared identifier 'property_set'; did you mean 'android::init::property_set'?
        property_set("persist.radio.multisim.config", "dsds");
        ^~~~~~~~~~~~
        android::init::property_set
system/core/init/property_service.h:39:10: note: 'android::init::property_set' declared here
uint32_t property_set(const std::string& name, const std::string& value);
         ^
device/motorola/cedric/init/init_cedric.cpp:58:9: error: use of undeclared identifier 'property_set'; did you mean 'android::init::property_set'?
        property_set("persist.radio.multisim.config", "");
        ^~~~~~~~~~~~
        android::init::property_set
system/core/init/property_service.h:39:10: note: 'android::init::property_set' declared here
uint32_t property_set(const std::string& name, const std::string& value);
         ^
device/motorola/cedric/init/init_cedric.cpp:69:5: error: use of undeclared identifier 'property_set'; did you mean 'android::init::property_set'?
    property_set("ro.product.model", sku.c_str());
    ^~~~~~~~~~~~
    android::init::property_set
system/core/init/property_service.h:39:10: note: 'android::init::property_set' declared here
uint32_t property_set(const std::string& name, const std::string& value);
         ^
device/motorola/cedric/init/init_cedric.cpp:74:5: error: use of undeclared identifier 'property_set'; did you mean 'android::init::property_set'?
    property_set("ro.hw.device", device.c_str());
    ^~~~~~~~~~~~
    android::init::property_set
system/core/init/property_service.h:39:10: note: 'android::init::property_set' declared here
uint32_t property_set(const std::string& name, const std::string& value);
         ^
device/motorola/cedric/init/init_cedric.cpp:75:5: error: use of undeclared identifier 'property_set'; did you mean 'android::init::property_set'?
    property_set("ro.hw.radio", radio.c_str());
    ^~~~~~~~~~~~
    android::init::property_set
system/core/init/property_service.h:39:10: note: 'android::init::property_set' declared here
uint32_t property_set(const std::string& name, const std::string& value);
         ^
device/motorola/cedric/init/init_cedric.cpp:76:5: error: use of undeclared identifier 'property_set'; did you mean 'android::init::property_set'?
    property_set("ro.hw.fps", "true");
    ^~~~~~~~~~~~
    android::init::property_set
system/core/init/property_service.h:39:10: note: 'android::init::property_set' declared here
uint32_t property_set(const std::string& name, const std::string& value);
         ^
7 errors generated.
[  0% 273/72245] Building Kernel Config
make: Entering directory '/home/patrick/android/lineage/kernel/motorola/msm8937'
make[1]: Entering directory '/home/patrick/android/lineage/out/target/product/cedric/obj/KERNEL_OBJ'
  HOSTCC  scripts/basic/fixdep
  GEN     ./Makefile
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
drivers/soc/qcom/Kconfig:380:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:385:warning: choice value used outside its choice group
arch/arm/configs/cedric_defconfig:662:warning: override: reassigning to symbol MODULE_SIG
arch/arm/configs/cedric_defconfig:663:warning: override: reassigning to symbol MODULE_SIG_FORCE
arch/arm/configs/cedric_defconfig:664:warning: override: reassigning to symbol MODULE_SIG_SHA512
arch/arm/configs/cedric_defconfig:669:warning: override: reassigning to symbol TOUCHSCREEN_SYNAPTICS_DSX_CORE_v21
arch/arm/configs/cedric_defconfig:670:warning: override: reassigning to symbol TOUCHSCREEN_SYNAPTICS_DSX_RMI_DEV_v21
arch/arm/configs/cedric_defconfig:671:warning: override: reassigning to symbol TOUCHSCREEN_SYNAPTICS_DSX_FW_UPDATE_v21
arch/arm/configs/cedric_defconfig:672:warning: override: reassigning to symbol TOUCHSCREEN_SYNAPTICS_DSX_CORE_v26
arch/arm/configs/cedric_defconfig:673:warning: override: reassigning to symbol TOUCHSCREEN_SYNAPTICS_DSX_RMI_DEV_v26
arch/arm/configs/cedric_defconfig:674:warning: override: reassigning to symbol TOUCHSCREEN_SYNAPTICS_DSX_FW_UPDATE_v26
arch/arm/configs/cedric_defconfig:676:warning: override: reassigning to symbol TOUCHSCREEN_MAXIM_STI
arch/arm/configs/cedric_defconfig:693:warning: override: reassigning to symbol FB_MSM_MDSS_XLOG_DEBUG
arch/arm/configs/cedric_defconfig:718:warning: override: reassigning to symbol IP_MULTICAST
arch/arm/configs/cedric_defconfig:721:warning: override: reassigning to symbol INET_LRO
arch/arm/configs/cedric_defconfig:725:warning: override: reassigning to symbol INET_XFRM_MODE_BEET
arch/arm/configs/cedric_defconfig:728:warning: override: reassigning to symbol NF_CONNTRACK_TFTP
arch/arm/configs/cedric_defconfig:729:warning: override: reassigning to symbol INET_DIAG_DESTROY
arch/arm/configs/cedric_defconfig:754:warning: override: reassigning to symbol MAGIC_SYSRQ
arch/arm/configs/cedric_defconfig:757:warning: override: reassigning to symbol KEYS
arch/arm/configs/cedric_defconfig:760:warning: override: reassigning to symbol TOUCHSCREEN_ATMEL_MXT
arch/arm/configs/cedric_defconfig:761:warning: override: reassigning to symbol DUAL_ROLE_USB_INTF
arch/arm/configs/cedric_defconfig:762:warning: override: reassigning to symbol RADIO_SILABS
arch/arm/configs/cedric_defconfig:763:warning: override: reassigning to symbol LEDS_QPNP_WLED
arch/arm/configs/cedric_defconfig:766:warning: override: reassigning to symbol QPNP_SMBCHARGER
arch/arm/configs/cedric_defconfig:773:warning: override: reassigning to symbol CRYPTO_SHA2_ARM_CE
arch/arm/configs/cedric_defconfig:786:warning: override: reassigning to symbol IKCONFIG_PROC
arch/arm/configs/cedric_defconfig:800:warning: override: reassigning to symbol MSM_ISPIF
arch/arm/configs/cedric_defconfig:804:warning: override: TICK_CPU_ACCOUNTING changes choice state
arch/arm/configs/cedric_defconfig:806:warning: override: reassigning to symbol IP_NF_MATCH_RPFILTER
arch/arm/configs/cedric_defconfig:807:warning: override: reassigning to symbol IP6_NF_MATCH_RPFILTER
arch/arm/configs/cedric_defconfig:808:warning: override: reassigning to symbol DM_UEVENT
arch/arm/configs/cedric_defconfig:809:warning: override: reassigning to symbol QPNP_TYPEC
arch/arm/configs/cedric_defconfig:810:warning: override: reassigning to symbol APSS_CORE_EA
arch/arm/configs/cedric_defconfig:811:warning: override: reassigning to symbol REGULATOR_MSM_GFX_LDO
arch/arm/configs/cedric_defconfig:812:warning: override: reassigning to symbol REGULATOR_CPR4_APSS
arch/arm/configs/cedric_defconfig:813:warning: override: reassigning to symbol MSM_SDE_ROTATOR
arch/arm/configs/cedric_defconfig:814:warning: override: reassigning to symbol FB_MSM_MDSS_HDMI_PANEL
arch/arm/configs/cedric_defconfig:815:warning: override: reassigning to symbol MSM_TZ_SMMU
arch/arm/configs/cedric_defconfig:818:warning: override: reassigning to symbol SENSORS_MOTOSH
arch/arm/configs/cedric_defconfig:819:warning: override: reassigning to symbol SENSORS_MOTOSH_HEADSET
arch/arm/configs/cedric_defconfig:822:warning: override: reassigning to symbol QPNP_SMBCHARGER
arch/arm/configs/cedric_defconfig:823:warning: override: reassigning to symbol QPNP_SMBCHARGER_MMI
arch/arm/configs/cedric_defconfig:825:warning: override: reassigning to symbol GPIO_ARIZONA
arch/arm/configs/cedric_defconfig:826:warning: override: reassigning to symbol MFD_ARIZONA
arch/arm/configs/cedric_defconfig:827:warning: override: reassigning to symbol MFD_ARIZONA_SPI
arch/arm/configs/cedric_defconfig:828:warning: override: reassigning to symbol REGULATOR_ARIZONA
arch/arm/configs/cedric_defconfig:829:warning: override: reassigning to symbol SND_SOC_ARIZONA_M
arch/arm/configs/cedric_defconfig:830:warning: override: reassigning to symbol MFD_MARLEY
arch/arm/configs/cedric_defconfig:832:warning: override: reassigning to symbol SND_SOC_CS35L34
arch/arm/configs/cedric_defconfig:833:warning: override: reassigning to symbol SND_SOC_OPALUM
arch/arm/configs/cedric_defconfig:834:warning: override: reassigning to symbol MODS_CODEC_BUS
arch/arm/configs/cedric_defconfig:835:warning: override: reassigning to symbol SND_SOC_MODS_CODEC_SHIM
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
#
# configuration written to .config
#
make[1]: Leaving directory '/home/patrick/android/lineage/out/target/product/cedric/obj/KERNEL_OBJ'
make: Leaving directory '/home/patrick/android/lineage/kernel/motorola/msm8937'
make: Entering directory '/home/patrick/android/lineage/kernel/motorola/msm8937'
make[1]: Entering directory '/home/patrick/android/lineage/out/target/product/cedric/obj/KERNEL_OBJ'
  GEN     ./Makefile
scripts/kconfig/conf --savedefconfig=defconfig Kconfig
drivers/soc/qcom/Kconfig:380:warning: choice value used outside its choice group
drivers/soc/qcom/Kconfig:385:warning: choice value used outside its choice group
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8994 && SND_SOC_MSM8996 && SND_SOC_MSM8X16 && SND_SOC_MDM9607 && SND_SOC_MDM9640) selects SND_SOC_WCD9330 which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && WCD9330_CODEC)
make[1]: Leaving directory '/home/patrick/android/lineage/out/target/product/cedric/obj/KERNEL_OBJ'
make: Leaving directory '/home/patrick/android/lineage/kernel/motorola/msm8937'
ninja: build stopped: subcommand failed.
16:28:18 ninja failed with: exit status 1

#### failed to build some targets (05:13 (mm:ss)) ####

I am building from the latest 32-bit branch with your build manifest.

I will try and see what I can do to get this to build.

pgaskin commented 6 years ago

Update: I think there are two issues:

  1. The mp4 encoding libs (not sure exactly what yet, they seem to be present in the vendor dir, but it seems to be missing them).
  2. The init code. I think I have fixed it by adding android::init:: to the property_set calls.
pgaskin commented 6 years ago

Now I have another issue with sepolicy:

[ 18% 11283/59773] build /home/patrick/android/lineage/out/target/product/cedric/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/patrick/android/lineage/out/target/product/cedric/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.conf
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy:  policy configuration loaded
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy:  writing CIL to /home/patrick/android/lineage/out/target/product/cedric/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil
[ 18% 11284/59773] build /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil
FAILED: /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil 
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy -C -M -c 30 -o /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil.tmp /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy.conf ) && (grep -Fxv -f /home/patrick/android/lineage/out/target/product/cedric/obj/FAKE/selinux_policy_intermediates/reqd_policy_mask.cil /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil.tmp > /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy_raw.cil )"
device/motorola/cedric/sepolicy/file.te:46:ERROR 'Duplicate declaration of type' at token ';' on line 50338:
type sysfs_sensors, fs_type, sysfs_type;
type sysfs_fpc, fs_type, sysfs_type;
checkpolicy:  error(s) encountered while parsing configuration
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/nonplat_sepolicy.cil_intermediates/nonplat_policy.conf
[ 18% 11285/59773] build /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy 
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy -M -c       30 -o /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/patrick/android/lineage/out/host/linux-x86/bin/sepolicy-analyze /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s /home/patrick/android/lineage/out/target/product/cedric/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/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2;        exit 1;         fi ) && (mv /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/motorola/cedric/sepolicy/file.te:46:ERROR 'Duplicate declaration of type' at token ';' on line 66679:
type sysfs_fpc, fs_type, sysfs_type;
type sysfs_sensors, fs_type, sysfs_type;
checkpolicy:  error(s) encountered while parsing configuration
/home/patrick/android/lineage/out/host/linux-x86/bin/checkpolicy:  loading policy configuration from /home/patrick/android/lineage/out/target/product/cedric/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
[ 18% 11289/59773] //external/selinux/libsepol:libsepol clang src/booleans.c [linux x86]
ninja: build stopped: subcommand failed.
17:30:17 ninja failed with: exit status 1

#### failed to build some targets (25:28 (mm:ss)) ####

I will try commenting out the following line in file.te:


type sysfs_sensors, fs_type, sysfs_type;
Sohamlad7 commented 6 years ago

32bit branch needs to be updated i haven't yet updated it .. Soon I'll do it

pgaskin commented 6 years ago

Ok, then is the 64bit branch usable yet?

Sohamlad7 commented 6 years ago

Yes 64bit is usable

pgaskin commented 6 years ago

So it does not introduce any new bugs compared to 32-bit?

And I've almost got 32-bit building now.

Sohamlad7 commented 6 years ago

No new bugs same like 32bit

pgaskin commented 6 years ago

I've finished the 32bit build, just waiting for it to finish signing, and I need to test the mp4 encoding, as there were a few warnings about it. Do you want me to submit a PR with the changes?