As GNUARM 8 is not support at current moment (2019-07-15), this ticket is just served as a reminder that there is build error to compile TF-M (6908b548f4) with GNUARM 8 in Release build.
GNUARM 8
- Version 8.2: 8-2018-q4-major: Dec-20, 2018
- Version 8.3.1: 8-2019-q3-update: Jul-10, 2019
Release build
- cmake . . . -DCMAKE_BUILD_TYPE=Release
- Errors -----
In file included from /home/alamyliu/prjs/tf-m/tf-m_twincpu/secure_fw/spm/spm_api.c:14: In function 'add_user_defined_partitions', inlined from 'tfm_spm_db_init' at /home/alamyliu/prjs/tf-m/tf-m_twincpu/secure_fw/spm/spm_api.c:149:11: /home/alamyliu/prjs/tf-m/tf-m_twincpu/secure_fw/core/tfm_memory_utils.h:32:13: error: '__builtin_memcmp_eq' reading 15 bytes from a region of size 8 [-Werror=stringop-overflow=] return (memcmp(ptr1, ptr2, num)); ~^~~~~~~~~~~~~~~~~~~~~~~~ /home/alamyliu/prjs/tf-m/tf-m_twincpu/secure_fw/core/tfm_memory_utils.h:32:13: error: '__builtin_memcmp_eq' reading 15 bytes from a region of size 8 [-Werror=stringop-overflow=] return (memcmp(ptr1, ptr2, num)); ~^~~~~~~~~~~~~~~~~~~~~~~~ /home/alamyliu/prjs/tf-m/tf-m_twincpu/secure_fw/core/tfm_memory_utils.h:32:13: error: '__builtin_memcmp_eq' reading 15 bytes from a region of size 8 [-Werror=stringop-overflow=] return (memcmp(ptr1, ptr2, num)); ~^~~~~~~~~~~~~~~~~~~~~~~~ Install the project... /home/alamyliu/prjs/tf-m/tf-m_twincpu/secure_fw/core/tfm_memory_utils.h:32:13: error: '__builtin_memcmp_eq' reading 15 bytes from a region of size 8 [-Werror=stringop-overflow=] /home/alamyliu/prjs/tf-m/tf-m_twincpu/secure_fw/core/tfm_memory_utils.h:32:13: error: '__builtin_memcmp_eq' reading 15 bytes from a region of size 8 [-Werror=stringop-overflow=] return (memcmp(ptr1, ptr2, num)); ~^~~~~~~~~~~~~~~~~~~~~~~~ [ 88%] Built target mbedx509