[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] andybones:
[MENTION=4453138]fagyi[/MENTION],

hi my friend

I'm having a few issues here still trying to get a compile.

I ran into this:

[ 41% 243/588] including device/htc/pme/Android.mk ...
device/htc/pme/vndk/Android.mk:2: warning: ************* BOARD VNDK is not enabled - compiling vndk-sp ***************************
[ 99% 587/588] finishing build rules ...
FAILED:
hardware/qcom-caf/msm8996/audio/hal/Android.mk: error: "audio.primary.msm8996 (SHARED_LIBRARIES android-arm64) missing libtinycompress_vendor (SHARED_LIBRARIES android-arm64)"
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-caf/msm8996/audio/hal/Android.mk: error: "audio.primary.msm8996 (SHARED_LIBRARIES android-arm) missing libtinycompress_vendor (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:966: error: exiting from previous errors.
18:33:12 ckati failed with: exit status 1
#### failed to build some targets (47:48 (mm:ss)) ####
andrew@andrew-ubuntu:~/android/crQ$
[/hide]

So I went into the hardware/qcom-caf/msm8996/audio/hal and modifed Android.mk

to remove

libtinycompress_vendor \

and

ifneq ($(strip $(TARGET_USES_AOSP_FOR_AUDIO)),true)
LOCAL_SHARED_LIBRARIES += libtinycompress_vendor
else
LOCAL_SHARED_LIBRARIES += libtinycompress
endif

This then gave the following compile errors:

[ 68% 71301/104060] target C: audio.primary.msm8996 <= hardware/qcom-caf/msm899
FAILED: out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r353983c/bin/clang	-I external/tinyalsa/include -I external/tinycompress/include -I system/media/audio_utils/include -I external/expat/lib -I system/media/audio_route/include -I system/media/audio_effects/include -I hardware/qcom-caf/msm8996/audio/hal/msm8974 -I hardware/qcom-caf/msm8996/audio/hal/audio_extn -I hardware/qcom-caf/msm8996/audio/hal/voice_extn -I hardware/qcom-caf/msm8996/audio/hal -I out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates -I out/target/product/pme/gen/SHARED_LIBRARIES/audio.primary.msm8996_intermediates -I libnativehelper/include_jni \$(cat out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/pme/obj/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-arm64 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -faddrsig -Wimplicit-fallthrough -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-zero-as-null-pointer-constant -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -march=armv8-a -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -std=gnu99 -DPLATFORM_MSM8996 -Wno-macro-redefined -DUSE_VENDOR_EXTN -DUSE_LL_AS_PRIMARY_OUTPUT -DPCM_OFFLOAD_ENABLED -DANC_HEADSET_ENABLED -DFLUENCE_ENABLED -DAFE_PROXY_ENABLED -DHFP_ENABLED -DMULTI_VOICE_SESSION_ENABLED -DCOMPRESS_VOIP_ENABLED -DAUDIO_EXTN_FORMATS_ENABLED -DHW_VARIANTS_ENABLED -DALAC_OFFLOAD_ENABLED -DCOMPRESS_METADATA_NEEDED -DPCM_OFFLOAD_ENABLED_24 -DDEV_ARBI_ENABLED -DDOLBY_ACDB_LICENSE -D_GNU_SOURCE -Wall -Werror -DSND_MONITOR_ENABLED -DANDROID_PLATFORM_SDK_VERSION=29 -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-tautological-unsigned-enum-zero-compare -Wno-tautological-unsigned-zero-compare -Wno-c++98-compat-extra-semi -Wno-return-std-move-in-c++11 -MD -MF out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.d -o out/target/product/pme/obj/SHARED_LIBRARIES/audio.primary.msm8996_intermediates/audio_hw.o hardware/qcom-caf/msm8996/audio/hal/audio_hw.c"
hardware/qcom-caf/msm8996/audio/hal/audio_hw.c:4747:17: error: implicit declaration of function 'compress_set_next_track_param' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
compress_set_next_track_param(out->compr, &(out->compr_config.codec->options));
^
1 error generated.
06:03:09 ninja failed with: exit status 1
#### failed to build some targets (01:43:02 (hh:mm:ss)) ####
andrew@andrew-ubuntu:~/android/crQ$
[/hide]

Thank you for any help!