[Android General] Soumy1234:
Here are the results after running '. build/envsetup.sh' then 'brunch gprimelte' and 'make clobber' after the build failed:

Allow Missing Dependencies is true and ninja is enabled:

android@builduntuvm:~/RR$ brunch gprimelte
including vendor/rr/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=rr_gprimelte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-142-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ2A.190205.001
OUT_DIR=/home/android/RR/out
TARGET_USE_SDCLANG=true
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=rr_gprimelte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-142-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ2A.190205.001
OUT_DIR=/home/android/RR/out
TARGET_USE_SDCLANG=true
============================================
ninja: no work to do.
ninja: no work to do.
wildcard(/home/android/RR/out/target/product/gprimelte/clean_steps.mk) was changed, regenerating...
$(shell date +%Y%m%d) was changed, regenerating...
[269/1066] including frameworks/av/camera/Android.mk ...
frameworks/av/camera/cameraserver/Android.mk:18: warning: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
[618/1066] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:88: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[1066/1066] including vendor/samsung/serranovexx-common/Android.mk ...
build/make/core/Makefile:28: warning: overriding commands for target `/home/android/RR/out/target/product/gprimelte/system/lib/libsecril-client.so'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/android/RR/out/target/product/gprimelte/system/lib/libsecril-client.so'
build/make/core/Makefile:28: warning: overriding commands for target `/home/android/RR/out/target/product/gprimelte/system/vendor/etc/wifi/wpa_supplicant.conf'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/android/RR/out/target/product/gprimelte/system/vendor/etc/wifi/wpa_supplicant.conf'
[ 50% 1/2] glob .
ninja: error: '/home/android/RR/out/target/product/gprimelte/obj/SHARED_LIBRARIES/libqmiservices_intermediates/export_includes', needed by '/home/android/RR/out/target/product/gprimelte/obj/EXECUTABLES/wcnss_service_intermediates/import_includes', missing and no known rule to make it
11:30:44 ninja failed with: exit status 1

Allow Missing Dependencies is false and ninja is enabled:

android@builduntuvm:~/RR$ brunch gprimelte
including vendor/rr/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=rr_gprimelte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-142-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ2A.190205.001
OUT_DIR=/home/android/RR/out
TARGET_USE_SDCLANG=true
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=rr_gprimelte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-142-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ2A.190205.001
OUT_DIR=/home/android/RR/out
TARGET_USE_SDCLANG=true
============================================
[1/1] /home/android/RR/out/soong/.mini...id/RR/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[80/80] /home/android/RR/out/soong/.bo.../home/android/RR/out/soong/build.ninja
/home/android/RR/out/build-rr_gprimelte-cleanspec.ninja is missing, regenerating...
/home/android/RR/out/build-rr_gprimelte.ninja is missing, regenerating...
[269/1066] including frameworks/av/camera/Android.mk ...
frameworks/av/camera/cameraserver/Android.mk:18: warning: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
[618/1066] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:88: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[1066/1066] including vendor/samsung/serranovexx-common/Android.mk ...
hardware/qcom/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libqmiservices (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/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libqmi (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/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libqcci_legacy (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/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libqmi_client_qmux (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/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libmdmdetect (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/make/core/main.mk:844: error: exiting from previous errors.
11:40:01 ckati failed with: exit status 1

Allow Missing Dependencies is False and Ninja is Disabled:

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=rr_gprimelte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-142-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ2A.190205.001
OUT_DIR=/home/android/RR/out
TARGET_USE_SDCLANG=true
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=rr_gprimelte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-142-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PQ2A.190205.001
OUT_DIR=/home/android/RR/out
TARGET_USE_SDCLANG=true
============================================
[1/1] /home/android/RR/out/soong/.mini...id/RR/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[80/80] /home/android/RR/out/soong/.bo.../home/android/RR/out/soong/build.ninja
/home/android/RR/out/build-rr_gprimelte-cleanspec.ninja is missing, regenerating...
/home/android/RR/out/build-rr_gprimelte.ninja is missing, regenerating...
[269/1066] including frameworks/av/camera/Android.mk ...
frameworks/av/camera/cameraserver/Android.mk:18: warning: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
[618/1066] including system/sepolicy/Android.mk ...
system/sepolicy/Android.mk:88: warning: Be careful when using the SELINUX_IGNORE_NEVERALLOWS flag. It does not work in user builds and using it will not stop you from failing CTS.
[1066/1066] including vendor/samsung/serranovexx-common/Android.mk ...
hardware/qcom/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libqmiservices (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/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libqmi (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/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libqcci_legacy (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/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libqmi_client_qmux (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/wlan/qcwcn/wcnss-service/Android.mk: error: wcnss_service (EXECUTABLES android-arm) missing libmdmdetect (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/make/core/main.mk:844: error: exiting from previous errors.
11:46:06 ckati failed with: exit status 1

After trying all of these scenarios, I don't think Ninja's the culprit. Maybe I am missing some dependencies, but I made sure I checked every lineage.dependencies file in the device folders... Something else that's bothering me: If I run the 'lunch' command then select 'lineage_gprimelte-userdebug', it says that I'm missing the vendor/lineage folder, even though I'm building for RR and there is a vendor/rr folder. Do I rename the lineage.dependencies to rr.dependencies and add 'rr_gprimelte-userdebug' to the lunch combo?