[OnePlus 3 & 3T Cross Device Development] :
:good:

I can't even boostrap soong any l8nger after applying these patches.

build/soong/cc/config/global.go:250:13: undefined: "android/soong/android".SdclangEnv
build/soong/cc/config/global.go:251:17: undefined: "android/soong/android".SdclangEnv
build/soong/cc/config/global.go:252:18: undefined: "android/soong/android".SdclangEnv
build/soong/cc/config/global.go:253:23: undefined: "android/soong/android".SdclangEnv
build/soong/cc/config/global.go:254:15: undefined: "android/soong/android".SdclangEnv
build/soong/cc/config/global.go:352:16: undefined: "android/soong/android".SdclangEnv
build/soong/cc/config/global.go:359:16: undefined: "android/soong/android".SdclangEnv
build/soong/cc/config/global.go:364:16: undefined: "android/soong/android".SdclangEnv
build/soong/cc/config/global.go:402:16: undefined: "android/soong/android".SdclangEnv

Maybe lineage is missing something required for these patches, or...:confused:

Complete build log attached.

EDIT: https://source.codeaurora.org/quic/...0&id=a3bc430031f316e26064d7f12d9c839f3fde3d9c was missing.mWith that I get:

[24/44] test android/soong/android
[25/44] test android/soong/cc/config
FAILED: /mnt/export/data/src/los16/out/soong/.bootstrap/soong-cc-config/test/test.passed
/mnt/export/data/src/los16/out/soong/.bootstrap/bin/gotestrunner -p ./build/soong/cc/config -f /mnt/export/data/src/los16/out/soong/.bootstrap/soong-cc-config/test/test.passed -- /mnt/export/data/src/los16/out/soong/.bootstrap/soong-cc-config/test/test -test.short
panic: read /mnt/export/data/src/los16: is a directory

EDIT2: Do you have SDCLANG_AE_CONFIG defined? Do you have sdclang.json? The read panic seems to relate to an empty string due to missing SDCLANG_AE_CONFIG...

EDIT3: if I use additionally https://github.com/syberia-project/...mmit/1c25fa44e6552b27d5d9bbb4bf66b4041e6b775c I get an error about soong<->make variable mismatch. If I remove the SDCLANG_COMMON_FLAGS again, I can finally bootstrap soong again, but the build bails out with

[ 14% 13796/95774] //frameworks/native/opengl/libs:libEGL_getProcAddress clang++ EGL/getProcAddress.cpp [arm]
FAILED: /mnt/export/data/src/los16/out/soong/.intermediates/frameworks/native/opengl/libs/libEGL_getProcAddress/android_arm
_armv8-a_kryo_core_static/obj/frameworks/native/opengl/libs/EGL/getProcAddress.o
PWD=/proc/self/cwd /usr/bin/ccache /mnt/export/data/src/los16/prebuilts/snapdragon-llvm/toolchains/llvm-Snapdragon_LLVM_for
_Android_6.0/prebuilt/linux-x86_64/bin/clang++ -c -Ibionic/libc/private -Iframeworks/native/opengl/libs -fstrict-aliasing -
fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -D
NDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_o
ffsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argu
ment -fcolor-diagnostics -Wno-expansion-to-defined -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=$PWD/= -ffunction-
sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -W
strict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -We
rror=format-security -nostdlibinc -msoft-float -march=armv8-a -mfloat-abi=softfp -mfpu=neon-fp-armv8 -mcpu=cortex-a53 -mfpu
=neon-fp-armv8 -D__ARM_FEATURE_LPAE=1 -Iframeworks/native/opengl/include -Isystem/core/libsystem/include -Ihardware/libhard
ware/include -Isystem/media/audio/include -Isystem/core/libcutils/include -Isystem/bt/types -Iframeworks/native/libs/native
base/include -Iframeworks/native/libs/arect/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -Isystem/core/li
blog/include -Iframeworks/native/libs/graphicsenv/include -Iframeworks/native/libs/nativewindow/include -Iframeworks/native
/libs/nativewindow/include-private -Isystem/core/libbacktrace/include -Isystem/core/demangle/include -Isystem/core/include
-Isystem/media/audio/include -Ihardware/libhardware/include -Ihardware/libhardware_legacy/include -Ihardware/ril/include -I
libnativehelper/include -Iframeworks/native/include -Iframeworks/native/opengl/include -Iframeworks/av/include -isystem bio
nic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/andr
oid/scsi -isystem bionic/libc/kernel/android/uapi -Ilibnativehelper/include_jni -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYP
ES -fvisibility=hidden -Wall -Werror -Wno-unused-variable '-DLOG_TAG="libEGL"' -Wall -Werror -Wno-error=deprecated-register
-Wno-error=unknown-attributes -Wno-unused-variable -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-a
ndroideabi-4.9/arm-linux-androideabi/bin -DANDROID_STRICT -fPIC -D_USING_LIBCXX -std=gnu++14 -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -Wno-gnu-include-next -fvisibility-inlines-hidden -fno-rtti -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF /mnt/export/data/src/los16/out/soong/.intermediates/frameworks/native/opengl/libs/libEGL_getProcAddress/android_arm_armv8-a_kryo_core_static/obj/frameworks/native/opengl/libs/EGL/getProcAddress.o.d -o /mnt/export/data/src/los16/out/soong/.intermediates/frameworks/native/opengl/libs/libEGL_getProcAddress/android_arm_armv8-a_kryo_core_static/obj/frameworks/native/opengl/libs/EGL/getProcAddress.o frameworks/native/opengl/libs/EGL/getProcAddress.cpp
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:4:1: note: instantiated into assembly here
addne r12, #0
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:5:1: note: instantiated into assembly here
ldrne r12, [r12, #4080]
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:6:1: note: instantiated into assembly here
cmpne r12, #0
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:7:1: note: instantiated into assembly here
bxne r12
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:4:1: note: instantiated into assembly here
addne r12, #4
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:5:1: note: instantiated into assembly here
ldrne r12, [r12, #4080]
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:6:1: note: instantiated into assembly here
cmpne r12, #0
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:7:1: note: instantiated into assembly here
bxne r12
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:4:1: note: instantiated into assembly here
addne r12, #8
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:5:1: note: instantiated into assembly here
ldrne r12, [r12, #4080]
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:6:1: note: instantiated into assembly here
cmpne r12, #0
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:7:1: note: instantiated into assembly here
bxne r12
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:4:1: note: instantiated into assembly here
addne r12, #12
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:5:1: note: instantiated into assembly here
ldrne r12, [r12, #4080]
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:6:1: note: instantiated into assembly here
cmpne r12, #0
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:7:1: note: instantiated into assembly here
bxne r12
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:4:1: note: instantiated into assembly here
addne r12, #16
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:5:1: note: instantiated into assembly here
ldrne r12, [r12, #4080]
^
frameworks/native/opengl/libs/EGL/getProcAddress.cpp:242:20: error: predicated instructions must be in IT block
GL_EXTENSION_LIST( GL_EXTENSION )
^
<inline asm>:6:1: note: instantiated into assembly here
cmpne r12, #0
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

I don't have a clue what this error message could mean... ...and by far no clue how to fix it, nor what a IT block is...

EDIT4: After adding SDCLANG_COMMON_FLAGS w/o indents nor masked linefeeds, the build is running behind above errors. Let's wait and see...