Build fails SDCLANG_PATH can not be empty

Hi together,

am trying to build: (msm8916_64) LA.BR.1.2.9.1-02310-8x16.0.xml (08.00.00) with Ubuntu 18.04.1.

Am doing the same steps described within " Software Build and Installation Guide, Linux Android" but getting:

open : no such file or directory
panic: SDCLANG_PATH can not be empty

I have of course done the steps described here: Snapdragon LLVM Compiler but without any success. Still am getting the same error.

One additional question, as am not sure whether this could be related to the original one. When I run lunch msm8916_64-userdebug I see the TARGET_PRODUCT set to ‘msm8916_64’ but when I then run the make command the TARGET_PRODUCT is set back to ‘aosp_arm’.

Here my full stack:

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=aosp_arm
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-39-generic-x86_64-with-Ubuntu-18.04-bionic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPR1.170623.032
OUT_DIR=out

ninja: no work to do.
[1/5] test android/soong/cc/config
FAILED: out/soong/.bootstrap/soong-cc-config/test/test.passed
out/soong/.bootstrap/bin/gotestrunner -p ./build/soong/cc/config -f out/soong/.bootstrap/soong-cc-config/test/test.passed – out/soong/.bootstrap/soong-cc-config/test/test -test.short
open : no such file or directory
panic: SDCLANG_PATH can not be empty

goroutine 1 [running]:
android/soong/cc/config.setSdclangVars()
/home/disco/DBAND/build/soong/cc/config/global.go:289 +0x880
android/soong/cc/config.init.2()
/home/disco/DBAND/build/soong/cc/config/global.go:169 +0xcc9
android/soong/cc/config.init()
/home/disco/DBAND/build/soong/cc/config/tidy_test.go:42 +0x3969
main.init()
/home/disco/DBAND/out/soong/.bootstrap/soong-cc-config/test/test.go:34 +0x4e
ninja: build stopped: subcommand failed.
23:54:06 soong bootstrap failed with: exit status 1
build/core/main.mk:21: recipe for target ‘run_soong_ui’ failed
make: *** [run_soong_ui] Error 1

Thanks for your support in advance.
BR,
Thomas

I’m afraid I’ve never come across SDCLANG_PATH before. However be warned that
the code you are looking at is a chipset code release and will not include any
DB410C code.

AFAIK Qualcomm have not released any DB410C code based for anything more
recent than Marshmallow so there’s no docs on how to build it (you’ll
probably also find that once you get it to build you’ll have to port
the HDMI code from marshmallow yourself).

Daniel.

Thanks a lot again daniel for the reply:)

ran lunch
and choose platform
after this error was gone

I am getting same error how can I slove this
I did lunch in script but still same error