[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] MrRob0t:
Thank you for all the help!

After all the edits, I'm hitting the same errors as [MENTION=2586080]andybones[/MENTION] for LinOS17.

Anyway you could share your hardware/qcom-caf/msm8996/ folder please :)

FAILED: out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/LINKED/audio.primary.msm8996.so
/bin/bash -c "prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang++ -nostdlib -Wl,-soname,audio.primary.msm8996.so -Wl,--gc-sections -shared out/soong/.intermediates/bionic/libc/crtbegin_so/android_arm64_armv8-a_core/crtbegin_so.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/voice.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/platform_info.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/msm8974/platform.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/acdb.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_extn/audio_extn.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_extn/utils.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_extn/hfp.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/voice_extn/voice_extn.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/voice_extn/compress_voip.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/msm8974/hw_info.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_extn/dev_arbi.o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_extn/sndmonitor.o -Wl,--whole-archive -Wl,--no-whole-archive out/target/product/pme/obj/STATIC_LIBRARIES/libclang_rt.ubsan_minimal-aarch64-android_intermediates/libclang_rt.ubsan_minimal-aarch64-android.a prebuilts/clang/host/linux-x86/clang-r353983c/lib64/clang/9.0.3/lib/linux//libclang_rt.builtins-aarch64-android.a out/target/product/pme/obj/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a out/target/product/pme/obj/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined-version -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_stripped.a -fuse-ld=lld -Wl,--hash-style=gnu -Wl,--icf=safe -Wl,-z,max-page-size=4096 -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wl,-execute-only -Wl,--exclude-libs,libclang_rt.ubsan_minimal-aarch64-android.a -Wl,--no-undefined out/target/product/pme/obj/SHARED_LIBRARIES/liblog_intermediates/liblog.so out/target/product/pme/obj/SHARED_LIBRARIES/libcutils_intermediates/libcutils.so out/target/product/pme/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/libtinyalsa.so out/target/product/pme/obj/SHARED_LIBRARIES/libaudioroute_intermediates/libaudioroute.so out/target/product/pme/obj/SHARED_LIBRARIES/libaudioutils_intermediates/libaudioutils.so out/target/product/pme/obj/SHARED_LIBRARIES/libexpat_intermediates/libexpat.so out/target/product/pme/obj/SHARED_LIBRARIES/libc++_intermediates/libc++.so out/target/product/pme/obj/SHARED_LIBRARIES/libc_intermediates/libc.so out/target/product/pme/obj/SHARED_LIBRARIES/libm_intermediates/libm.so out/target/product/pme/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.so -o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/LINKED/audio.primary.msm8996.so out/soong/.intermediates/bionic/libc/crtend_so/android_arm64_armv8-a_core/obj/bionic/libc/arch-common/bionic/crtend_so.o"
ld.lld: error: undefined symbol: compress_stop
>>> referenced by audio_hw.c:2694 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:2694)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_standby_l)

ld.lld: error: undefined symbol: compress_close
>>> referenced by audio_hw.c:3778 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:3778)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_standby_l)

ld.lld: error: undefined symbol: compress_open
>>> referenced by audio_hw.c:3271 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:3271)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(start_output_stream)

ld.lld: error: undefined symbol: is_compress_ready
>>> referenced by audio_hw.c:3275 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:3275)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(start_output_stream)

ld.lld: error: undefined symbol: is_compress_ready
>>> referenced by audio_hw.c:3283 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:3283)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(start_output_stream)

ld.lld: error: undefined symbol: compress_nonblock
>>> referenced by audio_hw.c:3294 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:3294)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(start_output_stream)

ld.lld: error: undefined symbol: compress_set_max_poll_wait
>>> referenced by audio_hw.c:3301 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:3301)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(start_output_stream)

ld.lld: error: undefined symbol: compress_get_error
>>> referenced by audio_hw.c:3284 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:3284)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(start_output_stream)

ld.lld: error: undefined symbol: compress_close
>>> referenced by audio_hw.c:3285 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:3285)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(start_output_stream)

ld.lld: error: undefined symbol: compress_pause
>>> referenced by audio_hw.c:7833 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:7833)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(check_a2dp_restore_l)

ld.lld: error: undefined symbol: compress_resume
>>> referenced by audio_hw.c:7838 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:7838)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(check_a2dp_restore_l)

ld.lld: error: undefined symbol: compress_pause
>>> referenced by audio_hw.c:5141 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:5141)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_pause)

ld.lld: error: undefined symbol: compress_resume
>>> referenced by audio_hw.c:5171 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:5171)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_resume)

ld.lld: error: undefined symbol: compress_stop
>>> referenced by audio_hw.c:2694 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:2694)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_flush)

ld.lld: error: undefined symbol: compress_stop
>>> referenced by audio_hw.c:2694 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:2694)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_standby)

ld.lld: error: undefined symbol: compress_close
>>> referenced by audio_hw.c:3694 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:3694)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_standby)

ld.lld: error: undefined symbol: compress_set_gapless_metadata
>>> referenced by audio_hw.c:4743 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:4743)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_write)

ld.lld: error: undefined symbol: compress_write
>>> referenced by audio_hw.c:4785 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:4785)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_write)

ld.lld: error: undefined symbol: compress_write
>>> referenced by audio_hw.c:4776 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:4776)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_write)

ld.lld: error: undefined symbol: compress_start
>>> referenced by audio_hw.c:4808 (hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:4808)
>>> out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o:(out_write)

ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
03:31:39 ninja failed with: exit status 1
[/hide]