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.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 safe. |
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.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-mingw 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 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-tools/gnu-toolchain/downloads)?
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.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 safe. |
Hi Bohdan,
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.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.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.com