[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] BorkenStyler:
Hey guys,

I just tried making a updated rom based on the guide on the first post on my ubuntu VM which i setup a couple of months and worked at that time, but now i get this error:

max@max-VirtualBox:~/android/system$ brunch i9305
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160830-UNOFFICIAL-i9305
TARGET_PRODUCT=cm_i9305
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.2.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=MOB30Z
OUT_DIR=/home/max/android/system/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160830-UNOFFICIAL-i9305
TARGET_PRODUCT=cm_i9305
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.2.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=MOB30Z
OUT_DIR=/home/max/android/system/out
============================================
"ebtables is disabled on this build"
awk: line 1: syntax error at or near ,
make: Entering directory `/home/max/android/system'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/obj/include/libsecmm/SsbSipMfcApi.h'
packages/apps/AudioFX/tests/Android.mk:26: *** SIGNING MODIOFX WITH TEST KEY ***
build/core/base_rules.mk:559: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/root/res/images/charger/battery_fail.png'
find: `dummy': No such file or directory
PRODUCT_COPY_FILES device/samsung/smdk4412-common/rootdir/init.trace.rc:root/init.trace.rc ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/rootdir/ueventd.smdk4x12.rc:root/ueventd.smdk4x12.rc ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/audio_effects.conf:system/etc/audio_effects.conf ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/gps.conf:system/etc/gps.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libfimc.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libfimc.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libfimg.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libfimg.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libhwconverter.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libhwconverter.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libhwjpeg.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libhwjpeg.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libTVOut.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libTVOut.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/etc/gps.conf'
build/core/Makefile:46: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/etc/gps.conf'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libril.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libril.so'
PRODUCT_COPY_FILES vendor/samsung/i9305/proprietary/system/lib/libsecnativefeature.so:system/lib/libsecnativefeature.so ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libsecril-client.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libsecril-client.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libloc_eng.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libloc_eng.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libgps.utils.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/libgps.utils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/max/android/system/out/target/product/i9305/system/lib/hw/gps.default.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/max/android/system/out/target/product/i9305/system/lib/hw/gps.default.so'
PRODUCT_COPY_FILES vendor/samsung/i9305/proprietary/system/lib/libTVOut.so:system/lib/libTVOut.so ignored.
No private recovery resources for TARGET_DEVICE i9305
/home/max/android/system/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/max/android/system/out/target/product/i9305/obj/ETC/sepolicy_intermediates/policy.conf
target thumb C: libc_dns <= bionic/libc/dns/net/hosts_cache.c
target thumb C: libc_dns <= bionic/libc/dns/net/sethostent.c
target StaticLib: libc_bionic (/home/max/android/system/out/target/product/i9305/obj/STATIC_LIBRARIES/libc_bionic_intermediates/libc_bionic.a)
libsepol.report_failure: neverallow on line 355 of external/sepolicy/app.te (or line 4424 of policy.conf) violated by allow system_app sysfs:file { write };
libsepol.check_assertions: 1 neverallow failures occurred
Error while expanding policy
make: *** [/home/max/android/system/out/target/product/i9305/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/max/android/system'

#### make failed to build some targets (39 seconds) ####

Does anyone know what is wrong and how i can fix it ?

By the way, what do i have to learn to be able to understand

this and maybe work on it on my own (cm14?) ?