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 MAX_LENGTH_ERROR even using Ninja #49

Closed
UkonnRa opened this issue May 1, 2019 · 2 comments
Closed

Still MAX_LENGTH_ERROR even using Ninja #49

UkonnRa opened this issue May 1, 2019 · 2 comments

Comments

@UkonnRa
Copy link

UkonnRa commented May 1, 2019

Versions

  • cmake version: 3.12.2
  • ninja version: 1.9.0
  • git version 2.21.0.windows.1
  • python version Python 3.6.5rc1

PATH

%PATH%:D:\tools\ninja:D:\tools\MSYS2:C:\Program Files\Python36:C:\PROGRA~1\CMake\bin

Error

Errors when compiling:

Build FAILED.

"D:\Workspaces\RustWorkspace\vtr\target\debug\build\shaderc-b4cd8b461463a31a\out\build\install.vcxproj" (default target) (1) ->
"D:\Workspaces\RustWorkspace\vtr\target\debug\build\shaderc-b4cd8b461463a31a\out\build\ALL_BUILD.vcxproj" (default target) (3) ->
"D:\Workspaces\RustWorkspace\vtr\target\debug\build\shaderc-b4cd8b461463a31a\out\build\glslang\SPIRV\SPIRV.vcxproj" (default target) (7) ->
"D:\Workspaces\RustWorkspace\vtr\target\debug\build\shaderc-b4cd8b461463a31a\out\build\spirv-tools\source\SPIRV-Tools.vcxproj" (default target) (8) ->
"D:\Workspaces\RustWorkspace\vtr\target\debug\build\shaderc-b4cd8b461463a31a\out\build\spirv-tools\source\extinst_tables.vcxproj" (default target) (11) ->
"D:\Workspaces\RustWorkspace\vtr\target\debug\build\shaderc-b4cd8b461463a31a\out\build\spirv-tools\source\spirv-tools-spv-amd-shader-explicit-vertex-parameter.vcxproj" (default target) (16) ->
(InitializeBuildStatus target) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(321,5): error MSB3491: Could not write lines to file "x64\Release\spirv-tools-spv-amd-shader-explicit-vertex-parameter\spirv-to.246FD402.tlog\spirv-tools-spv-amd-shader-explicit-vertex-parameter.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. [D:\Workspaces\RustWorkspace\vtr\target\debug\build\shaderc-b4cd8b461463a31a\out\build\spirv-tools\source\spirv-tools-spv-amd-shader-explicit-vertex-parameter.vcxproj]

Questions

  • I wonder if I set the ENV correctly?
  • Whether or not I put Ninja into the PATH, I always get this MAX_LENGTH_ERROR, but the package is different.
@antiagainst
Copy link
Collaborator

Hey @CasterKKK, sorry for the late reply! From the error message (error MSB3491) it seems you are still compiling with MSBuild. Which shaderc-rs version are you using? In the lastest version, ninja should be required for you to compile... Could you give it a try by using the lastest version?

@antiagainst
Copy link
Collaborator

Closing given no response for quite some time.

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