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

mingw-w64-x86_64-ninja compiler errors for MSVC rust cargo build #97

Open
leonardbillywoodiii opened this issue Dec 1, 2020 · 0 comments

Comments

@leonardbillywoodiii
Copy link

I downloaded ninja from https://ninja-build.org/ and pasted in my msys2 folder and all errors went away. Might want to specify a version on your documentation and or inform to upgrade to newest version. I am compiling with CARGO and rust.

Errors are not obvious to what true error is. As far as I can tell incorrect information in Ninja for MSVC current build tools in the Msys2 download version. I am sure the guys on the google team know a lot more than I do about the Error. I installed my development environment this week.

Hopefully will help others.

Thank you Shaderc-rs team!


Caused by:
process didn't exit successfully: C:\Users\lavon\code\vulkano-examples\target\release\build\shaderc-sys-7d48b3aeb5eca3f7\build-script-build (exit code: 101)
--- stdout
cargo:warning=System installed library not found. Falling back to build from source
running: "cmake" "C:\Users\lavon\.cargo\registry\src\github.com-1ecc6299db9ec823\shaderc-sys-0.6.3\build" "-G" "Ninja" "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" "-DSPIRV_SKIP_EXECUTABLES=ON" "-DSPIRV_WERROR=OFF" "-DSHADERC_SKIP_TESTS=ON" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_C_FLAGS= /nologo /EHsc /MD" "-DCMAKE_CXX_FLAGS= /nologo /EHsc /MD" "-DCMAKE_C_FLAGS_RELEASE= /nologo /EHsc /MD" "-DCMAKE_CXX_FLAGS_RELEASE= /nologo /EHsc /MD" "-DSHADERC_ENABLE_SHARED_CRT=ON" "-DCMAKE_INSTALL_PREFIX=C:\Users\lavon\code\vulkano-examples\target\release\build\shaderc-sys-415cfd89d3cf34a1\out" "-DCMAKE_C_COMPILER=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/HostX64/x64/cl.exe" "-DCMAKE_CXX_COMPILER=C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/HostX64/x64/cl.exe" "-DCMAKE_BUILD_TYPE=Release"
-- The C compiler identification is MSVC 19.28.29334.0
-- The CXX compiler identification is MSVC 19.28.29334.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/HostX64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/HostX64/x64/cl.exe - broken
-- Configuring incomplete, errors occurred!
See also "C:/Users/lavon/code/vulkano-examples/target/release/build/shaderc-sys-415cfd89d3cf34a1/out/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/lavon/code/vulkano-examples/target/release/build/shaderc-sys-415cfd89d3cf34a1/out/build/CMakeFiles/CMakeError.log".

--- stderr
CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler

  "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29333/bin/HostX64/x64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

  Change Dir: C:/Users/lavon/code/vulkano-examples/target/release/build/shaderc-sys-415cfd89d3cf34a1/out/build/CMakeFiles/CMakeTmp

  Run Build Command(s):C:/msys64/usr/bin/ninja.exe cmTC_73947 && [1/2] Building C object 'CMakeFiles\cmTC_73947.dir\testCCompiler.c.obj'
  FAILED: CMakeFiles\cmTC_73947.dir\testCCompiler.c.obj
  C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1428~1.293\bin\HostX64\x64\cl.exe  /nologo   /nologo /EHsc /MD  /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /Fo'CMakeFiles\cmTC_73947.dir\testCCompiler.c.obj' /FdCMakeFiles\cmTC_73947.dir\ /FS -c testCCompiler.c
  /bin/sh: C:PROGRA~2MICROS~12019COMMUN~1VCToolsMSVC1428~1.293binHostX64x64cl.exe: command not found
  ninja: build stopped: subcommand failed.
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