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

Still getting long pathname issues under Windows with today's master version. #2266

Closed
grebdioZ opened this issue Feb 28, 2023 · 1 comment
Closed

Comments

@grebdioZ
Copy link

grebdioZ commented Feb 28, 2023

We were running into the "long pathname issue" on Windows #1900 with version 1.11.0 and hoped to overcome it with the fixes from #2225. If I understand correctly, those fixes should be available in the master branch, of which I built today's version. However, I still get the Filename longer than 260 characters error.

Configuring seems to work:

PS C:\temp\test> cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -S C:\dev\cmake\fme\FMEwork\Internal\Projects\MLTestExceedinglyLongProjectPath\TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath\TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath\ -B bld --fresh
-- The CXX compiler identification is MSVC 19.34.31942.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_INSTALL_PREFIX initialized to default setting 'C:/Temp/test/bld/install'

[... internal stuff that did not contain relevant warnings or errors]

-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Temp/test/bld

But then:

PS C:\temp\test> ninja -C bld
ninja: error: rebuilding 'build.ninja': Stat(C:/dev/cmake/fme/FMEwork/Internal/Projects/MLTestExceedinglyLongProjectPath/TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath/TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath_TestExceedinglyLongProjectPath/CMakeLists.txt): Filename longer than 260 characters
ninja: Entering directory `bld'
PS C:\temp\test> ninja --version
1.12.0.git

I double-checked I have the LongPathsEnabled registry key set to 1.

Any ideas?

@jhasse
Copy link
Collaborator

jhasse commented Mar 4, 2023

That's what I thought, sounded to good to be true anyway. I will reopen the issue, thanks for reporting :)

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

2 participants