Hi Michael,
Good to hear your progress. The issue you're experiencing is related to how Git interprets line endings. Most of the time, it handles them correctly, but in certain patches, this can become problematic.
We're actively working on a solution, but in the meantime, you can try resolving it by converting all patches in the <trusted-firmware-m>\lib\ext\*\*.patch directory using the dos2unix program.
Hope this helps,
Anton
From: Michael Ji <mji@innophaseiot.com>
Sent: Monday, February 24, 2025 11:04 PM
To: Anton Komlev <Anton.Komlev@arm.com>; Antonio De Angelis <Antonio.DeAngelis@arm.com>; tf-m@lists.trustedfirmware.org
Cc: nd <nd@arm.com>
Subject: RE: TFM build error
Hi Anton:
Thank you for the patch. After I applied the patch, my running made more progress but the following error occurred when I ran this command:
cmake --build build_spe -- install
When I ran the same command again:
cmake --build build_spe -- install
now I am getting this error:
Could you shed some light on this? Thanks.
Best,
Michael
From: Anton Komlev <Anton.Komlev@arm.com>
Sent: Sunday, February 23, 2025 12:53 PM
To: Michael Ji <mji@innophaseiot.com>; Antonio De Angelis <Antonio.DeAngelis@arm.com>;
tf-m@lists.trustedfirmware.org
Cc: nd <nd@arm.com>
Subject: RE: TFM build error
CAUTION:This email originated from outside
of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. If you suspect that this email may be a phishing attempt, please do not forward it to your colleagues. Instead, report it by forwarding
this email to phishing@innophaseiot.com.
Hi Michael,
Could you try this patch:
https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/35732
and let me know if it helps with the issue?
Thanks,
Anton
From: Michael Ji <mji@innophaseiot.com>
Sent: Thursday, February 20, 2025 10:46 PM
To: Anton Komlev <Anton.Komlev@arm.com>; Antonio De Angelis <Antonio.DeAngelis@arm.com>;
tf-m@lists.trustedfirmware.org
Cc: nd <nd@arm.com>
Subject: RE: TFM build error
Anton:
Great. I am glad to know you are able to reproduce my issue. Please let me know how this can be fixed. Thank you!
From: Anton Komlev <Anton.Komlev@arm.com>
Sent: Thursday, February 20, 2025 2:43 PM
To: Anton Komlev <Anton.Komlev@arm.com>; Antonio De Angelis <Antonio.DeAngelis@arm.com>;
tf-m@lists.trustedfirmware.org
Cc: nd <nd@arm.com>; Michael Ji <mji@innophaseiot.com>
Subject: RE: TFM build error
You don't often get email from
anton.komlev@arm.com.
Learn why this is important
|
CAUTION:This email originated from outside
of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. If you suspect that this email may be a phishing attempt, please do not forward it to your colleagues. Instead, report it by forwarding
this email to phishing@innophaseiot.com.
An update: I can reproduce the problem you described on the Windows build.
From: Anton Komlev via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Thursday, February 20, 2025 6:54 PM
To: Antonio De Angelis <Antonio.DeAngelis@arm.com>;
tf-m@lists.trustedfirmware.org
Cc: nd <nd@arm.com>; Michael Ji <mji@innophaseiot.com>
Subject: [TF-M] Re: TFM build error
Hi Michel,
Apologies for the delayed response. I checked and found that the latest TF-M builds successfully on Ubuntu and WSL2 but there is an issue on Windows. However, the problem differs from yours. Could you specify
the TF-M version (SHA) you are using?
You may know that Linux and WSL2 builds are much faster than Windows.
Thanks,
Anton
From: Antonio De Angelis via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Thursday, February 20, 2025 11:20 AM
To: tf-m@lists.trustedfirmware.org
Cc: nd <nd@arm.com>; Michael Ji <mji@innophaseiot.com>
Subject: [TF-M] Re: TFM build error
Hi Michael,
can you share the exact build command that you're using that leads to that error?
On a side note, do you have any way of trying to build using WSL2 for Windows? Although native Windows builds should be supported, they are not very frequent hence it might just be easier to switch
to WSL2.
Thanks,
Antonio
From: Michael Ji via TF-M
Sent: Wednesday, February 19, 2025 18:04
To: tf-m@lists.trustedfirmware.org
Subject: [TF-M] FW: TFM build error
Could you please help with my issue? Thank you!
From: Michael Ji
Sent: Friday, February 14, 2025 4:15 PM
To: Raef.Coles@arm.com;
Anton.Komlev@arm.com
Subject: TFM build error
Hi Raef and Anton:
I am following the steps in this webpage to build tfm on my Windows laptop:
https://trustedfirmware-m.readthedocs.io/en/latest/getting_started/index.html
All my steps are successful till I ran this command below and got error (FYI – I am using the platform
arm/mps2/an521 and GNU ARM compiler):
Could you share your insight on how to resolve this? Thank you very much!
Best,
Michael