[Samsung Galaxy Tab A series Questions & Answers] srgrusso:
Ok i made it a little further. I found the missing vendor files in the t585 vendor tree. Now I get the following error.

ind: ‘/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/binary.mk:37: libwifi-hal-qcom uses kernel headers, but does not depend on them!
build/core/binary.mk:37: libwifi-hal-qcom uses kernel headers, but does not depend on them!
PRODUCT_COPY_FILES frameworks/base/data/keyboards/AVRCP.idc:system/usr/idc/AVRCP.idc ignored.
PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty.idc:system/usr/idc/qwerty.idc ignored.
PRODUCT_COPY_FILES frameworks/base/data/keyboards/qwerty2.idc:system/usr/idc/qwerty2.idc ignored.
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/bin/mcDriverDaemon'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/bin/mcDriverDaemon'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/bin/rild'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/bin/rild'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/etc/bluetooth/bt_did.conf'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/etc/bluetooth/bt_did.conf'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/etc/bluetooth/bt_stack.conf'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/etc/bluetooth/bt_stack.conf'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/egl/libGLES_android.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/egl/libGLES_android.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/hw/audio.primary.universal7870.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/hw/audio.primary.universal7870.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/hw/bluetooth.default.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/hw/bluetooth.default.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/hw/gralloc.exynos5.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/hw/gralloc.exynos5.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libaudioroute.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libaudioroute.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libcamera_metadata.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libcamera_metadata.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libcsc.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libcsc.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libexynosgscaler.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libexynosgscaler.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libexynosscaler.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libexynosscaler.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libexynosv4l2.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libexynosv4l2.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libhwjpeg.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libhwjpeg.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libreference-ril.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libreference-ril.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libril.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libril.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/librilutils.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/librilutils.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libsecril-client.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libsecril-client.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libsensorservice.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libsensorservice.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libtinyalsa.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libtinyalsa.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libtinycompress.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/libtinycompress.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/omx/libOMX.Exynos.AVC.Encoder.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/omx/libOMX.Exynos.AVC.Encoder.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/omx/libOMX.Exynos.VP8.Decoder.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/lib/omx/libOMX.Exynos.VP8.Decoder.so'
build/core/Makefile:34: warning: overriding commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/product/gtaxlwifi/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: warning: phony target '-*-' names itself as an input; ignoring [-w phonycycle=warn]
[ 0% 305/33885] host Java: tagsouplib (/mnt/UserData/Projects/Android-Sour...eOS-14/out/host/common/obj/JAVA_LIBRARIES/tagsouplib_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 0% 313/33885] host Java: antlr-runtime (/mnt/UserData/Projects/Android-S...-14/out/host/common/obj/JAVA_LIBRARIES/antlr-runtime_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[ 1% 611/33885] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /mnt/UserData/Projects/Android-Source/LineageOS-14/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/mnt/UserData/Projects/Android-Source/LineageOS-14/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
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.
[ 1% 611/33885] build /mnt/UserData/Projects/Android-Source/LineageOS-14/out/target/common/obj/all-event-log-tags.txt
system/bt/hci/../EventLogTags.logtags:36: warning: tag "bt_hci_timeout" (1010000) duplicated in system/bt/btif/../EventLogTags.logtags:36
system/bt/hci/../EventLogTags.logtags:37: warning: tag "bt_config_source" (1010001) duplicated in system/bt/btif/../EventLogTags.logtags:37
system/bt/hci/../EventLogTags.logtags:38: warning: tag "bt_hci_unknown_type" (1010002) duplicated in system/bt/btif/../EventLogTags.logtags:38
[ 1% 611/33885] host Java: guavalib (/mnt/UserData/Projects/Android-Source...ageOS-14/out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/classes)
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
[ 1% 611/33885] target Java: core-all (/mnt/UserData/Projects/Android-Sour...eOS-14/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/mnt/UserData/Projects/Android-Source/LineageOS-14'

Edit: I made it past this error by adding the following variable before building.

export LC_ALL=C