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

Install error #5682

Open
bmarques1995 opened this issue Sep 10, 2023 · 4 comments
Open

Install error #5682

bmarques1995 opened this issue Sep 10, 2023 · 4 comments
Labels
bug Bug, regression, crash build Issues related to build and setup
Milestone

Comments

@bmarques1995
Copy link

bmarques1995 commented Sep 10, 2023

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
@bmarques1995 bmarques1995 added bug Bug, regression, crash needs-triage Awaiting triage labels Sep 10, 2023
@pow2clk pow2clk removed the needs-triage Awaiting triage label Sep 13, 2023
@llvm-beanz llvm-beanz added the build Issues related to build and setup label Sep 13, 2023
@pow2clk pow2clk moved this to Done in HLSL Triage Sep 13, 2023
@pow2clk
Copy link
Member

pow2clk commented Sep 13, 2023

Hi @bmarques1995,

I'm afraid though we'd like to have them working properly, we don't use the cmake install rules ourselves and so they have some problems. I can't say when we might get to this, but if it's something you've resolved and would like to submit a pull request, we'd welcome the contribution!

Thanks for the great bug report

@damyanp
Copy link
Member

damyanp commented Oct 17, 2024

We don't expect the install target to work, but if someone wants to take the time to try and make it work we'd consider a PR for that.

@bmarques1995
Copy link
Author

Hi @bmarques1995,

I'm afraid though we'd like to have them working properly, we don't use the cmake install rules ourselves and so they have some problems. I can't say when we might get to this, but if it's something you've resolved and would like to submit a pull request, we'd welcome the contribution!

Thanks for the great bug report

This is really old, i found a solution, using powershell

@bjconlan
Copy link

bjconlan commented Jan 19, 2025

Alternatively the install-distribution target can be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash build Issues related to build and setup
Projects
Status: Triaged
Development

No branches or pull requests

5 participants