[Droid Ultra Android Development] flyingfishfinger:
I'm currently trying this on the latest Ubuntu 18.04 LTS for fun, there seem to be some merges regarding BT and maybe they'll fix my bugs.

Anyway, download & sync seemed to have gone fine, but I get an error pretty quickly when I start the build:

root@ubuntu:~/android/lineage# brunch obake
including vendor/cm/vendorsetup.sh
Looking for dependencies

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20181015-UNOFFICIAL-obake
TARGET_PRODUCT=lineage_obake
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-36-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_BUILD_TYPE=release
BUILD_ID=MOI10E
OUT_DIR=/root/android/lineage/out
WITH_SU=true
============================================

make: Entering directory '/root/android/lineage'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20181015-UNOFFICIAL-obake
TARGET_PRODUCT=lineage_obake
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-36-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_BUILD_TYPE=release
BUILD_ID=MOI10E
OUT_DIR=/root/android/lineage/out
WITH_SU=true
============================================
Checking build tools versions...
find: ‘src/com/android/cts/verifier/backup’: No such file or directory
build/core/base_rules.mk:559: warning: overriding recipe for target '/root/android/lineage/out/target/product/obake/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/lineage/out/target/product/obake/root/res/images/charger/battery_fail.png'
find: ‘dummy’: No such file or directory
build/core/Makefile:46: warning: overriding recipe for target '/root/android/lineage/out/target/product/obake/system/bin/rild'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/lineage/out/target/product/obake/system/bin/rild'
build/core/Makefile:46: warning: overriding recipe for target '/root/android/lineage/out/target/product/obake/system/lib/libril.so'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/lineage/out/target/product/obake/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE obake
Export includes file: external/libcxx/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/SHARED_LIBRARIES/libc++_intermediates/export_includes
Export includes file: system/core/libmincrypt/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
Export includes file: external/compiler-rt/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes
Header: /root/android/lineage/out/host/linux-x86/obj/include/libexpat/expat.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libexpat/expat.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libexpat/expat_external.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/bits.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/config.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/debug.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/linkhash.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/arraylist.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_config.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_inttypes.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_util.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_object.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_tokener.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_object_iterator.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libjson/inc/json_c_version.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/xf86drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/xf86drmMode.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm_fourcc.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm_mode.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/drm_sarea.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/i915_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/mach64_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/mga_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/nouveau_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/qxl_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/r128_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/savage_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/sis_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/tegra_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/via_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/vmwgfx_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/nouveau.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_bo.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_cs.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_surface.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_bo_gem.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_cs_gem.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_bo_int.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/radeon_cs_int.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/r600_pci_ids.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/rockchip_drm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/rockchip_drmif.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/tegra.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libdrm/libkms.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/selinux.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/label.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/context.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/avc.h
Header: /root/android/lineage/out/target/product/obake/obj/include/selinux/android.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/selinux.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/label.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/context.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/avc.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/selinux/android.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterMgrLoggerForward.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterMgrPlatformConnector.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterMgrFullConnector.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/SelectionCriterionTypeInterface.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/SelectionCriterionInterface.h
Header: /root/android/lineage/out/target/product/obake/obj/include/parameter/ParameterHandle.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterMgrLoggerForward.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterMgrPlatformConnector.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterMgrFullConnector.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/SelectionCriterionTypeInterface.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/SelectionCriterionInterface.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/parameter/ParameterHandle.h
Header: /root/android/lineage/out/target/product/obake/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c.h
Header: /root/android/lineage/out/target/product/obake/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c-private.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/sepol/handle.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/sepol/policydb.h
Header: /root/android/lineage/out/host/linux-x86/obj/include/sepol/cil.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/eas.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/eas_types.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/eas_reverb.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/jet.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: /root/android/lineage/out/target/product/obake/obj/include/libwpa_client/wpa_ctrl.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libwpa_client/qca-vendor.h
Header: /root/android/lineage/out/target/product/obake/obj/include/media_resource_manager/MediaResourceArbitrator.h
Header: /root/android/lineage/out/target/product/obake/obj/include/media_resource_manager/OMX_adaptor.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-audio/libalsa-intf/alsa_audio.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-audio/libalsa-intf/alsa_ucm.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-audio/libalsa-intf/msm8960_use_cases.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/gralloc_priv.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/copybit.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/copybit_priv.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/display_config.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/mdp_version.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/qdMetaData.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/IQService.h
Header: /root/android/lineage/out/target/product/obake/obj/include/qcom/display/IQClient.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Audio.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Component.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_ContentPipe.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Core.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Image.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Index.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_IVCommon.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Other.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_QCOMExtns.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Types.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_Video.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/qc_omx_common.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/qc_omx_component.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/qc_omx_msg.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_AudioExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_AudioIndexExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_CoreExt.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_CoreExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_FileFormatExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_IVCommonExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_SourceExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_VideoExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/OMX_IndexExt.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QOMX_StreamingExtensions.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QCMediaDefs.h
Header: /root/android/lineage/out/target/product/obake/obj/include/mm-core/omxcore/QCMetaData.h
Header: /root/android/lineage/out/target/product/obake/obj/include/libril/ril_ex.h
Header: /root/android/lineage/out/target/product/obake/obj/include/sdk/softap/include/qsap_api.h
Header: /root/android/lineage/out/target/product/obake/obj/include/sdk/softap/include/qsap.h
Header: /root/android/lineage/out/target/product/obake/obj/include/dataservices/rmnetctl/librmnetctl.h
Header: /root/android/lineage/out/target/product/obake/obj/include/time-services/time_genoff.h
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/import_includes
Export includes file: external/libcxxabi/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/export_includes
Export includes file: external/libcxx/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/export_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/import_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
Export includes file: system/core/mkbootimg/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/export_includes
Export includes file: build/libs/host/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/export_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/import_includes
Export includes file: build/tools/acp/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/export_includes
Notice file: external/compiler-rt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcompiler_rt-extras.a.txt
Notice file: external/compiler-rt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcompiler_rt-extras.a.txt
Notice file: system/core/libmincrypt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libmincrypt.a.txt
Notice file: system/core/libmincrypt/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
Import includes file: /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/dtbToolMoto_intermediates/import_includes
Export includes file: device/motorola/msm8960dt-common/dtbtool/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/dtbToolMoto_intermediates/export_includes
Export includes file: system/core/libcutils/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/SHARED_LIBRARIES/libcutils_intermediates/export_includes
Export includes file: system/core/liblog/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/SHARED_LIBRARIES/liblog_intermediates/export_includes
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/import_includes
Export includes file: system/core/liblog/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/export_includes
Export includes file: system/core/cpio/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/export_includes
Notice file: system/core/libcutils/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcutils.so.txt
Notice file: system/core/liblog/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/liblog.so.txt
Notice file: system/core/liblog/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/liblog.a.txt
Notice file: system/core/liblog/NOTICE -- /root/android/lineage/out/host/linux-x86/obj/NOTICE_FILES/src//lib/liblog.a.txt
Yacc: checkpolicy <= external/selinux/checkpolicy/policy_parse.y
prebuilts/misc/linux-x86/bison/bison -d -v -o /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/selinux/checkpolicy/policy_parse.y
Export includes file: external/selinux/libsepol/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/export_includes
touch /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
Import includes file: /root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/import_includes
Lex: checkpolicy <= external/selinux/checkpolicy/policy_scan.l
echo '#ifndef 'policy_parse_h > /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#define 'policy_parse_h >> /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
cat /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
Export includes file: external/selinux/checkpolicy/Android.mk -- /root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/export_includes
Lex: libsepol <= external/selinux/libsepol/cil/src/cil_lexer.l
build/core/binary.mk:670: recipe for target '/root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp' failed
make: *** [/root/android/lineage/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Aborted (core dumped)
make: *** Waiting for unfinished jobs....
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
build/core/binary.mk:670: recipe for target '/root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp' failed
make: *** [/root/android/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libsepol_intermediates/cil/src/cil_lexer.cpp] Aborted (core dumped)
make: Leaving directory '/root/android/lineage'

#### make failed to build some targets (01:50 (mm:ss)) ####

Any ideas?

Thanks,

R

EDIT: Oof, I think this is a problem with libwxgtk2.8-dev. No idea how to get it for Ubuntu 18.04.