It tells me it's 3.18.2
Chris
-----Original Message----- From: Raef Coles Raef.Coles@arm.com Sent: Tuesday, July 27, 2021 9:02 AM To: tf-m@lists.trustedfirmware.org; Brand Chris (CSCA CSS ICW SW PSW 1) Chris.Brand@infineon.com Cc: nd nd@arm.com Subject: Re: Failure building Musca B1 SE with armclang on Linux
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.
What version of cmake are you using Chris? I notice it's installed via PIP, so it might be a particularly new one which has some incompatibility
Raef
________________________________________ From: TF-M tf-m-bounces@lists.trustedfirmware.org on behalf of chris.brand--- via TF-M tf-m@lists.trustedfirmware.org Sent: 27 July 2021 16:58 To: tf-m@lists.trustedfirmware.org Subject: Re: [TF-M] Failure building Musca B1 SE with armclang on Linux
This is definitely something wrong with my system. I can't build other targets with that toolchain either.
Chris
From: David Hu David.Hu@arm.com Sent: Tuesday, July 27, 2021 2:02 AM To: Anton Komlev Anton.Komlev@arm.com; tf-m@lists.trustedfirmware.org; Brand Chris (CSCA CSS ICW SW PSW 1) Chris.Brand@infineon.com Cc: nd nd@arm.com Subject: RE: Failure building Musca B1 SE with armclang on Linux
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 Chris,
Xinyu helps run a Musca-B1 build on staging CI with Armclang 6.13 and the build succeeds. Please check the build log: https://ci.staging.trustedfirmware.org/view/TF-M/job/tf-m-build-config/26816...
Best regards, Hu Ziji
From: TF-M <tf-m-bounces@lists.trustedfirmware.orgmailto:tf-m-bounces@lists.trustedfirmware.org> On Behalf Of Anton Komlev via TF-M Sent: Tuesday, July 27, 2021 3:32 PM To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Cc: nd <nd@arm.commailto:nd@arm.com> Subject: Re: [TF-M] Failure building Musca B1 SE with armclang on Linux
Hi Chris,
Your command works well also on Windows, Clang v6.16.1, although had to modify -G"Unix Makefiles".
Hope it helps, Anton
From: TF-M <tf-m-bounces@lists.trustedfirmware.orgmailto:tf-m-bounces@lists.trustedfirmware.org> On Behalf Of David Hu via TF-M Sent: Tuesday, July 27, 2021 12:59 AM To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org; Chris.Brand@infineon.commailto:Chris.Brand@infineon.com; Raef Coles <Raef.Coles@arm.commailto:Raef.Coles@arm.com> Cc: nd <nd@arm.commailto:nd@arm.com> Subject: Re: [TF-M] Failure building Musca B1 SE with armclang on Linux
Hi Chris,
Sorry for the trouble. I tried your build command and it worked with Armclang 6.14 on my ubuntu desktop.
It looks like CMAKE_C_COMPILER_ID doesn't receive the correct toolchain ID. Probably @Raef can help?
Best regards, Hu Ziji
________________________________ From: TF-M <tf-m-bounces@lists.trustedfirmware.orgmailto:tf-m-bounces@lists.trustedfirmware.org> on behalf of chris.brand--- via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, July 27, 2021 3:08 AM To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] Failure building Musca B1 SE with armclang on Linux
My build command is this:
cmake -S . -B build_musca_se_ARMCLANG_Debug '-GUnix Makefiles' -DTFM_PLATFORM=arm/musca_b1/secure_enclave -DTFM_TOOLCHAIN_FILE=toolchain_ARMCLANG.cmake -DCMAKE_BUILD_TYPE=Debug -DTFM_ISOLATION_LEVEL=2 -DTFM_PSA_API=ON -DFORWARD_PROT_MSG=ON -DTFM_PROFILE=profile_medium
The tree I'm building is hash 76939d7ca9cea03b07d3617fbbdca09947d5cdf9, and the toolchain is version 6.13. I see the same error with version 6.12.
The error message I get is this:
[100%] Built target tfm_test_repo-populate
gmake[1]: Leaving directory '/lhome/cbrand/work/trees_2/psoc6_atfm/trusted-firmware-m/build_musca_se_ARMCLANG_Debug/lib/ext/tfm_test_repo-subbuild'
/lhome/cbrand/.local/lib/python3.6/site-packages/cmake/data/bin/cmake -E cmake_progress_start /lhome/cbrand/work/trees_2/psoc6_atfm/trusted-firmware-m/build_musca_se_ARMCLANG_Debug/lib/ext/tfm_test_repo-subbuild/CMakeFiles 0
CMake Error at lib/ext/CMSIS_5/CMakeLists.txt:25 (message):
does not have CMSIS RTX static libraries set up
-- Configuring incomplete, errors occurred!
I wonder whether it might be a toolchain configuration issue, but I'm pretty sure that I've built with this same toolchain on this same machine in the past...
Gcc build with the same source and options works fine.
Chris Brand
Cypress Semiconductor (Canada), Inc.
Sr Prin Software Engr
CSCA CSS ICW SW PSW 1
Office: +1 778 234 0515
Chris.Brand@infineon.commailto:Chris.Brand@infineon.com