llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.68k stars 11.86k forks source link

[MSVC] LLVM failed to run test on Windows #61369

Open Zhaojun-Liu opened 1 year ago

Zhaojun-Liu commented 1 year ago

Description: LLVM failed to run test on Windows, could you please take a look? Thanks.

Failed Tests (3):
  Clang :: Index/explicit-constructor.cpp
  Clang :: Index/explicit-conversion-function.cpp
  Clang :: SemaCXX/cxx2a-consteval.cpp

The commit we used: 255b2d8 This issue only occurred on x86.

Repro steps:

git clone https://github.com/llvm/llvm-project F:\gitP\llvm\llvm-project

git -C "F:\gitP\llvm\llvm-project" rev-parse --git-dir

git -C "F:\gitP\llvm\llvm-project" clean -xdf

git -C "F:\gitP\llvm\llvm-project" fetch --recurse-submodules=no --force

git -C "F:\gitP\llvm\llvm-project" reset --hard https://github.com/llvm/llvm-project/commit/bccf5999d38f14552f449618c1d72d18613f4285

git -C "F:\gitP\llvm\llvm-project" remote prune origin

mkdir F:\gitP\llvm\llvm-project\build_x86 and cd F:\gitP\llvm\llvm-project\build_x86

cmake -G "Visual Studio 16 2019" -A Win32 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DLLVM_ENABLE_PROJECTS="clang" ..\llvm

msbuild /maxcpucount:4 /p:Platform=Win32 /p:Configuration=RelWithDebInfo /p:PreferredToolArchitecture=x64 LLVM.sln /t:Rebuild 2>&1

set PATH=C:\Python\Python39\;C:\Python\Python39\Scripts;F:\tools\gnuwin32\bin;%PATH%

rename ..\clang\test\Interpreter\execute.cpp execute.cpp.bak

rename ..\clang\test\utils\update_cc_test_checks\check-globals.test check-globals.test.bak

rename ..\clang\test\Driver\hip-link-bundle-archive.hip hip-link-bundle-archive.hip.bak

rename ..\clang\test\SemaCXX\attr-trivial-abi.cpp attr-trivial-abi.cpp.bak

python.exe ../llvm/utils/lit/lit.py -v --no-progress-bar --param build_mode=RelWithDebInfo --param clang_site_config=./tools/clang/test/lit.site.cfg ./tools/clang/test -j 4 --filter-out ="utils/update_cc_test_checks*|clang-rename*|Tooling/clang-diff-json.cpp|Refactor/Extract/ExtractExprIntoFunction.cpp|Refactor/Extract/ObjCProperty.m|Refactor/tool-test-support.c|Preprocessor/traditional-cpp.c|PCH/preamble.c|Lexer/eof-conflict-marker.c|Lexer/conflict-marker.c|Index/cxx11-lambdas.cpp|Index/cxx14-lambdas.cpp|Index/get-cursor.cpp|Index/index-templates.cpp|Index/pch-opaque-value.cpp|Index/record*|Index/retain-comments-from-system-headers.c|Index/usrs*|Format/xmloutput.cpp|ExtractAPI/underscored.c|ExtractAPI/macros.c|Driver/at_file.c|CodeGen/debug-info-file-checksum.c|CodeGen/debug-info-embed-source.c|Analysis/diagnostics/sarif*|ARCMT/p*|ARCMT/objcmt*|ARCMT/designated*|ARCMT/atautorelease.m|ARCMT/allowlisted*|ARCMT/GC-no-finalize-removal.m|utils/update_cc_test_checks*|AST/ast-dump-pragma-json.c|CXX/class/class.mfct/p1-cxx20.cpp|Driver/linker-wrapper.c|ExtractAPI/anonymous_record_no_typedef.c|Lexer/SourceLocationsOverflow.c|Index/copy-assignment-operator.cpp|Index/move-assignment-operator.cpp|SemaCXX/warn-cast-function-type-strict.cpp|SemaCXX/warn-cast-function-type.cpp"

Expected Result: run test successfully.

Actual Result: test.log.9.txt

Edited at 2023-03-27 Recently, we found more cases (274 cases) failed, you can check the detailed log below, thanks. test.log.0327.txt

Zhaojun-Liu commented 1 year ago

Hi @EugeneZelenko, any update of this issue? Thanks.