Git Product home page Git Product logo

Comments (1)

xinxcode avatar xinxcode commented on May 24, 2024

Ok, I've got the solution from GPT that I need to include manually inside the parser.cc:

#include <cctype>

But now I encounter this error:

C:\Users\user\Documents\StableDiffusion\PyTorch\pytorch>python setup.py install --cmake
Building wheel torch-2.3.0a0+gita17979f
-- Building version 2.3.0a0+gita17979f
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_GENERATOR=Ninja -DCMAKE_INCLUDE_PATH=C:\Users\user\Documents\StableDiffusion\PyTorch\mkl\include -DCMAKE_INSTALL_PREFIX=C:\Users\user\Documents\StableDiffusion\PyTorch\pytorch\torch -DCMAKE_PREFIX_PATH=C:\Users\user\AppData\Local\Programs\Python\Python38\Lib\site-packages -DNUMPY_INCLUDE_DIR=C:\Users\user\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -DPYTHON_EXECUTABLE=C:\Users\user\AppData\Local\Programs\Python\Python38\python.exe -DPYTHON_INCLUDE_DIR=C:\Users\user\AppData\Local\Programs\Python\Python38\Include -DPYTHON_LIBRARY=C:\Users\user\AppData\Local\Programs\Python\Python38/libs/python38.lib -DTORCH_BUILD_VERSION=2.3.0a0+gita17979f -DUSE_NUMPY=True C:\Users\user\Documents\StableDiffusion\PyTorch\pytorch
-- The CXX compiler identification is MSVC 19.16.27051.0
-- The C compiler identification is MSVC 19.16.27051.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: C:/Users/user/AppData/Local/Programs/Python/Python38/Scripts/sccache.exe
-- Check for working CXX compiler: C:/Users/user/AppData/Local/Programs/Python/Python38/Scripts/sccache.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.29/Modules/CMakeTestCXXCompiler.cmake:60 (message):
The C++ compiler

"C:/Users/user/AppData/Local/Programs/Python/Python38/Scripts/sccache.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: 'C:/Users/user/Documents/StableDiffusion/PyTorch/pytorch/build/CMakeFiles/CMakeScratch/TryCompile-468alj'

Run Build Command(s): C:/Users/user/AppData/Local/Programs/Python/Python38/Scripts/ninja.exe -v cmTC_310c8
[1/2] C:\Users\user\AppData\Local\Programs\Python\Python38\Scripts\sccache.exe  cl  /nologo /TP   /DWIN32 /D_WINDOWS /GR /EHsc  /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /FoCMakeFiles\cmTC_310c8.dir\testCXXCompiler.cxx.obj /FdCMakeFiles\cmTC_310c8.dir\ /FS -c C:\Users\user\Documents\StableDiffusion\PyTorch\pytorch\build\CMakeFiles\CMakeScratch\TryCompile-468alj\testCXXCompiler.cxx
[2/2] C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_310c8.dir --rc=C:\PROGRA~2\WINDOW~4\10\bin\100162~1.0\x86\rc.exe --mt=C:\PROGRA~2\WINDOW~4\10\bin\100162~1.0\x86\mt.exe --manifests  -- C:\PROGRA~2\MICROS~2\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\link.exe /nologo CMakeFiles\cmTC_310c8.dir\testCXXCompiler.cxx.obj  /out:cmTC_310c8.exe /implib:cmTC_310c8.lib /pdb:cmTC_310c8.pdb /version:0.0 /machine:X86  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
FAILED: cmTC_310c8.exe
C:\Windows\system32\cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_310c8.dir --rc=C:\PROGRA~2\WINDOW~4\10\bin\100162~1.0\x86\rc.exe --mt=C:\PROGRA~2\WINDOW~4\10\bin\100162~1.0\x86\mt.exe --manifests  -- C:\PROGRA~2\MICROS~2\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\link.exe /nologo CMakeFiles\cmTC_310c8.dir\testCXXCompiler.cxx.obj  /out:cmTC_310c8.exe /implib:cmTC_310c8.lib /pdb:cmTC_310c8.pdb /version:0.0 /machine:X86  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
LINK Pass 1: command "C:\PROGRA~2\MICROS~2\2017\COMMUN~1\VC\Tools\MSVC\1416~1.270\bin\Hostx86\x86\link.exe /nologo CMakeFiles\cmTC_310c8.dir\testCXXCompiler.cxx.obj /out:cmTC_310c8.exe /implib:cmTC_310c8.lib /pdb:cmTC_310c8.pdb /version:0.0 /machine:X86 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\cmTC_310c8.dir/intermediate.manifest CMakeFiles\cmTC_310c8.dir/manifest.res" failed (exit code 1104) with the following output:
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
ninja: build stopped: subcommand failed.

from instant-ngp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.