| Issue |
166143
|
| Summary |
LLVM failed to build on Windows with MSVC due to error MSB8066: Custom build for 'C:\gitP\llvm\llvm-project\build_amd64\CMakeFiles\8faa2e5fafa424dfc9382a8c165eb50a\pyvenv.cfg.rule' exited with code 1.
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
KarenHuang2016
|
The MSVC team regularly builds popular open-source projects, including yours, with development versions of the build tools in order to find and fix regressions in the compiler and libraries before they can ship and cause trouble for the world. This also allows us to provide advance notice of breaking changes, which is the case here.
LLVM failed to build on Windows with MSVC due to error MSB8066 like below. Could you please help to take a look? Thanks in advance!
```
825>CustomBuild:
The system cannot find the path specified.
The system cannot find the batch label specified - VCEnd
825>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(237,5): error MSB8066: Custom build for 'C:\gitP\llvm\llvm-project\build_amd64\CMakeFiles\8faa2e5fafa424dfc9382a8c165eb50a\pyvenv.cfg.rule' exited with code 1. [C:\gitP\llvm\llvm-project\build_amd64\tools\clang\test\Analysis\LifetimeSafety\benchmark_venv_setup.vcxproj]
```
It seems the issue is in ".\clang\test\Analysis\LifetimeSafety\CMakeLists.txt" file. Python.exe is located in a different path on Windows. It should be "LIFETIME_BENCHMARK_VENV_DIR}/Scripts/python"
```
COMMAND ${Python3_EXECUTABLE} -m venv ${LIFETIME_BENCHMARK_VENV_DIR}
COMMAND $**{LIFETIME_BENCHMARK_VENV_DIR}/bin/python** -m pip install ...
...
COMMAND ${LIFETIME_BENCHMARK_VENV_DIR}/bin/python ...
```
[Build (34).log](https://github.com/user-attachments/files/23299603/Build.34.log)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs