CAS errors during the compiler-rt build on Windows ARM64
I get these CAS errors during the compiler-rt build of the native windows arm64 toolchain build.
These fail in various ways and rerunning sometimes works. This seems like race conditions / CAS storage corruptions. This seems specific to Windows ARM64 as we don't see this on X86-64.
```
FAILED: [code=1] CMakeFiles/clang_rt.builtins-aarch64.dir/divdc3.c.obj
S:\b\5\bin\clang-cache.exe S:\b\5\bin\clang-cl.exe --target=aarch64-unknown-windows-msvc /nologo -DHAS_ASM_LSE -IS:\SourceCache\llvm-project\compiler-rt\lib\builtins\..\..\..\third-party\siphash\include /GS- /Gw /Gy /Oy /Oi /Zc:inline /O2 /Ob2 /DNDEBUG /std:c11 -fno-lto /Zl -fno-builtin -DCOMPILER_RT_HAS_FLOAT16 /showIncludes /FoCMakeFiles\clang_rt.builtins-aarch64.dir\divdc3.c.obj /FdCMakeFiles\clang_rt.builtins-aarch64.dir\clang_rt.builtins-aarch64.pdb -c -- S:\SourceCache\llvm-project\compiler-rt\lib\builtins\divdc3.c
fatal error: CAS filesystem cannot be initialized from root-id 'llvmcas://ef27cca6af83a1fba43f2790fe900cc1cb2268890f2f55d2dd9e4e025d93c58f': include-tree CASID does not exist
```
```
FAILED: [code=1] lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.aarch64.dir/sanitizer_deadlock_detector1.cpp.obj
S:\b\5\bin\clang-cache.exe S:\b\5\bin\clang-cl.exe --target=aarch64-unknown-windows-msvc /nologo -TP -DHAVE_RPC_XDR_H=0 -IS:\SourceCache\llvm-project\compiler-rt\lib\sanitizer_common\.. /GS- /Gw /Gy /Oy /Oi /Zc:inline /Zc:__cplusplus /W4 -Wno-unused-parameter /O2 /Ob2 /DNDEBUG -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /Zl -Wno-format /GR- -Wframe-larger-than=570 -Wglobal-constructors /showIncludes /Folib\sanitizer_common\CMakeFiles\RTSanitizerCommon.aarch64.dir\sanitizer_deadlock_detector1.cpp.obj /Fdlib\sanitizer_common\CMakeFiles\RTSanitizerCommon.aarch64.dir\ -c -- S:\SourceCache\llvm-project\compiler-rt\lib\sanitizer_common\sanitizer_deadlock_detector1.cpp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
Exception Code: 0xE0000001
#0 0x00007ff91c7650d4 (C:\Windows\System32\KERNELBASE.dll+0x1250d4)
#1 0x935b7ff6b02f068c
```
```
S:\b\aarch64-unknown-windows-msvc\ClangRuntime>S:\b\5\bin\clang-cache.exe S:\b\5\bin\clang-cl.exe --target=aarch64-unknown-windows-msvc /nologo -TP -DHAVE_RPC_XDR_H=0 -IS:\SourceCache\llvm-project\compiler-rt\lib\sanitizer_common\.. /GS- /Gw /Gy /Oy /Oi /Zc:inline /Zc:__cplusplus /W4 -Wno-unused-parameter /O2 /Ob2 /DNDEBUG -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /Zl -Wno-format /GR- -Wframe-larger-than=570 -Wglobal-constructors /showIncludes /Folib\sanitizer_common\CMakeFiles\RTSanitizerCommon.aarch64.dir\sanitizer_deadlock_detector1.cpp.obj /Fdlib\sanitizer_common\CMakeFiles\RTSanitizerCommon.aarch64.dir\ -c -- S:\SourceCache\llvm-project\compiler-rt\lib\sanitizer_common\sanitizer_deadlock_detector1.cpp
Assertion failed: Index < this->size() && "Invalid index!", file S:/SourceCache/llvm-project/llvm/include\llvm/ADT/ArrayRef.h, line 452
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: S:\\b\\5\\bin\\clang-cache.exe S:\\b\\5\\bin\\clang-cl.exe --target=aarch64-unknown-windows-msvc /nologo -TP -DHAVE_RPC_XDR_H=0 -IS:\\SourceCache\\llvm-project\\compiler-rt\\lib\\sanitizer_common\\.. /GS- /Gw /Gy /Oy /Oi /Zc:inline /Zc:__cplusplus /W4 -Wno-unused-parameter /O2 /Ob2 /DNDEBUG -std:c++17 -MD -fno-builtin -fno-sanitize=safe-stack -fno-lto /Oy- /GS- /Zc:threadSafeInit- -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta /Z7 -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 -ftrivial-auto-var-init=pattern /Zl -Wno-format /GR- -Wframe-larger-than=570 -Wglobal-constructors /showIncludes /Folib\\sanitizer_common\\CMakeFiles\\RTSanitizerCommon.aarch64.dir\\sanitizer_deadlock_detector1.cpp.obj /Fdlib\\sanitizer_common\\CMakeFiles\\RTSanitizerCommon.aarch64.dir\\ -c -- S:\\SourceCache\\llvm-project\\compiler-rt\\lib\\sanitizer_common\\sanitizer_deadlock_detector1.cpp
Exception Code: 0xC000001D
#0 0x00007ff6b02e5ac8 (S:\b\5\bin\clang-cache.exe+0x4f5ac8)
#1 0x00007ff91be1ae50 (C:\Windows\System32\ucrtbase.dll+0x7ae50)
#2 0x295a7ff91be1ba5c
```
```
FAILED: [code=1] CMakeFiles/clang_rt.builtins-x86_64.dir/addvsi3.c.obj
S:\b\5\bin\clang-cache.exe S:\b\5\bin\clang-cl.exe --target=x86_64-unknown-windows-msvc /nologo -IS:/SourceCache/llvm-project/compiler-rt/lib/builtins/../../../third-party/siphash/i
nclude /GS- /Gw /Gy /Oy /Oi /Zc:inline /O2 /Ob2 /DNDEBUG /std:c11 -fno-lto /Zl -fno-builtin -DCOMPILER_RT_HAS_FLOAT16 /showIncludes /FoCMakeFiles/clang_rt.builtins-x86_64.dir/addvsi3.
c.obj /FdCMakeFiles\clang_rt.builtins-x86_64.dir\clang_rt.builtins-x86_64.pdb -c -- S:/SourceCache/llvm-project/compiler-rt/lib/builtins/addvsi3.c
LLVM ERROR: OnDiskCAS: corrupt internal reference
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
Exception Code: 0xC000001D
#0 0x00007ff6b02e5ac8 (S:\b\5\bin\clang-cache.exe+0x4f5ac8)
#1 0x00007ff91be1ae50 (C:\Windows\System32\ucrtbase.dll+0x7ae50)
#2 0xca337ff91be1ba5c
```
```
FAILED: [code=1] CMakeFiles/clang_rt.builtins-aarch64.dir/divtf3.c.obj
S:\b\5\bin\clang-cache.exe S:\b\5\bin\clang-cl.exe --target=aarch64-unknown-windows-msvc /nologo -DHAS_ASM_LSE -IS:\SourceCache\llvm-project\compiler-rt\lib\builtins\..\..\..\third-party\siphash\include /GS- /Gw /Gy /Oy /Oi /Zc:inline /O2 /Ob2 /DNDEBUG /std:c11 -fno-lto /Zl -fno-builtin -DCOMPILER_RT_HAS_FLOAT16 /showIncludes /FoCMakeFiles\clang_rt.builtins-aarch64.dir\divtf3.c.obj /FdCMakeFiles\clang_rt.builtins-aarch64.dir\clang_rt.builtins-aarch64.pdb -c -- S:\SourceCache\llvm-project\compiler-rt\lib\builtins\divtf3.c
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
Exception Code: 0xE0000001
#0 0x00007ff91c7650d4 (C:\Windows\System32\KERNELBASE.dll+0x1250d4)
#1 0x572c7ff6b02f068c
```
```
FAILED: [code=1] CMakeFiles/clang_rt.builtins-aarch64.dir/divtf3.c.obj
S:\b\5\bin\clang-cache.exe S:\b\5\bin\clang-cl.exe --target=aarch64-unknown-windows-msvc /nologo -DHAS_ASM_LSE -IS:\SourceCache\llvm-project\compiler-rt\lib\builtins\..\..\..\third-p
arty\siphash\include /GS- /Gw /Gy /Oy /Oi /Zc:inline /O2 /Ob2 /DNDEBUG /std:c11 -fno-lto /Zl -fno-builtin -DCOMPILER_RT_HAS_FLOAT16 /showIncludes /FoCMakeFiles\clang_rt.builtins-aarch
64.dir\divtf3.c.obj /FdCMakeFiles\clang_rt.builtins-aarch64.dir\clang_rt.builtins-aarch64.pdb -c -- S:\SourceCache\llvm-project\compiler-rt\lib\builtins\divtf3.c
Assertion failed: isValid(*this), file S:/SourceCache/llvm-project/clang/include\clang/CAS/IncludeTree.h, line 28
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
Exception Code: 0xC000001D
#0 0x00007ff6b02e5ac8 (S:\b\5\bin\clang-cache.exe+0x4f5ac8)
#1 0x00007ff91be1ae50 (C:\Windows\System32\ucrtbase.dll+0x7ae50)
#2 0xc644fff91be1ba5c
```
```
FAILED: [code=1] CMakeFiles/clang_rt.builtins-aarch64.dir/mulosi4.c.obj
S:\b\5\bin\clang-cache.exe S:\b\5\bin\clang-cl.exe --target=aarch64-unknown-windows-msvc /nologo -DHAS_ASM_LSE -IS:\SourceCache\llvm-project\compiler-rt\lib\builtins\..\..\..\third-p
arty\siphash\include /GS- /Gw /Gy /Oy /Oi /Zc:inline /O2 /Ob2 /DNDEBUG /std:c11 -fno-lto /Zl -fno-builtin -DCOMPILER_RT_HAS_FLOAT16 /showIncludes /FoCMakeFiles\clang_rt.builtins-aarch
64.dir\mulosi4.c.obj /FdCMakeFiles\clang_rt.builtins-aarch64.dir\clang_rt.builtins-aarch64.pdb -c -- S:\SourceCache\llvm-project\compiler-rt\lib\builtins\mulosi4.c
LLVM ERROR: OnDiskCAS: corrupt internal reference
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
Exception Code: 0xC000001D
#0 0x00007ff6b02e5ac8 (S:\b\5\bin\clang-cache.exe+0x4f5ac8)
#1 0x00007ff91be1ae50 (C:\Windows\System32\ucrtbase.dll+0x7ae50)
```
```
Assertion failed: IncludeStack.back().CurIncludeIndex == IncludeStack.back().Tree.getNumIncludes(), file S:/SourceCache/llvm-project/clang/lib/Frontend/IncludeTreePPActions.cpp, line 212
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: S:\\b\\5\\bin\\clang-cache.exe S:\\b\\5\\bin\\clang-cl.exe --target=i686-unknown-windows-msvc /nologo -IS:\\SourceCache\\llvm-project\\compiler-rt\\lib\\builtins\\..\\..\\..\\third-party\\siphash\\include /GS- /Gw /Gy /Oy /Oi /Zc:inline /O2 /Ob2 /DNDEBUG /std:c11 -fno-lto /Zl -fno-builtin -DCOMPILER_RT_HAS_FLOAT16 /showIncludes /FoCMakeFiles\\clang_rt.builtins-i386.dir\\addsf3.c.obj /FdCMakeFiles\\clang_rt.builtins-i386.dir\\clang_rt.builtins-i386.pdb -c -- S:\\SourceCache\\llvm-project\\compiler-rt\\lib\\builtins\\addsf3.c
1. <unknown> parser at unknown location
Exception Code: 0xC000001D
#0 0x00007ff6b02e5ac8 (S:\b\5\bin\clang-cache.exe+0x4f5ac8)
#1 0x00007ff91be1ae50 (C:\Windows\System32\ucrtbase.dll+0x7ae50)
#2 0x6835fff91be1ba5c
```
16 条评论