[Clang] A lof of clang-check errors on unmodified repository

Hey I’m having problem with check-clang failing pretty hard on fresh unmodified master branch build of clang on windows using msvc.

Starts with:

llvm-lit.py: D:\tmp\llvm-project\llvm\utils\lit\lit\llvm\config.py:46: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: D:\tmp\llvm-project\llvm\utils\lit\lit\llvm\config.py:433: note: using clang: d:\tmp\llvm-project\build\bin\clang.exe
-- Testing: 27951 tests, 24 workers --
Testing:  0.
FAIL: Clang :: ARCMT/objcmt-arc-cf-annotations.m (343 of 27951)
******************** TEST 'Clang :: ARCMT/objcmt-arc-cf-annotations.m' FAILED ********************
Script:
--
: 'RUN: at line 1';   rm -rf D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\objcmt-arc-cf-annotations.m.tmp
: 'RUN: at line 2';   d:\tmp\llvm-project\build\bin\clang.exe -cc1 -internal-isystem d:\tmp\llvm-project\build\lib\clang\13.0.0\include -nostdsysteminc -fblocks -objcmt-migrate-annotation -objcmt-migrate-instancetype -objcmt-migrate-readwrite-property -mt-migrate-directory D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\objcmt-arc-cf-annotations.m.tmp D:\tmp\llvm-project\clang\test\ARCMT\objcmt-arc-cf-annotations.m -x objective-c -triple x86_64-apple-darwin11
: 'RUN: at line 3';   c-arcmt-test -mt-migrate-directory D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\objcmt-arc-cf-annotations.m.tmp | arcmt-test -verify-transformed-files D:\tmp\llvm-project\clang\test\ARCMT\objcmt-arc-cf-annotations.m.result
: 'RUN: at line 4';   d:\tmp\llvm-project\build\bin\clang.exe -cc1 -internal-isystem d:\tmp\llvm-project\build\lib\clang\13.0.0\include -nostdsysteminc -fblocks -triple x86_64-apple-darwin10 -fsyntax-only -x objective-c D:\tmp\llvm-project\clang\test\ARCMT\objcmt-arc-cf-annotations.m.result
--
Exit Code: 1

Command Output (stdout):
--
$ ":" "RUN: at line 1"
$ "rm" "-rf" "D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\objcmt-arc-cf-annotations.m.tmp"
$ ":" "RUN: at line 2"
$ "d:\tmp\llvm-project\build\bin\clang.exe" "-cc1" "-internal-isystem" "d:\tmp\llvm-project\build\lib\clang\13.0.0\include" "-nostdsysteminc" "-fblocks" "-objcmt-migrate-annotation" "-objcmt-migrate-instancetype" "-objcmt-migrate-readwrite-property" "-mt-migrate-directory" "D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\objcmt-arc-cf-annotations.m.tmp" "D:\tmp\llvm-project\clang\test\ARCMT\objcmt-arc-cf-annotations.m" "-x" "objective-c" "-triple" "x86_64-apple-darwin11"
$ ":" "RUN: at line 3"
$ "c-arcmt-test" "-mt-migrate-directory" "D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\objcmt-arc-cf-annotations.m.tmp"
$ "arcmt-test" "-verify-transformed-files" "D:\tmp\llvm-project\clang\test\ARCMT\objcmt-arc-cf-annotations.m.result"
# command stderr:
error: 'D:\tmp\llvm-project\clang\test\ARCMT\objcmt-arc-cf-annotations.m.result' is different than 'C:\Users\uiksl\AppData\Local\Temp\objcmt-arc-cf-annotations.m-7cf73f.m'

error: command failed with exit status: 1

--

********************
Testing:  0.
FAIL: Clang :: ARCMT/GC-no-finalize-removal.m (352 of 27951)
******************** TEST 'Clang :: ARCMT/GC-no-finalize-removal.m' FAILED ********************
Script:
--
: 'RUN: at line 1';   d:\tmp\llvm-project\build\bin\clang.exe -cc1 -internal-isystem d:\tmp\llvm-project\build\lib\clang\13.0.0\include -nostdsysteminc -triple x86_64-apple-macosx10.7 -fsyntax-only -fobjc-runtime-has-weak -fobjc-arc -x objective-c D:\tmp\llvm-project\clang\test\ARCMT\GC-no-finalize-removal.m.result
: 'RUN: at line 2';   arcmt-test --args -triple x86_64-apple-macosx10.7 -fsyntax-only -fobjc-gc-only -no-finalize-removal -x objective-c D:\tmp\llvm-project\clang\test\ARCMT\GC-no-finalize-removal.m > D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\GC-no-finalize-removal.m.tmp
: 'RUN: at line 3';   diff D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\GC-no-finalize-removal.m.tmp D:\tmp\llvm-project\clang\test\ARCMT\GC-no-finalize-removal.m.result
: 'RUN: at line 4';   arcmt-test --args -triple x86_64-apple-macosx10.7 -fsyntax-only -fobjc-gc-only -no-finalize-removal -x objective-c++ D:\tmp\llvm-project\clang\test\ARCMT\GC-no-finalize-removal.m > D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\GC-no-finalize-removal.m.tmp
: 'RUN: at line 5';   diff D:\tmp\llvm-project\build\tools\clang\test\ARCMT\Output\GC-no-finalize-removal.m.tmp D:\tmp\llvm-project\clang\test\ARCMT\GC-no-finalize-removal.m.result
--
Exit Code: 1

and goes on: clang-check errors - Pastebin.com

I canceled after errors started coming but if I left it for longer there would be even more fails.

Tried re-pulling whole repository and recompiling. I’ve had this problem last time I tried a month ago so it’s not something recent.