[Xperia Tablet Z Original Android Development] petefoth:
Well I'm making some progress with this, by tweaking my local manifests, but I'm starting to feel out of my depth.

The attached manifest gets past the missing module problem, but fails when compiling `hardware/qcom-caf/wlan/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c' with the following error

[ 0% 445/94766] target thumb C: lib_driver_cmd_qcwcn <= hardware/qcom-caf/wlan/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
FAILED: out/target/product/pollux/obj/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates/driver_cmd_nl80211.o
/bin/bash -c "PWD=/proc/self/cwd /usr/bin/ccache prebuilts/clang/host/linux-x86/clang-r450784d/bin/clang -I device/sony/pollux/include -I device/sony/pollux-common/include -I device/sony/fusion3-common/include -I external/wpa_supplicant_8/src -I external/wpa_supplicant_8/src/common -I external/wpa_supplicant_8/src/drivers -I external/wpa_supplicant_8/src/l2_packet -I external/wpa_supplicant_8/src/utils -I external/wpa_supplicant_8/src/wps -I external/wpa_supplicant_8/src/ap -I external/wpa_supplicant_8/wpa_supplicant -I external/libnl/include -I hardware/qcom-caf/wlan/qcwcn/wpa_supplicant_8_lib -I out/target/product/pollux/obj/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates -I out/target/product/pollux/gen/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates -Isystem/core/libcutils/include -Isystem/core/libprocessgroup/include -Iexternal/libnl/include -Iexternal/libnl/include -Iexternal/libcxx/include -Iexternal/libcxxabi/include -D__LIBC_API__=10000 -Iexternal/jemalloc_new/include -Ibionic/libc/async_safe/include -Isystem/logging/liblog/include -Ibionic/libc/system_properties/include -Isystem/core/property_service/libpropertyinfoparser/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -D__LIBM_API__=10000 -D__LIBDL_API__=10000 -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi/asm-arm -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -Iexternal/libcxxabi/include -I system/core/include -I system/logging/liblog/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/pollux/obj/include -c -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wunreachable-code-loop-increment -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fdebug-default-version=5 -fno-strict-aliasing -Werror=date-time -Werror=pragma-pack -Werror=pragma-pack-suspicious-include -Werror=string-plus-int -Werror=unreachable-code-loop-increment -D__compiler_offsetof=__builtin_offsetof -faddrsig -fcommon -Werror=int-conversion -fexperimental-new-pass-manager -Wno-reserved-id-macro -fcolor-diagnostics -Wno-sign-compare -Wno-defaulted-function-deleted -Wno-inconsistent-missing-override -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant -Wunguarded-availability -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -ffp-contract=off -fdebug-prefix-map=/proc/self/cwd= -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -Wno-unused-command-line-argument -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=format-security -nostdlibinc -fdebug-info-for-profiling -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=neon -mcpu=krait -mfpu=neon-vfpv4 -D__ARM_FEATURE_LPAE=1 -std=gnu99 -mthumb -Os -DWPA_IGNORE_CONFIG_ERRORS -DVERSION_STR_POSTFIX=\\\"-13\\\" -DANDROID_LOG_NAME=\\\"wpa_supplicant\\\" -Wall -Werror -Wno-error=sometimes-uninitialized -Wno-incompatible-pointer-types -Wno-incompatible-pointer-types-discards-qualifiers -Wno-parentheses-equality -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-parameter -Wno-macro-redefined -DANDROID_P2P -DCONFIG_NO_ROAMING -DCONFIG_CTRL_IFACE_CLIENT_DIR=\\\"/data/vendor/wifi/wpa/sockets\\\" -DCONFIG_CTRL_IFACE_DIR=\\\"/data/vendor/wifi/wpa/sockets\\\" -DCONFIG_WPA_CLI_HISTORY_DIR=\\\"/data/vendor/wifi/wpa\\\" -mabi=aapcs-linux -DCONFIG_BACKEND_FILE -DCONFIG_SUITEB -DCONFIG_SUITEB192 -DCONFIG_IEEE80211R -DCONFIG_SAE -DCONFIG_SAE_PK -DCONFIG_DPP -DCONFIG_DPP2 -DCONFIG_OWE -DCONFIG_FILS -DCONFIG_WNM -DCONFIG_TDLS -DCONFIG_P2P -DCONFIG_WIFI_DISPLAY -DCONFIG_HS20 -DCONFIG_INTERWORKING -DCONFIG_WEP -DCONFIG_DRIVER_NL80211 -DCONFIG_DRIVER_NL80211_QCA -DCONFIG_ERP -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MD5 -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_OTP -DEAP_SIM -DEAP_LEAP -DEAP_AKA -DEAP_AKA_PRIME -DEAP_PWD -DCONFIG_WPS -DEAP_WSC -DCONFIG_WPS_NFC -DCONFIG_WPS_OOB -DCONFIG_WPS_ER -DCONFIG_WPS_UPNP -DIEEE8021X_EAPOL -DCONFIG_AP -DCONFIG_NO_RADIUS -DCONFIG_NO_ACCOUNTING -DCONFIG_NO_VLAN -DEAP_SERVER -DEAP_SERVER_IDENTITY -DCONFIG_IEEE80211AC -DNEED_AP_MLME -DEAP_SERVER_WSC -DCONFIG_MBO -DCONFIG_NO_RADIUS -DCONFIG_ACS -DPKCS12_FUNCS -DCONFIG_SMARTCARD -DCRYPTO_RSA_OAEP_SHA256 -DEAP_TLS_OPENSSL -DTLS_DEFAULT_CIPHERS=\\\"\"DEFAULT:!EXP:!LOW\"\\\" -DCONFIG_SHA256 -DCONFIG_HMAC_SHA256_KDF -DCONFIG_HMAC_SHA384_KDF -DCONFIG_HMAC_SHA512_KDF -DCONFIG_SHA384 -DCONFIG_SHA512 -DCONFIG_ECC -DCONFIG_NO_RANDOM_POOL -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_AIDL -DCONFIG_CTRL_IFACE_AIDL -DCONFIG_ANDROID_LOG -DCONFIG_IPV6 -DCONFIG_SME -DCONFIG_GAS_SERVER -DCONFIG_GAS -DCONFIG_OFFCHANNEL -DCONFIG_JSON -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_CTRL_IFACE_CLIENT_DIR=\\\"/data/misc/wifi/sockets\\\" -DCONFIG_DEBUG_FILE -DEAP_TLS_OPENSSL -Wno-unused-parameter -DCONFIG_ANDROID_LOG -DANDROID_LOG_NAME='\"hs20-osu-client\"' -mabi=aapcs-linux -DCONFIG_ANDROID_LOG -DCONFIG_P2P -Werror -Wall -DDO_NOT_CHECK_MANUAL_BINDER_INTERFACES -fPIC -fsanitize=cfi -fsanitize-trap=all -ftrap-function=abort -flto -fsanitize-cfi-cross-dso -fsanitize-ignorelist=external/compiler-rt/lib/cfi/cfi_blocklist.txt -fvisibility=default -DANDROID_STRICT -target armv7a-linux-androideabi10000 -Werror=bool-operation -Werror=implicit-int-float-conversion -Werror=int-in-bool-context -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=string-compare -Werror=xor-used-as-pow -Wno-void-pointer-to-enum-cast -Wno-void-pointer-to-int-cast -Wno-pointer-to-int-cast -Werror=fortify-source -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-tautological-type-limit-compare -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-sizeof-array-div -Wno-tautological-overlap-compare -Wno-deprecated-copy -Wno-range-loop-construct -Wno-misleading-indentation -Wno-zero-as-null-pointer-constant -Wno-deprecated-anon-enum-enum-conversion -Wno-string-compare -Wno-pessimizing-move -Wno-non-c-typedef-for-linkage -Wno-align-mismatch -Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -Wno-bitwise-instead-of-logical -MD -MF out/target/product/pollux/obj/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates/driver_cmd_nl80211.d -o out/target/product/pollux/obj/STATIC_LIBRARIES/lib_driver_cmd_qcwcn_intermediates/driver_cmd_nl80211.o hardware/qcom-caf/wlan/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c"
hardware/qcom-caf/wlan/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c:2835:6: error: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Werror,-Wformat]
twt_setup_params->wake_tsf);
^~~~~~~~~~~~~~~~~~~~~~~~~~
hardware/qcom-caf/wlan/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c:5704:39: error: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Werror,-Wformat]
"tsf_value:%lul host_time:%lul", tsf_value, host_time);
~~~ ^~~~~~~~~
%llu
hardware/qcom-caf/wlan/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c:5704:50: error: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Werror,-Wformat]
"tsf_value:%lul host_time:%lul", tsf_value, host_time);
~~~ ^~~~~~~~~
%llu
3 errors generated.

@tarkzim , please can you share the manifest(s) you use for building? Thanks