Skip to content
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

ninja[1.12.1] build fails due to long file paths #2577

Open
ariel94ru opened this issue Feb 24, 2025 · 0 comments
Open

ninja[1.12.1] build fails due to long file paths #2577

ariel94ru opened this issue Feb 24, 2025 · 0 comments

Comments

@ariel94ru
Copy link

Hi,

I'm using cmake with Ninja Multi-Config generator. Ninja version is 1.12.1.
During cmake configure phase I get some warnings of this sort:

CMake Warning in /CMakeLists.txt:
The object file directory
<very_long_path>
has characters. The maximum full path to an object file is 250 characters (see CMAKE_OBJECT_PATH_MAX). Object file
<long_object_file_name>
cannot be safely placed under this directory. The build may not work correctly.

Later, during the build phase, I get this error:
fatal error C1083: Cannot open compiler generated file: '': Invalid argument

I can work around this issue by shortening the paths of my project.
The info in #1900 did not help to resolve this.

Is this a known issue that is being worked on?
Any plans to resolve it?

Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant