Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1. PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows? 2. I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M tf-m@lists.trustedfirmware.org Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.org tf-m@lists.trustedfirmware.org Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M tf-m@lists.trustedfirmware.org Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M tf-m@lists.trustedfirmware.org Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard Nicolas.Devillard@arm.com; Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi everyone,
Here is a build log. I don't believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev Anton.Komlev@arm.com Sent: Wednesday, 8 June 2022 12:54 To: David Hu David.Hu@arm.com; Nicolas Devillard Nicolas.Devillard@arm.com; Hunko Bohdan (CSUKR CSS ICW SW FW) Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi,
Had no time to investigate the logs but I am using arm-none-eabi-gcc.exe (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release)
Cheers, Anton
From: Bohdan.Hunko@infineon.com Bohdan.Hunko@infineon.com Sent: Wednesday, June 8, 2022 4:38 PM To: Anton Komlev Anton.Komlev@arm.com; David Hu David.Hu@arm.com; Nicolas Devillard Nicolas.Devillard@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: RE: PSA arch test problem
Hi everyone,
Here is a build log. I don't believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi Bohdan,
It looks like PSA api test root CMakeLists.txt threw out this error. Can you please raise this issue to PSA arch test project?
Best regards, Hu Ziji
From: Anton Komlev Anton.Komlev@arm.com Sent: Thursday, June 9, 2022 12:11 AM To: Bohdan.Hunko@infineon.com; David Hu David.Hu@arm.com; Nicolas Devillard Nicolas.Devillard@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: RE: PSA arch test problem
Hi,
Had no time to investigate the logs but I am using arm-none-eabi-gcc.exe (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release)
Cheers, Anton
From: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com> Sent: Wednesday, June 8, 2022 4:38 PM To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Hi everyone,
Here is a build log. I don't believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi everyone,
So after some investigation the problem is fixed. Turns out PSA arch tests use native platform compiler (e.g. GCC for windows) to compile some generated files and then these compiled files are used in the rest of the build using compiler for arm platform. <psa-arch-tests>/api-tests/CMakeLists.txt adds External project (ExternalProject_Add()) which generates the device database that is needed for the rest of the build.
I have installed llvm-mingwhttps://github.com/mstorsjo/llvm-mingw/releases and added its bin folder to PATH and this fixed the problem. I think GCC for windows (or other native compilers) will also work.
Build works on Linux because Linux comes with GCC preinstalled. Also, I believe, David's build environment have some sort of native compiler available in PATH so build worked for him.
I think this is something that should be added to "Set up build environmentshttps://tf-m-user-guide.trustedfirmware.org/getting_started/tfm_getting_started.html?highlight=install#set-up-build-environments" build instruction, right?
Tanks all for the help.
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: David Hu David.Hu@arm.com Sent: Thursday, 9 June 2022 12:41 To: Anton Komlev Anton.Komlev@arm.com; Hunko Bohdan (CSUKR CSS ICW SW FW) Bohdan.Hunko@infineon.com; Nicolas Devillard Nicolas.Devillard@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
It looks like PSA api test root CMakeLists.txt threw out this error. Can you please raise this issue to PSA arch test project?
Best regards, Hu Ziji
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Thursday, June 9, 2022 12:11 AM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Hi,
Had no time to investigate the logs but I am using arm-none-eabi-gcc.exe (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release)
Cheers, Anton
From: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com> Sent: Wednesday, June 8, 2022 4:38 PM To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Hi everyone,
Here is a build log. I don't believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi Bohdan,
Glad to hear that the problem is resolved. The root cause is a bit unclear to me but if you update the build documentation - will be happy to review.
Cheers, Anton
From: Bohdan.Hunko@infineon.com Bohdan.Hunko@infineon.com Sent: Friday, June 10, 2022 2:51 PM To: David Hu David.Hu@arm.com; Anton Komlev Anton.Komlev@arm.com; Nicolas Devillard Nicolas.Devillard@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: RE: PSA arch test problem
Hi everyone,
So after some investigation the problem is fixed. Turns out PSA arch tests use native platform compiler (e.g. GCC for windows) to compile some generated files and then these compiled files are used in the rest of the build using compiler for arm platform. <psa-arch-tests>/api-tests/CMakeLists.txt adds External project (ExternalProject_Add()) which generates the device database that is needed for the rest of the build.
I have installed llvm-mingwhttps://github.com/mstorsjo/llvm-mingw/releases and added its bin folder to PATH and this fixed the problem. I think GCC for windows (or other native compilers) will also work.
Build works on Linux because Linux comes with GCC preinstalled. Also, I believe, David's build environment have some sort of native compiler available in PATH so build worked for him.
I think this is something that should be added to "Set up build environmentshttps://tf-m-user-guide.trustedfirmware.org/getting_started/tfm_getting_started.html?highlight=install#set-up-build-environments" build instruction, right?
Tanks all for the help.
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: David Hu <David.Hu@arm.commailto:David.Hu@arm.com> Sent: Thursday, 9 June 2022 12:41 To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
It looks like PSA api test root CMakeLists.txt threw out this error. Can you please raise this issue to PSA arch test project?
Best regards, Hu Ziji
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Thursday, June 9, 2022 12:11 AM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Hi,
Had no time to investigate the logs but I am using arm-none-eabi-gcc.exe (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release)
Cheers, Anton
From: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com> Sent: Wednesday, June 8, 2022 4:38 PM To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Hi everyone,
Here is a build log. I don't believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi Bohdan,
CMakeError.log shows you are using a gcc version from another tool. Have you tried the one downloaded from Arm (https://developer.arm.com/tools-and-software/open-source-software/developer-... Besides, it shows an error in building a dummy source file. It might be related to missing `--specs` in build command. The build log, on the other hand, claims that CMake cannot recognize the toolchain. Can you confirm if they are the same issue?
Is it possible to share your environment setting of TF-M build? I'm not familiar with PSA Arch test build system but can ask other windows users to compare their environment with yours. May I know if you get any feedback from PSA Arch test community?
Best regards, Hu Ziji
From: Bohdan.Hunko--- via TF-M tf-m@lists.trustedfirmware.org Sent: Wednesday, June 8, 2022 11:38 PM To: Anton Komlev Anton.Komlev@arm.com; David Hu David.Hu@arm.com; Nicolas Devillard Nicolas.Devillard@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Hi everyone,
Here is a build log. I don't believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi all,
I think the solution for this has been already found by Bohdan a while ago on the 10th of June (pasting it here):
“So after some investigation the problem is fixed. Turns out PSA arch tests use native platform compiler (e.g. GCC for windows) to compile some generated files and then these compiled files are used in the rest of the build using compiler for arm platform. <psa-arch-tests>/api-tests/CMakeLists.txt adds External project (ExternalProject_Add()) which generates the device database that is needed for the rest of the build.
I have installed llvm-mingwhttps://github.com/mstorsjo/llvm-mingw/releases and added its bin folder to PATH and this fixed the problem. I think GCC for windows (or other native compilers) will also work.
Build works on Linux because Linux comes with GCC preinstalled. Also, I believe, David’s build environment have some sort of native compiler available in PATH so build worked for him.
I think this is something that should be added to “Set up build environmentshttps://tf-m-user-guide.trustedfirmware.org/getting_started/tfm_getting_started.html?highlight=install#set-up-build-environments” build instruction, right?”
Apparently the mailer system didn’t deliver this email with logs attached on the 8th (original date of Bohdan’s mail below) but just yesterday! 😊
/Antonio
From: David Hu via TF-M tf-m@lists.trustedfirmware.org Sent: Wednesday, June 22, 2022 04:00 To: Bohdan.Hunko@infineon.com; Anton Komlev Anton.Komlev@arm.com; Nicolas Devillard Nicolas.Devillard@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
CMakeError.log shows you are using a gcc version from another tool. Have you tried the one downloaded from Arm (https://developer.arm.com/tools-and-software/open-source-software/developer-... Besides, it shows an error in building a dummy source file. It might be related to missing `--specs` in build command. The build log, on the other hand, claims that CMake cannot recognize the toolchain. Can you confirm if they are the same issue?
Is it possible to share your environment setting of TF-M build? I’m not familiar with PSA Arch test build system but can ask other windows users to compare their environment with yours. May I know if you get any feedback from PSA Arch test community?
Best regards, Hu Ziji
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 11:38 PM To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi everyone,
Here is a build log. I don’t believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Thanks Antonio for pointing it out. I thought the error occurred again. 😊
Best regards, Hu Ziji
From: Antonio De Angelis via TF-M tf-m@lists.trustedfirmware.org Sent: Wednesday, June 22, 2022 2:57 PM To: tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Hi all,
I think the solution for this has been already found by Bohdan a while ago on the 10th of June (pasting it here):
“So after some investigation the problem is fixed. Turns out PSA arch tests use native platform compiler (e.g. GCC for windows) to compile some generated files and then these compiled files are used in the rest of the build using compiler for arm platform. <psa-arch-tests>/api-tests/CMakeLists.txt adds External project (ExternalProject_Add()) which generates the device database that is needed for the rest of the build.
I have installed llvm-mingwhttps://github.com/mstorsjo/llvm-mingw/releases and added its bin folder to PATH and this fixed the problem. I think GCC for windows (or other native compilers) will also work.
Build works on Linux because Linux comes with GCC preinstalled. Also, I believe, David’s build environment have some sort of native compiler available in PATH so build worked for him.
I think this is something that should be added to “Set up build environmentshttps://tf-m-user-guide.trustedfirmware.org/getting_started/tfm_getting_started.html?highlight=install#set-up-build-environments” build instruction, right?”
Apparently the mailer system didn’t deliver this email with logs attached on the 8th (original date of Bohdan’s mail below) but just yesterday! 😊
/Antonio
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 04:00 To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
CMakeError.log shows you are using a gcc version from another tool. Have you tried the one downloaded from Arm (https://developer.arm.com/tools-and-software/open-source-software/developer-... Besides, it shows an error in building a dummy source file. It might be related to missing `--specs` in build command. The build log, on the other hand, claims that CMake cannot recognize the toolchain. Can you confirm if they are the same issue?
Is it possible to share your environment setting of TF-M build? I’m not familiar with PSA Arch test build system but can ask other windows users to compare their environment with yours. May I know if you get any feedback from PSA Arch test community?
Best regards, Hu Ziji
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 11:38 PM To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi everyone,
Here is a build log. I don’t believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
This might be cause by the mailing list agent. In past it blocked mails bigger 50K until being approved by maintainers. I used to unblock such mails but this time was not notified.
From: David Hu via TF-M tf-m@lists.trustedfirmware.org Sent: Wednesday, June 22, 2022 9:15 AM To: Antonio De Angelis Antonio.DeAngelis@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Thanks Antonio for pointing it out. I thought the error occurred again. 😊
Best regards, Hu Ziji
From: Antonio De Angelis via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 2:57 PM To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi all,
I think the solution for this has been already found by Bohdan a while ago on the 10th of June (pasting it here):
“So after some investigation the problem is fixed. Turns out PSA arch tests use native platform compiler (e.g. GCC for windows) to compile some generated files and then these compiled files are used in the rest of the build using compiler for arm platform. <psa-arch-tests>/api-tests/CMakeLists.txt adds External project (ExternalProject_Add()) which generates the device database that is needed for the rest of the build.
I have installed llvm-mingwhttps://github.com/mstorsjo/llvm-mingw/releases and added its bin folder to PATH and this fixed the problem. I think GCC for windows (or other native compilers) will also work.
Build works on Linux because Linux comes with GCC preinstalled. Also, I believe, David’s build environment have some sort of native compiler available in PATH so build worked for him.
I think this is something that should be added to “Set up build environmentshttps://tf-m-user-guide.trustedfirmware.org/getting_started/tfm_getting_started.html?highlight=install#set-up-build-environments” build instruction, right?”
Apparently the mailer system didn’t deliver this email with logs attached on the 8th (original date of Bohdan’s mail below) but just yesterday! 😊
/Antonio
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 04:00 To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
CMakeError.log shows you are using a gcc version from another tool. Have you tried the one downloaded from Arm (https://developer.arm.com/tools-and-software/open-source-software/developer-... Besides, it shows an error in building a dummy source file. It might be related to missing `--specs` in build command. The build log, on the other hand, claims that CMake cannot recognize the toolchain. Can you confirm if they are the same issue?
Is it possible to share your environment setting of TF-M build? I’m not familiar with PSA Arch test build system but can ask other windows users to compare their environment with yours. May I know if you get any feedback from PSA Arch test community?
Best regards, Hu Ziji
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 11:38 PM To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi everyone,
Here is a build log. I don’t believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi,
To better understand why build worked for you, and does not worked for me I would need a VERBOSE log of make install command when building PSA arch tests. Could please somebody provide me one so I can compare it with my log and better understand the root cause of the problem.
This will help me get better description in the documentation.
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev via TF-M tf-m@lists.trustedfirmware.org Sent: Wednesday, 22 June 2022 11:23 To: David Hu David.Hu@arm.com; Antonio De Angelis Antonio.DeAngelis@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
This might be cause by the mailing list agent. In past it blocked mails bigger 50K until being approved by maintainers. I used to unblock such mails but this time was not notified.
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 9:15 AM To: Antonio De Angelis <Antonio.DeAngelis@arm.commailto:Antonio.DeAngelis@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Thanks Antonio for pointing it out. I thought the error occurred again. 😊
Best regards, Hu Ziji
From: Antonio De Angelis via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 2:57 PM To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi all,
I think the solution for this has been already found by Bohdan a while ago on the 10th of June (pasting it here):
“So after some investigation the problem is fixed. Turns out PSA arch tests use native platform compiler (e.g. GCC for windows) to compile some generated files and then these compiled files are used in the rest of the build using compiler for arm platform. <psa-arch-tests>/api-tests/CMakeLists.txt adds External project (ExternalProject_Add()) which generates the device database that is needed for the rest of the build.
I have installed llvm-mingwhttps://github.com/mstorsjo/llvm-mingw/releases and added its bin folder to PATH and this fixed the problem. I think GCC for windows (or other native compilers) will also work.
Build works on Linux because Linux comes with GCC preinstalled. Also, I believe, David’s build environment have some sort of native compiler available in PATH so build worked for him.
I think this is something that should be added to “Set up build environmentshttps://tf-m-user-guide.trustedfirmware.org/getting_started/tfm_getting_started.html?highlight=install#set-up-build-environments” build instruction, right?”
Apparently the mailer system didn’t deliver this email with logs attached on the 8th (original date of Bohdan’s mail below) but just yesterday! 😊
/Antonio
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 04:00 To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
CMakeError.log shows you are using a gcc version from another tool. Have you tried the one downloaded from Arm (https://developer.arm.com/tools-and-software/open-source-software/developer-... Besides, it shows an error in building a dummy source file. It might be related to missing `--specs` in build command. The build log, on the other hand, claims that CMake cannot recognize the toolchain. Can you confirm if they are the same issue?
Is it possible to share your environment setting of TF-M build? I’m not familiar with PSA Arch test build system but can ask other windows users to compare their environment with yours. May I know if you get any feedback from PSA Arch test community?
Best regards, Hu Ziji
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 11:38 PM To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi everyone,
Here is a build log. I don’t believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps. From CMakeError.log it looks like error may be caused by GCC difference. Could you please say which version of GCC you were using?
Thanks!
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply. Hope that helps, Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards, Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests? https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps! Regards Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards, Bohdan Hunko
Cypress Semiconductor Ukraine Engineer CSUKR CSS ICW SW FW Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi Bohdan,
I use the following command to build psa arch test from TF-M project in Linux environment:
cmake -G"Unix Makefiles" -S . -B cmake_build -DTFM_PLATFORM=arm/mps2/an521 -DTFM_TOOLCHAIN_FILE=toolchain_GNUARM.cmake -DCMAKE_BUILD_TYPE=Debug -DTFM_PSA_API=ON -DTEST_PSA_API=CRYPTO ../
It can build and run successfully. You can change the TFM_PLATFORM and TEST_PSA_API as you want : )
Best Regards, Summer ________________________________ From: Bohdan.Hunko--- via TF-M tf-m@lists.trustedfirmware.org Sent: Friday, July 8, 2022 3:46 AM To: Anton Komlev Anton.Komlev@arm.com; David Hu David.Hu@arm.com; Antonio De Angelis Antonio.DeAngelis@arm.com; tf-m@lists.trustedfirmware.org tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Hi,
To better understand why build worked for you, and does not worked for me I would need a VERBOSE log of make install command when building PSA arch tests. Could please somebody provide me one so I can compare it with my log and better understand the root cause of the problem.
This will help me get better description in the documentation.
Regards,
Bohdan Hunko
Cypress Semiconductor Ukraine
Engineer
CSUKR CSS ICW SW FW
Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev via TF-M tf-m@lists.trustedfirmware.org Sent: Wednesday, 22 June 2022 11:23 To: David Hu David.Hu@arm.com; Antonio De Angelis Antonio.DeAngelis@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
This might be cause by the mailing list agent. In past it blocked mails bigger 50K until being approved by maintainers. I used to unblock such mails but this time was not notified.
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 9:15 AM To: Antonio De Angelis <Antonio.DeAngelis@arm.commailto:Antonio.DeAngelis@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Thanks Antonio for pointing it out.
I thought the error occurred again. ??
Best regards,
Hu Ziji
From: Antonio De Angelis via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 2:57 PM To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi all,
I think the solution for this has been already found by Bohdan a while ago on the 10th of June (pasting it here):
“So after some investigation the problem is fixed.
Turns out PSA arch tests use native platform compiler (e.g. GCC for windows) to compile some generated files and then these compiled files are used in the rest of the build using compiler for arm platform.
<psa-arch-tests>/api-tests/CMakeLists.txt adds External project (ExternalProject_Add()) which generates the device database that is needed for the rest of the build.
I have installed llvm-mingwhttps://github.com/mstorsjo/llvm-mingw/releases and added its bin folder to PATH and this fixed the problem. I think GCC for windows (or other native compilers) will also work.
Build works on Linux because Linux comes with GCC preinstalled.
Also, I believe, David’s build environment have some sort of native compiler available in PATH so build worked for him.
I think this is something that should be added to “Set up build environmentshttps://tf-m-user-guide.trustedfirmware.org/getting_started/tfm_getting_started.html?highlight=install#set-up-build-environments” build instruction, right?”
Apparently the mailer system didn’t deliver this email with logs attached on the 8th (original date of Bohdan’s mail below) but just yesterday! ??
/Antonio
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 04:00 To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
CMakeError.log shows you are using a gcc version from another tool. Have you tried the one downloaded from Arm (https://developer.arm.com/tools-and-software/open-source-software/developer-...
Besides, it shows an error in building a dummy source file. It might be related to missing `--specs` in build command.
The build log, on the other hand, claims that CMake cannot recognize the toolchain. Can you confirm if they are the same issue?
Is it possible to share your environment setting of TF-M build?
I’m not familiar with PSA Arch test build system but can ask other windows users to compare their environment with yours.
May I know if you get any feedback from PSA Arch test community?
Best regards,
Hu Ziji
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 11:38 PM To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi everyone,
Here is a build log.
I don’t believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps.
From CMakeError.log it looks like error may be caused by GCC difference.
Could you please say which version of GCC you were using?
Thanks!
Regards,
Bohdan Hunko
Cypress Semiconductor Ukraine
Engineer
CSUKR CSS ICW SW FW
Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply.
Hope that helps,
Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards,
Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests?
https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps!
Regards
Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem
Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards,
Bohdan Hunko
Cypress Semiconductor Ukraine
Engineer
CSUKR CSS ICW SW FW
Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
Hi Bohdan,
I attach the verbose log of the build command for your reference.
Best Regards, Summer
________________________________ From: Summer Qin via TF-M tf-m@lists.trustedfirmware.org Sent: Friday, July 8, 2022 10:35 AM To: Anton Komlev Anton.Komlev@arm.com; David Hu David.Hu@arm.com; Antonio De Angelis Antonio.DeAngelis@arm.com; tf-m@lists.trustedfirmware.org tf-m@lists.trustedfirmware.org; Bohdan.Hunko@infineon.com Bohdan.Hunko@infineon.com Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
I use the following command to build psa arch test from TF-M project in Linux environment:
cmake -G"Unix Makefiles" -S . -B cmake_build -DTFM_PLATFORM=arm/mps2/an521 -DTFM_TOOLCHAIN_FILE=toolchain_GNUARM.cmake -DCMAKE_BUILD_TYPE=Debug -DTFM_PSA_API=ON -DTEST_PSA_API=CRYPTO ../
It can build and run successfully. You can change the TFM_PLATFORM and TEST_PSA_API as you want : )
Best Regards, Summer ________________________________ From: Bohdan.Hunko--- via TF-M tf-m@lists.trustedfirmware.org Sent: Friday, July 8, 2022 3:46 AM To: Anton Komlev Anton.Komlev@arm.com; David Hu David.Hu@arm.com; Antonio De Angelis Antonio.DeAngelis@arm.com; tf-m@lists.trustedfirmware.org tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Hi,
To better understand why build worked for you, and does not worked for me I would need a VERBOSE log of make install command when building PSA arch tests. Could please somebody provide me one so I can compare it with my log and better understand the root cause of the problem.
This will help me get better description in the documentation.
Regards,
Bohdan Hunko
Cypress Semiconductor Ukraine
Engineer
CSUKR CSS ICW SW FW
Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev via TF-M tf-m@lists.trustedfirmware.org Sent: Wednesday, 22 June 2022 11:23 To: David Hu David.Hu@arm.com; Antonio De Angelis Antonio.DeAngelis@arm.com; tf-m@lists.trustedfirmware.org Cc: nd nd@arm.com Subject: [TF-M] Re: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
This might be cause by the mailing list agent. In past it blocked mails bigger 50K until being approved by maintainers. I used to unblock such mails but this time was not notified.
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 9:15 AM To: Antonio De Angelis <Antonio.DeAngelis@arm.commailto:Antonio.DeAngelis@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Thanks Antonio for pointing it out.
I thought the error occurred again. 😊
Best regards,
Hu Ziji
From: Antonio De Angelis via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 2:57 PM To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi all,
I think the solution for this has been already found by Bohdan a while ago on the 10th of June (pasting it here):
“So after some investigation the problem is fixed.
Turns out PSA arch tests use native platform compiler (e.g. GCC for windows) to compile some generated files and then these compiled files are used in the rest of the build using compiler for arm platform.
<psa-arch-tests>/api-tests/CMakeLists.txt adds External project (ExternalProject_Add()) which generates the device database that is needed for the rest of the build.
I have installed llvm-mingwhttps://github.com/mstorsjo/llvm-mingw/releases and added its bin folder to PATH and this fixed the problem. I think GCC for windows (or other native compilers) will also work.
Build works on Linux because Linux comes with GCC preinstalled.
Also, I believe, David’s build environment have some sort of native compiler available in PATH so build worked for him.
I think this is something that should be added to “Set up build environmentshttps://tf-m-user-guide.trustedfirmware.org/getting_started/tfm_getting_started.html?highlight=install#set-up-build-environments” build instruction, right?”
Apparently the mailer system didn’t deliver this email with logs attached on the 8th (original date of Bohdan’s mail below) but just yesterday! 😊
/Antonio
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 22, 2022 04:00 To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
CMakeError.log shows you are using a gcc version from another tool. Have you tried the one downloaded from Arm (https://developer.arm.com/tools-and-software/open-source-software/developer-...
Besides, it shows an error in building a dummy source file. It might be related to missing `--specs` in build command.
The build log, on the other hand, claims that CMake cannot recognize the toolchain. Can you confirm if they are the same issue?
Is it possible to share your environment setting of TF-M build?
I’m not familiar with PSA Arch test build system but can ask other windows users to compare their environment with yours.
May I know if you get any feedback from PSA Arch test community?
Best regards,
Hu Ziji
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 11:38 PM To: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com>; David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi everyone,
Here is a build log.
I don’t believe that this is a problem with path length because CMake gives a warning when path exceeds the limit, and warning is not present in my logs.
Also I have added the CMakeError.log, hope it helps.
From CMakeError.log it looks like error may be caused by GCC difference.
Could you please say which version of GCC you were using?
Thanks!
Regards,
Bohdan Hunko
Cypress Semiconductor Ukraine
Engineer
CSUKR CSS ICW SW FW
Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
From: Anton Komlev <Anton.Komlev@arm.commailto:Anton.Komlev@arm.com> Sent: Wednesday, 8 June 2022 12:54 To: David Hu <David.Hu@arm.commailto:David.Hu@arm.com>; Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Hunko Bohdan (CSUKR CSS ICW SW FW) <Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: RE: PSA arch test problem
Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safehttps://intranet-content.infineon.com/explore/aboutinfineon/rules/informationsecurity/ug/SocialEngineering/Pages/SocialEngineeringElements_en.aspx.
Hi Bohdan,
1. I was able to build your configuration successfully. Suppose it might be the known problem with a command line path size in Windows. My path is C:\projects\trusted-firmware-m\ Please share your log as David suggested. 2. IAR toolchain was supported by Thomas Törnblom thomas.tornblom@iar.commailto:thomas.tornblom@iar.com, who got retired recently. Hope the new supporter will pickup your question here and reply.
Hope that helps,
Anton
From: David Hu via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, June 8, 2022 10:31 AM To: Nicolas Devillard <Nicolas.Devillard@arm.commailto:Nicolas.Devillard@arm.com>; Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: [TF-M] Re: PSA arch test problem
Hi Bohdan,
Do you mind sharing the failed build log with GNU toolchain on Windows?
Best regards,
Hu Ziji
From: Nicolas Devillard via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, June 7, 2022 11:22 PM To: Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: PSA arch test problem
Hello Bohdan,
May I suggest you raise those questions directly on the github repo for those tests?
https://github.com/ARM-software/psa-arch-tests
To answer your second question, the team let me know that only GCC and ArmCLANG are supported for now, with no current plans to support the IAR compiler.
Hope that helps!
Regards
Nicolas
From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Date: Tuesday, 7 June 2022 at 16:39 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] PSA arch test problem
Hi,
Lately I have been working with PSA arch tests and found few issues with them:
1) PSA arch tests build on Windows fails. I am using the following command: cmake -S . -B build_gcc_psoc64 -G"Unix Makefiles" -DTFM_PLATFORM=cypress/psoc64 -DTEST_PSA_API=INITIAL_ATTESTATION This is true for all the compilers and build types. I have also tried building Musca B1 and the results are the same. Is this expected behavior? Are PSA arch test meant to be built on windows?
2) I have tried building PSA arch tests with IAR on both Linux and Windows and it does not work. From quick investigation it looks like IAR is not supported. Am I right? And if so the is there a plan to support PSA arch tests for IAR compiler?
Regards,
Bohdan Hunko
Cypress Semiconductor Ukraine
Engineer
CSUKR CSS ICW SW FW
Mobile: +38099 50 19 714 Bohdan.Hunko@infineon.commailto:Bohdan.Hunko@infineon.com
tf-m@lists.trustedfirmware.org