[Galaxy S 4 Q&A, Help & Troubleshooting] aviallon:
Hi, I'm trying to build CM13 for my device, but I can't achieve it. I'm always stuck on the same bug :

make[1]: entrant dans le répertoire « /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/kernel/samsung/jf »
target Export Resources: org.cyanogenmod.platform-res (/media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/package-export.apk)
Install: /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/host/linux-x86/framework/jack.jar
Install: /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/host/linux-x86/bin/conscrypt_generate_constants
device/samsung/jf-common/sepolicy/vold.te:2:ERROR 'unknown type mmc_block_device' at token ';' on line 26830:
allow vold mmc_block_device:blk_file { open read write ioctl getattr };
#line 1 "device/samsung/jf-common/sepolicy/vold.te"
checkpolicy: error(s) encountered while parsing configuration
make: *** [/media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/target/product/jfltexx/obj/ETC/sepolicy_intermediates/sepolicy] Erreur 1
make: *** Attente des tâches non terminées....
Launching Jack server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/host/linux-x86/framework/jack-launcher.jar -cp /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
[B]device/samsung/jf-common/sepolicy/vold.te:2:ERROR 'unknown type mmc_block_device' at token ';' on line 27120:
#line 1 "device/samsung/jf-common/sepolicy/vold.te"
allow vold mmc_block_device:blk_file { open read write ioctl getattr };[/B]
checkpolicy: error(s) encountered while parsing configuration
make: *** [/media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/target/product/jfltexx/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Erreur 1
GEN /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/target/product/jfltexx/obj/KERNEL_OBJ/Makefile
drivers/usb/otg/Kconfig:187:warning: leading whitespace ignored
drivers/media/video/msm-jf/Kconfig:114:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:108:warning: choice value used outside its choice group
drivers/media/video/msm-jf/Kconfig:119:warning: choice value used outside its choice group
drivers/media/video/msm/Kconfig:113:warning: choice value used outside its choice group
#
# configuration written to .config
#
make[1]: quittant le répertoire « /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/kernel/samsung/jf »
make[1]: entrant dans le répertoire « /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/kernel/samsung/jf »
# In case value of PACKAGES is empty.
CHK include/linux/version.h
make[1]: quittant le répertoire « /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/kernel/samsung/jf »
make: quittant le répertoire « /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm »

Here is a part of my log. I'm building on Ubuntu 14.04 LTS.

I've tried to comment the line in vold.te, but then I have a other errors, more complicated ones, and I think that the mmc_blocl_device is essential for my phone to work correctly. So, if there is anybody who can help me, then please, help me !

PS : Here is the log after commenting the line in vold :

make[1]: entrant dans le répertoire « /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/kernel/samsung/jf »
libsepol.context_from_record: type mmc_block_device is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:mmc_block_device:s0 to sid
/media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/target/product/jfltexx/obj/ETC/file_contexts_intermediates/file_contexts: line 770 has invalid context u:object_r:mmc_block_device:s0
Invalid context file found in /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/target/product/jfltexx/obj/ETC/file_contexts_intermediates/file_contexts
make: *** [/media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/target/product/jfltexx/obj/ETC/file_contexts_intermediates/file_contexts] Erreur 5
make: *** Destruction du fichier « /media/aviallon/90d74afb-6307-4c31-a774-2abeaa4086b4/aviallon/cm/out/target/product/jfltexx/obj/ETC/file_contexts_intermediates/file_contexts »
make: *** Attente des tâches non terminées....