Unfortunately I don't have any other idea off the top of my head on why that could be. Understanding which function is requiring heap access can be tricky as that error happens only at link time. I'd suggest trying a different compiler if possible (either GCC or Armclang); for GCC I tend to use 10.3.1 and I am able to build Musca-S1 without particular issues, if that helps. Another thing is checking that your environment is configured with only one single toolchain available - sometimes if the environment is not configured correctly at link time you might be trying to link with some unexpected versions of the dependencies.

Thanks,
Antonio

From: Arun D via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Monday, October 23, 2023 21:47
To: tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Subject: [TF-M] Re: Building TF-M for ARM reference SoC/boards MPS2/MPS3 and Musca S1
 
Hi Antonio.

Is there another reason why "cmake --build cmake_build -- install" might still result in "sbrk.c:21: undefined reference to `end'" link time error? I have done a "git checkout 9d455a7" of the Git hash you mention in your patch as well as forced "#define _CC_PAL_LOG(level, format, ...)" to be nil, but am still seeing the link error.

Regards,
-Arun.
--
TF-M mailing list -- tf-m@lists.trustedfirmware.org
To unsubscribe send an email to tf-m-leave@lists.trustedfirmware.org