[llvm] repair and re-enable Windows buildkite presubmit (PR #82393)

Vlad Serebrennikov via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 05:16:02 PST 2024


Endilll wrote:

Looks like this patch isn't enough to address compiler tests that CMake performs during configuration:
```
-- Performing Test SUPPORTS_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS_FLAG - Failed
Change Dir: C:/ws/src/build/build-clang-windows/CMakeFiles/CMakeTmp

Run Build Command(s):C:/ProgramData/chocolatey/bin/ninja.exe cmTC_5fb5b && [1/2] Building CXX object CMakeFiles\cmTC_5fb5b.dir\getErrc.cpp.obj
[2/2] Linking CXX executable cmTC_5fb5b.exe
FAILED: cmTC_5fb5b.exe 
cmd.exe /C "cd . && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_5fb5b.dir --rc="C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe" --mt="C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\mt.exe" --manifests  -- C:\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\link.exe /nologo CMakeFiles\cmTC_5fb5b.dir\getErrc.cpp.obj  /out:cmTC_5fb5b.exe /implib:cmTC_5fb5b.lib /pdb:cmTC_5fb5b.pdb /version:0.0 /machine:x64  /INCREMENTAL:NO /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
MT: command "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\mt.exe /nologo /manifest cmTC_5fb5b.exe.manifest /outputresource:cmTC_5fb5b.exe;#1" failed (exit code 0x1f) with the following output:


mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "cmTC_5fb5b.exe". Operation did not complete successfully because the file contains a virus or potentially unwanted software.


ninja: build stopped: subcommand failed.
```
I also see a seemingly new failure mode during configuration stage:
```
+ cmake -S llvm -B C:/ws/src/build/build-clang-windows -G Ninja -D CMAKE_C_COMPILER_LAUNCHER=sccache -D CMAKE_CXX_COMPILER_LAUNCHER=sccache -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=install-windows -D 'LLVM_ENABLE_PROJECTS=clang;compiler-rt' -D LLVM_ENABLE_ASSERTIONS=ON -D LLVM_BUILD_EXAMPLES=ON -D COMPILER_RT_BUILD_LIBFUZZER=OFF -D COMPILER_RT_BUILD_ORC=OFF
CMake Error at C:/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerId.cmake:777 (file):
  file STRINGS file
  "C:/ws/src/build/build-clang-windows/CMakeFiles/3.20.21032501-MSVC_2/CompilerIdC/CMakeCCompilerId.exe"
  cannot be read.
Call Stack (most recent call first):
  C:/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerId.cmake:11 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
  C:/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerId.cmake:58 (__determine_compiler_id_test)
  C:/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineCCompiler.cmake:118 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:54 (project)


CMake Error at C:/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerId.cmake:870 (file):
  file failed to open for reading (Invalid argument):

    C:/ws/src/build/build-clang-windows/CMakeFiles/3.20.21032501-MSVC_2/CompilerIdC/CMakeCCompilerId.exe
Call Stack (most recent call first):
  C:/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerId.cmake:11 (CMAKE_DETERMINE_COMPILER_ID_CHECK)
  C:/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineCompilerId.cmake:58 (__determine_compiler_id_test)
  C:/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.20/Modules/CMakeDetermineCCompiler.cmake:118 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:54 (project)
```
Full logs are available here: https://buildkite.com/llvm-project/clang-ci/builds/12505#018dc838-dff1-4d5c-8e2a-1a169946360b

https://github.com/llvm/llvm-project/pull/82393


More information about the llvm-commits mailing list