Hi,
Windows has a 8191 chars long command line length limit (all version of windows have this) see: [1]. As a workaround you could make the PATH to TF-M working copy shorter. You could:
* Copy TF-M to the root directory as suggested by Anton.
* Use mklink -j to create a “link” (junction point) to the current location of your TF-M working copy in the root of one of your drives. (See [1]) * Use subst command to create a “virtual drive” which points to TF-M working copy. This will make the source visible e.g. at R:\ (see 3) * Or build under Linux (e.g. WSL) 😉
/George
1: https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experien... 2: https://learn.microsoft.com/en-us/windows-server/administration/windows-comm... 3: https://learn.microsoft.com/en-us/windows-server/administration/windows-comm...
From: Anton Komlev via TF-M tf-m@lists.trustedfirmware.org Date: Thursday, 4 April 2024 at 12:08 To: Antonio De Angelis Antonio.DeAngelis@arm.com, tf-m@lists.trustedfirmware.org tf-m@lists.trustedfirmware.org, Michael Khoyilar mkhoyilar@innophaseiot.com Subject: [TF-M] Re: Windows 10 error file name or extension too long Hi Michael,
You can also try to move your TF-M project close to the root (C:) folder. It works for me in “C:\projects\trusted-firmware-m” in Windows build.
Hope that helps, Anton
From: Antonio De Angelis via TF-M tf-m@lists.trustedfirmware.org Sent: Thursday, April 4, 2024 9:28 AM To: tf-m@lists.trustedfirmware.org; Michael Khoyilar mkhoyilar@innophaseiot.com Subject: [TF-M] Re: Windows 10 error file name or extension too long
Hi Michael,
I am not an expert on make but it looks like it's hitting some corner case on the size of the file being processed? I'd suggest to use as a workaround ninja, if possible, instead of make, and use -GNinja in the CMake config options when configuring the project.
Thanks, Antonio ________________________________ From: Michael Khoyilar via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Wednesday, April 3, 2024 18:56 To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] Windows 10 error file name or extension too long
Hi all
I am new to TF-M and want to know if there is a public forum to post questions or search for answers? I am getting this error under Windows 10 when making clean:
make (e=206): The filename or extension is too long
Thank you
Michael