-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with Long Pathnames #671
Comments
It seems enabling the long path in Windows is not sufficient for some tools.
Even if the file is there:
For the time being to cope with such limitation paths leading to object files should be kept as short as possible, for example by customizing The "use of relative paths in build script" doesn't help, CMake always generates full path for object files, independently of source paths being relative. From CMAKE_OBJECT_PATH_MAX: |
well, I'm jumping here to highlight that a fix from ninja side is merged upstream. any way, optimizing the generated paths into the generated cmakelists is more than welcome. |
@tarek-bochkati looks like no official release of ninja was made since this change got merged. |
I'm trying to address this with documentation, but run into issues. My attempt:
This ends with a ninja error at this command:
@tarek-bochkati @jkrech is there a way to get a version of ninja with the fix that is described above? |
@ReinhardKeil The last official release is still from Aug. 2022 so you would need to create a build from master branch. |
can confirm that new ninja version would solve the build issue. Remaining issues are described here #838 |
…file without <sauNumRegions> element under <cpu> Open-CMSIS-Pack#1082 (Open-CMSIS-Pack#671) fixed: - check for initialized value of sau num regions
…file without <sauNumRegions> element under <cpu> Open-CMSIS-Pack#1082 (Open-CMSIS-Pack#671) fixed: - check for initialized value of sau num regions
See #838. |
There are still issues with long pathnames that we should address. This issues result in CMake errors such as:
**The maximum full path to an object file is 250 characters (see CMAKE_OBJECT_PATH_MAX)
Potential solutions:
For users:
document how to extend the PATH limit to 1024 characters (may require changes to some Windows registry settings) and set CMAKE_OBJECT_PATH_MAX to this value. See also: https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/The-Windows-10-default-path-length-limitation-MAX-PATH-is-256-characters.html
document guidelines that explain that path length limits may apply when long filenames are chosen.
in CMSIS-Toolbox 2.0
Try to reduce the path components in the
tmp
directory, i.e. instead of:Just:
Use relative paths in build script, i.e. instead of:
Just:
The text was updated successfully, but these errors were encountered: