Appears to work OK on linux, not tried Mac OS.

No problems with ARMCLANG or IARARM on win 10.

Fails on Win 10 with gnuarm 6.3.1 and 7.3.1. Even tried cloning all the repos into a new project.

/Thomas


Den 2020-06-26 kl. 11:49, skrev Kumar Gala:

On Jun 26, 2020, at 3:23 AM, Thomas Törnblom via TF-M <tf-m@lists.trustedfirmware.org> wrote:

The merge of "Build: Add support for specifying GNUARM_PREFIX" appears to break GNUARM builds.

[100%] Linking C static library mbedcrypto.a
/usr/bin/sh: CMAKE_GNUARM_AR-NOTFOUND: command not found
make[5]: *** [library/mbedcrypto.a] Fel 127
make[4]: *** [library/CMakeFiles/mbedcrypto.dir/all] Fel 2
make[3]: *** [all] Fel 2
make[2]: *** [secure_fw/partitions/crypto/mbedcrypto_lib-prefix/src/mbedcrypto_lib-stamp/mbedcrypto_lib-build] Fel 2
make[1]: *** [secure_fw/partitions/crypto/CMakeFiles/mbedcrypto_lib.dir/all] Fel 2
make: *** [all] Fel 2

Excluding this commit is a workaround.

This is on Win 10.

Cheers,
Thomas
Is this issue seen on any other host OS?  Linux, Mac OS X?  Which specific toolchain are you using?

- k

--

Thomas Törnblom, Product Engineer
IAR Systems AB
Box 23051, Strandbodgatan 1
SE-750 23 Uppsala, SWEDEN
Mobile: +46 76 180 17 80 Fax: +46 18 16 78 01
E-mail: thomas.tornblom@iar.com Website: www.iar.com
Twitter: www.twitter.com/iarsystems