fips icon indicating copy to clipboard operation
fips copied to clipboard

Error when installing emscripten on Windows with long path name

Open kavika13 opened this issue 7 years ago • 1 comments

This could be considered an upstream issue (they use very long file names and a lot of sub folders). However it might be possible to detect and warn about this early in fips?

https://github.com/juj/emsdk/issues/152

TL;DR: I tried to install emscripten for the sokol-samples project, using the base dir C:\users\my_user_name\development\sokol-samples and I got this error part way through the emsdk-portable build. When I unzipped the folder to a more shallow path and did the emsdk.bat install ..., I didn't get this error:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(312,5): error MSB3491: Could not write lines to file "x64\Release\ClangAttrSubMatchRulesParserStringSwitches\ClangAtt.8917E2BC.tlog\ClangAttrSubMatchRulesParserStringSwitches.lastbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. [C:\Users\my_user_name\development\fips-sdks\win\emsdk-portable\clang\fastcomp\build_incoming_vs2015_64\tools\clang\include\clang\Parse\ClangAttrSubMatchRulesParserStringSwitches.vcxproj]

kavika13 avatar Jun 28 '18 08:06 kavika13

Agreed it's probably a good idea to check for this early and issue a warning before the emscripten install starts...

floooh avatar Jun 28 '18 09:06 floooh