microsoft / microsoft/DirectXShaderCompiler
Install error
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 3.7k
- Forks
- 900
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 44
Description
Description
When you try to install the dxc, an error is occuring
Steps to Reproduce
build.cmd:
REM on dxc directory
set current_dir=%cd%
call ./utils/hct/hctstart %current_dir% %current_dir%\dependencies\dxc
call ./utils/hct/hctbuild -Release -no-parallel -installdir "%current_dir%\install"
cmake --build ./dependencies/dxc --config Release --target install
Actual Behavior
CMake Error at tools/llvm-as/cmake_install.cmake:39 (file):
file INSTALL cannot find
"F:/cpp/dxc_install/modules/dxc/dependencies/dxc/Release/bin/llvm-as.exe":
File exists.
Call Stack (most recent call first):
tools/cmake_install.cmake:47 (include)
cmake_install.cmake:117 (include)
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: O comando "setlocal [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: :cmEnd [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: :cmErrorLevel [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: exit /b %1 [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: :cmDone [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(161,5): error MSB3073: :VCEnd" foi encerrado com o código 1. [F:\cpp\dxc_install\modules\dxc\dependencies\dxc\install.vcxproj]
Environment
- DXC version: not applied, is a cmake problem
- Host Operating System: Windows
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Windows install using build.cmd, utils/hct/hctstart, and utils/hct/hctbuild, then inspect dependencies/dxc/tools/llvm-as/cmake_install.cmake at the reported failing line. Compare the generated Release paths with the files produced by the build. Done means the CMake install target completes successfully and places the expected binaries in the install directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100