Building this configuration
cmake -DTFM_PLATFORM=mps2/an521 -DTFM_PARTITION_AUDIT_LOG=ON -DTFM_PROFILE=profile_medium ..
gives this error
ld: spm/libtfm_spm.a(spm_ipc.o):(.rodata.memory_data_list+0x1c): undefined reference to `tfm_sp_audit_log_stack'
Also affects other platforms.