Make sure that your Arm Compiler version is up to date – I think support for this flag is relatively recent (6.18ish). I’m unable to reproduce this error with 6.20:
$ make CC=armclang CFLAGS=-fstack-usage $ find build -name '*.su' build/fvp/release/libfdt/fdt_wip.su build/fvp/release/libfdt/fdt.su build/fvp/release/libfdt/fdt_rw.su ...
The stack usage is dumped as expected, e.g. build/fvp/release/bl31/psci_on.su:
lib/psci/psci_on.c:59:psci_cpu_on_start 48 static lib/psci/psci_on.c:163:psci_cpu_on_finish 48 static
Chris
From: Bhuvaneswari K via TF-A tf-a@lists.trustedfirmware.org Date: Friday, 10 November 2023 at 07:30 To: tf-a@lists.trustedfirmware.org tf-a@lists.trustedfirmware.org Subject: [TF-A] Re: Stack usage sorry not able to include image so here is my error
armclang: error: unknown argument: `-fstack-usage` armclang: error: unknown argument: `-fdump-ipa-cgraph` -- TF-A mailing list -- tf-a@lists.trustedfirmware.org To unsubscribe send an email to tf-a-leave@lists.trustedfirmware.org