Skip to content

Instantly share code, notes, and snippets.

@AmosLewis
Last active October 27, 2025 19:18
Show Gist options
  • Save AmosLewis/e1c5bfbfe450230b41cab957a547f03c to your computer and use it in GitHub Desktop.
Save AmosLewis/e1c5bfbfe450230b41cab957a547f03c to your computer and use it in GitHub Desktop.

reset windows with

choco install visualstudio2022buildtools -y --params "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.CMake.Project --add Microsoft.VisualStudio.Component.VC.ATL --add Microsoft.VisualStudio.Component.Windows11SDK.22621"
choco install git.install -y --params "'/GitAndUnixToolsOnPath'"
choco install cmake --version=3.31.0 -y
choco install ninja -y
choco install ccache -y
choco install python -y
choco install strawberryperl -y
(.venv) C:\TheRock\external-builds\pytorch>python build_prod_wheels.py build ^
More?   --install-rocm --index-url https://rocm.nightlies.amd.com/v2/gfx1150/ ^
More?   --pytorch-dir C:/b/pytorch ^
More?   --pytorch-audio-dir C:/b/audio ^
More?   --pytorch-vision-dir C:/b/vision ^
More?   --output-dir C:/tmp/pyout ^
More?   --clean
++ Exec [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m pip cache remove rocm_sdk
WARNING: No matching packages for pattern "rocm_sdk"
Files removed: 0 (0 bytes)
++ Exec [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m pip install --force-reinstall --pre --index-url https://rocm.nightlies.amd.com/v2/gfx1150/ 'rocm[libraries,devel]>1.0'
Looking in indexes: https://rocm.nightlies.amd.com/v2/gfx1150/
Collecting rocm>1.0 (from rocm[devel,libraries]>1.0)
  Using cached rocm-7.10.0a20251027-py3-none-any.whl
Collecting rocm-sdk-core==7.10.0a20251027 (from rocm>1.0->rocm[devel,libraries]>1.0)
  Using cached https://rocm.nightlies.amd.com/v2/gfx1150/rocm_sdk_core-7.10.0a20251027-py3-none-win_amd64.whl (628.4 MB)
Collecting rocm-sdk-libraries-gfx1150==7.10.0a20251027 (from rocm[devel,libraries]>1.0)
  Using cached https://rocm.nightlies.amd.com/v2/gfx1150/rocm_sdk_libraries_gfx1150-7.10.0a20251027-py3-none-win_amd64.whl (156.9 MB)
Collecting rocm-sdk-devel==7.10.0a20251027 (from rocm[devel,libraries]>1.0)
  Using cached https://rocm.nightlies.amd.com/v2/gfx1150/rocm_sdk_devel-7.10.0a20251027-py3-none-win_amd64.whl (2574.7 MB)
Installing collected packages: rocm-sdk-libraries-gfx1150, rocm-sdk-devel, rocm-sdk-core, rocm
  Attempting uninstall: rocm-sdk-libraries-gfx1150
    Found existing installation: rocm-sdk-libraries-gfx1150 7.10.0a20251027
    Uninstalling rocm-sdk-libraries-gfx1150-7.10.0a20251027:
      Successfully uninstalled rocm-sdk-libraries-gfx1150-7.10.0a20251027
  Attempting uninstall: rocm-sdk-devel
    Found existing installation: rocm-sdk-devel 7.10.0a20251027
    Uninstalling rocm-sdk-devel-7.10.0a20251027:
      Successfully uninstalled rocm-sdk-devel-7.10.0a20251027
  Attempting uninstall: rocm-sdk-core
    Found existing installation: rocm-sdk-core 7.10.0a20251027
    Uninstalling rocm-sdk-core-7.10.0a20251027:
      Successfully uninstalled rocm-sdk-core-7.10.0a20251027
  Attempting uninstall: rocm
    Found existing installation: rocm 7.10.0a20251027
    Uninstalling rocm-7.10.0a20251027:
      Successfully uninstalled rocm-7.10.0a20251027
Successfully installed rocm-7.10.0a20251027 rocm-sdk-core-7.10.0a20251027 rocm-sdk-devel-7.10.0a20251027 rocm-sdk-libraries-gfx1150-7.10.0a20251027
++ Capture [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m rocm_sdk version
Installed version: 7.10.0a20251027
++ Capture [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m rocm_sdk version
++ Capture [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m rocm_sdk path --cmake
++ Capture [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m rocm_sdk path --bin
++ Capture [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m rocm_sdk path --root
rocm version 7.10.0a20251027:
  PYTHON VERSION: 3.12.10 (tags/v3.12.10:0cc8128, Apr  8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
  CMAKE_PREFIX_PATH = C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\cmake
  BIN = C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\bin
  ROCM_HOME = C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel
  PATH = C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\bin;C:\TheRock\.venv\Scripts;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\VCPackages;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\bin\Roslyn;C:\Program Files\Microsoft Visual Studio\2022\Community\Team Tools\DiagnosticsHub\Collector;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\bin;C:\Program Files\Microsoft Visual Studio\2022\Community\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\;C:\Python314\Scripts\;C:\Python314\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Incredibuild;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Program Files\CMake\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files (x86)\DVC (Data Version Control);C:\Users\chiliu12\AppData\Local\Microsoft\WindowsApps;C:\Users\chiliu12\AppData\Local\Programs\Git\cmd;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\VC\Linux\bin\ConnectionManagerExe;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\vcpkg
++ Capture [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m rocm_sdk targets
  Using default PYTORCH_ROCM_ARCH from rocm-sdk targets: gfx1150
++ Capture [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m rocm_sdk path --root
--- Not building triton (no --triton-dir)
  Default PYTORCH_BUILD_VERSION: 2.10.0a0+rocmsdk20251027
++ Capture [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m rocm_sdk version
--- PYTORCH_EXTRA_INSTALL_REQUIREMENTS = rocm[libraries]==7.10.0a20251027
++ Capture [C:\TheRock\external-builds\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m rocm_sdk version
Copying libomp from 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.44.35112\debug_nonredist\x64\Microsoft.VC143.OpenMP.LLVM\libomp140.x86_64.dll' to 'C:\b\pytorch\torch\lib'
  Flash attention enabled: False
+++ Uninstalling pytorch:
++ Exec [C:\Users\chiliu12\AppData\Local\Temp]$ 'C:\TheRock\.venv\Scripts\python.exe' -m pip uninstall torch -y
WARNING: Skipping torch as it is not installed.
+++ Installing pytorch requirements:
++ Exec [C:\b\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m pip install -r 'C:\b\pytorch\requirements.txt'
Requirement already satisfied: setuptools>=70.1.0 in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements-build.txt (line 2)) (80.9.0)
Requirement already satisfied: cmake>=3.27 in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements-build.txt (line 3)) (4.1.2)
Collecting ninja (from -r C:\b\pytorch\requirements-build.txt (line 4))
  Using cached ninja-1.13.0-py3-none-win_amd64.whl.metadata (5.1 kB)
Requirement already satisfied: numpy in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements-build.txt (line 5)) (2.3.4)
Requirement already satisfied: packaging in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements-build.txt (line 6)) (25.0)
Requirement already satisfied: pyyaml in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements-build.txt (line 7)) (6.0.2)
Requirement already satisfied: requests in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements-build.txt (line 8)) (2.32.5)
Requirement already satisfied: six in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements-build.txt (line 9)) (1.17.0)
Requirement already satisfied: typing-extensions>=4.10.0 in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements-build.txt (line 10)) (4.15.0)
Requirement already satisfied: pip in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements-build.txt (line 11)) (25.2)
Requirement already satisfied: expecttest>=0.3.0 in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 8)) (0.3.0)
Requirement already satisfied: filelock in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 9)) (3.20.0)
Requirement already satisfied: fsspec>=0.8.5 in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 10)) (2025.9.0)
Requirement already satisfied: hypothesis in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 11)) (6.142.3)
Requirement already satisfied: jinja2 in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 12)) (3.1.6)
Requirement already satisfied: lintrunner in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 13)) (0.12.7)
Requirement already satisfied: networkx>=2.5.1 in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 14)) (3.5)
Requirement already satisfied: optree>=0.13.0 in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 15)) (0.17.0)
Requirement already satisfied: psutil in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 16)) (7.1.1)
Requirement already satisfied: sympy>=1.13.3 in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 17)) (1.14.0)
Requirement already satisfied: wheel in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 19)) (0.45.1)
Requirement already satisfied: build[uv] in c:\therock\.venv\lib\site-packages (from -r C:\b\pytorch\requirements.txt (line 7)) (1.3.0)
Requirement already satisfied: charset_normalizer<4,>=2 in c:\therock\.venv\lib\site-packages (from requests->-r C:\b\pytorch\requirements-build.txt (line 8)) (3.4.4)
Requirement already satisfied: idna<4,>=2.5 in c:\therock\.venv\lib\site-packages (from requests->-r C:\b\pytorch\requirements-build.txt (line 8)) (3.11)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\therock\.venv\lib\site-packages (from requests->-r C:\b\pytorch\requirements-build.txt (line 8)) (2.5.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\therock\.venv\lib\site-packages (from requests->-r C:\b\pytorch\requirements-build.txt (line 8)) (2025.10.5)
Requirement already satisfied: pyproject_hooks in c:\therock\.venv\lib\site-packages (from build[uv]->-r C:\b\pytorch\requirements.txt (line 7)) (1.2.0)
Requirement already satisfied: colorama in c:\therock\.venv\lib\site-packages (from build[uv]->-r C:\b\pytorch\requirements.txt (line 7)) (0.4.6)
Requirement already satisfied: uv>=0.1.18 in c:\therock\.venv\lib\site-packages (from build[uv]->-r C:\b\pytorch\requirements.txt (line 7)) (0.9.5)
Requirement already satisfied: attrs>=22.2.0 in c:\therock\.venv\lib\site-packages (from hypothesis->-r C:\b\pytorch\requirements.txt (line 11)) (25.4.0)
Requirement already satisfied: sortedcontainers<3.0.0,>=2.1.0 in c:\therock\.venv\lib\site-packages (from hypothesis->-r C:\b\pytorch\requirements.txt (line 11)) (2.4.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\therock\.venv\lib\site-packages (from jinja2->-r C:\b\pytorch\requirements.txt (line 12)) (3.0.3)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\therock\.venv\lib\site-packages (from sympy>=1.13.3->-r C:\b\pytorch\requirements.txt (line 17)) (1.3.0)
Using cached ninja-1.13.0-py3-none-win_amd64.whl (309 kB)
Installing collected packages: ninja
Successfully installed ninja-1.13.0
++ Exec [C:\b\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' -m pip uninstall ninja -y
Found existing installation: ninja 1.13.0
Uninstalling ninja-1.13.0:
  Successfully uninstalled ninja-1.13.0
+++ Building pytorch:
++ Exec [C:\b\pytorch]$ 'C:\TheRock\.venv\Scripts\python.exe' setup.py bdist_wheel
:: Env:
  PYTHONUTF8=1
  CMAKE_PREFIX_PATH=C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\cmake
  ROCM_HOME=C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel
  ROCM_PATH=C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel
  PYTORCH_ROCM_ARCH=gfx1150
  USE_KINETO=OFF
  HIP_CLANG_PATH=C:/TheRock/.venv/Lib/site-packages/_rocm_sdk_devel/lib/llvm/bin
  CC=C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\llvm\bin\clang-cl.exe
  CXX=C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\llvm\bin\clang-cl.exe
  HIP_DEVICE_LIB_PATH=C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\llvm\amdgcn\bitcode
  USE_ROCM=ON
  USE_CUDA=OFF
  USE_MPI=OFF
  USE_NUMA=OFF
  PYTORCH_BUILD_VERSION=2.10.0a0+rocmsdk20251027
  PYTORCH_BUILD_NUMBER=1
  PYTORCH_EXTRA_INSTALL_REQUIREMENTS=rocm[libraries]==7.10.0a20251027
  USE_FLASH_ATTENTION=0
  USE_MEM_EFF_ATTENTION=0
  DISTUTILS_USE_SDK=1
  BUILD_TEST=0
Building wheel torch-2.10.0a0+rocmsdk20251027
-- Building version 2.10.0a0+rocmsdk20251027
C:\TheRock\.venv\Lib\site-packages\setuptools\_distutils\_msvccompiler.py:12: UserWarning: _get_vc_env is private; find an alternative (pypa/distutils#340)
  warnings.warn(
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=False -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\b\pytorch\torch -DCMAKE_PREFIX_PATH=C:\TheRock\.venv\Lib\site-packages;C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\cmake -DPython_EXECUTABLE=C:\TheRock\.venv\Scripts\python.exe -DPython_NumPy_INCLUDE_DIR=C:\TheRock\.venv\Lib\site-packages\numpy\_core\include -DTORCH_BUILD_VERSION=2.10.0a0+rocmsdk20251027 -DUSE_CUDA=OFF -DUSE_FLASH_ATTENTION=0 -DUSE_KINETO=OFF -DUSE_MEM_EFF_ATTENTION=0 -DUSE_MPI=OFF -DUSE_NUMA=OFF -DUSE_NUMPY=True -DUSE_ROCM=ON C:\b\pytorch
CMake Deprecation Warning at CMakeLists.txt:8 (cmake_policy):
  The OLD behavior for policy CMP0126 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The CXX compiler identification is Clang 20.0.0 with MSVC-like command-line
-- The C compiler identification is Clang 20.0.0 with MSVC-like command-line
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: C:/TheRock/.venv/Lib/site-packages/_rocm_sdk_devel/lib/llvm/bin/clang-cl.exe
-- Check for working CXX compiler: C:/TheRock/.venv/Lib/site-packages/_rocm_sdk_devel/lib/llvm/bin/clang-cl.exe - broken
CMake Error at C:/TheRock/.venv/Lib/site-packages/cmake/data/share/cmake-4.1/Modules/CMakeTestCXXCompiler.cmake:73 (message):
  The C++ compiler

    "C:/TheRock/.venv/Lib/site-packages/_rocm_sdk_devel/lib/llvm/bin/clang-cl.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 'C:/b/pytorch/build/CMakeFiles/CMakeScratch/TryCompile-4ld8z3'

    Run Build Command(s): C:/ProgramData/chocolatey/bin/ninja.exe -v cmTC_1a90b
    [1/2] C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\llvm\bin\clang-cl.exe  /nologo -TP   /DWIN32 /D_WINDOWS /EHsc  /Ob0 /Od /RTC1 -MDd -Zi /showIncludes /FoCMakeFiles\cmTC_1a90b.dir\testCXXCompiler.cxx.obj /FdCMakeFiles\cmTC_1a90b.dir\ -c -- C:\b\pytorch\build\CMakeFiles\CMakeScratch\TryCompile-4ld8z3\testCXXCompiler.cxx
    [2/2] C:\WINDOWS\system32\cmd.exe /C "cd . && C:\TheRock\.venv\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --msvc-ver=1944 --intdir=CMakeFiles\cmTC_1a90b.dir --rc=C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\Llvm\x64\bin\llvm-rc.exe --mt=C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\Llvm\x64\bin\llvm-mt.exe --manifests  -- C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\llvm\bin\lld-link.exe /nologo CMakeFiles\cmTC_1a90b.dir\testCXXCompiler.cxx.obj  /out:cmTC_1a90b.exe /implib:cmTC_1a90b.lib /pdb:cmTC_1a90b.pdb /version:0.0 /machine:x64  /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: [code=4294967295] cmTC_1a90b.exe
    C:\WINDOWS\system32\cmd.exe /C "cd . && C:\TheRock\.venv\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_exe --msvc-ver=1944 --intdir=CMakeFiles\cmTC_1a90b.dir --rc=C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\Llvm\x64\bin\llvm-rc.exe --mt=C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\Llvm\x64\bin\llvm-mt.exe --manifests  -- C:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\llvm\bin\lld-link.exe /nologo CMakeFiles\cmTC_1a90b.dir\testCXXCompiler.cxx.obj  /out:cmTC_1a90b.exe /implib:cmTC_1a90b.lib /pdb:cmTC_1a90b.pdb /version:0.0 /machine:x64  /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:\TheRock\.venv\Lib\site-packages\_rocm_sdk_devel\lib\llvm\bin\lld-link.exe /nologo CMakeFiles\cmTC_1a90b.dir\testCXXCompiler.cxx.obj /out:cmTC_1a90b.exe /implib:cmTC_1a90b.lib /pdb:cmTC_1a90b.pdb /version:0.0 /machine:x64 /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_1a90b.dir/intermediate.manifest CMakeFiles\cmTC_1a90b.dir/manifest.res" failed (exit code 1) with the following output:
    lld-link: error: could not open 'kernel32.lib': no such file or directory
    lld-link: error: could not open 'user32.lib': no such file or directory
    lld-link: error: could not open 'gdi32.lib': no such file or directory
    lld-link: error: could not open 'winspool.lib': no such file or directory
    lld-link: error: could not open 'shell32.lib': no such file or directory
    lld-link: error: could not open 'ole32.lib': no such file or directory
    lld-link: error: could not open 'oleaut32.lib': no such file or directory
    lld-link: error: could not open 'uuid.lib': no such file or directory
    lld-link: error: could not open 'comdlg32.lib': no such file or directory
    lld-link: error: could not open 'advapi32.lib': no such file or directory
    ninja: build stopped: subcommand failed.





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:28 (project)


-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
  File "C:\TheRock\external-builds\pytorch\build_prod_wheels.py", line 989, in <module>
    main(sys.argv[1:])
  File "C:\TheRock\external-builds\pytorch\build_prod_wheels.py", line 985, in main
    args.func(args)
  File "C:\TheRock\external-builds\pytorch\build_prod_wheels.py", line 443, in do_build
    do_build_pytorch(
  File "C:\TheRock\external-builds\pytorch\build_prod_wheels.py", line 768, in do_build_pytorch
    exec([sys.executable, "setup.py", "bdist_wheel"], cwd=pytorch_dir, env=env)
  File "C:\TheRock\external-builds\pytorch\build_prod_wheels.py", line 172, in exec
    subprocess.check_call(args, cwd=str(cwd), env=full_env)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\TheRock\\.venv\\Scripts\\python.exe', 'setup.py', 'bdist_wheel']' returned non-zero exit status 1.
  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment