[compiler-rt] Revert "Revert "[compiler-rt] Remove redundant COMPILER_RT_HAS_*SAN checks"" (PR #98395)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 15:11:59 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-windows` running on `sanitizer-windows` while building `compiler-rt` at step 4 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/107/builds/844
Here is the relevant piece of the build log for the reference:
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/sanitizer-windows.py ...' (failure)
...
Using std::regex with exceptions disabled is not fully supported
-- Configuring done (10.1s)
-- Generating done (12.5s)
-- Build files have been written to: C:/b/slave/sanitizer-windows/build/stage1
@@@BUILD_STEP stage 1 build@@@
@@@HALT_ON_FAILURE@@@
Running: ninja -j 16 compiler-rt
[1/13] Building CXX object projects\compiler-rt\lib\lsan\CMakeFiles\clang_rt.lsan-x86_64.dir\lsan_thread.cpp.obj
FAILED: projects/compiler-rt/lib/lsan/CMakeFiles/clang_rt.lsan-x86_64.dir/lsan_thread.cpp.obj
C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe /nologo /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\lib\lsan -IC:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan -IC:\b\slave\sanitizer-windows\build\stage1\include -IC:\b\slave\sanitizer-windows\llvm-project\llvm\include -IC:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\.. /DWIN32 /D_WINDOWS /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Z7 /Oi /bigobj /permissive- -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -w14062 -we4238 /Gw /W4 /O2 /Ob2 -std:c++17 -MT /Oy- /GS- /Zc:threadSafeInit- /Z7 /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 /GR- /showIncludes /Foprojects\compiler-rt\lib\lsan\CMakeFiles\clang_rt.lsan-x86_64.dir\lsan_thread.cpp.obj /Fdprojects\compiler-rt\lib\lsan\CMakeFiles\clang_rt.lsan-x86_64.dir\clang_rt.lsan-x86_64.pdb /FS -c C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_thread.cpp
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_thread.cpp(34): error C2027: use of undefined type '__lsan::ThreadContext'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_thread.h(45): note: see declaration of '__lsan::ThreadContext'
[2/13] Building CXX object projects\compiler-rt\lib\lsan\CMakeFiles\clang_rt.lsan-x86_64.dir\lsan_interceptors.cpp.obj
FAILED: projects/compiler-rt/lib/lsan/CMakeFiles/clang_rt.lsan-x86_64.dir/lsan_interceptors.cpp.obj
C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe /nologo /TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\lib\lsan -IC:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan -IC:\b\slave\sanitizer-windows\build\stage1\include -IC:\b\slave\sanitizer-windows\llvm-project\llvm\include -IC:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\.. /DWIN32 /D_WINDOWS /Zc:inline /Zc:preprocessor /Zc:__cplusplus /Z7 /Oi /bigobj /permissive- -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd5105 -wd4324 -w14062 -we4238 /Gw /W4 /O2 /Ob2 -std:c++17 -MT /Oy- /GS- /Zc:threadSafeInit- /Z7 /wd4146 /wd4291 /wd4391 /wd4722 /wd4800 /GR- /showIncludes /Foprojects\compiler-rt\lib\lsan\CMakeFiles\clang_rt.lsan-x86_64.dir\lsan_interceptors.cpp.obj /Fdprojects\compiler-rt\lib\lsan\CMakeFiles\clang_rt.lsan-x86_64.dir\clang_rt.lsan-x86_64.pdb /FS -c C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(248): error C2375: 'operator new': redefinition; different linkage
predefined C++ types (compiler internal)(33): note: see declaration of 'operator new'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(250): error C2375: 'operator new[]': redefinition; different linkage
predefined C++ types (compiler internal)(58): note: see declaration of 'operator new[]'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(258): error C2375: 'operator new': redefinition; different linkage
predefined C++ types (compiler internal)(36): note: see declaration of 'operator new'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(261): error C2375: 'operator new[]': redefinition; different linkage
predefined C++ types (compiler internal)(61): note: see declaration of 'operator new[]'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(271): error C2375: 'operator delete': redefinition; different linkage
predefined C++ types (compiler internal)(34): note: see declaration of 'operator delete'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(273): error C2375: 'operator delete[]': redefinition; different linkage
predefined C++ types (compiler internal)(59): note: see declaration of 'operator delete[]'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(280): error C2375: 'operator delete': redefinition; different linkage
predefined C++ types (compiler internal)(44): note: see declaration of 'operator delete'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(283): error C2375: 'operator delete[]': redefinition; different linkage
predefined C++ types (compiler internal)(67): note: see declaration of 'operator delete[]'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(286): error C2375: 'operator delete': redefinition; different linkage
predefined C++ types (compiler internal)(37): note: see declaration of 'operator delete'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(289): error C2375: 'operator delete[]': redefinition; different linkage
predefined C++ types (compiler internal)(62): note: see declaration of 'operator delete[]'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(298): error C2375: 'operator delete': redefinition; different linkage
predefined C++ types (compiler internal)(50): note: see declaration of 'operator delete'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(301): error C2375: 'operator delete[]': redefinition; different linkage
predefined C++ types (compiler internal)(71): note: see declaration of 'operator delete[]'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(547): error C3861: 'InitializeSignalInterceptors': identifier not found
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(563): error C2065: 'pthread_create': undeclared identifier
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(563): error C2065: '__asan_wrap_pthread_create': undeclared identifier
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(563): error C2039: 'real_pthread_create': is not a member of '__interception'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(157): note: see declaration of '__interception'
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(563): error C2065: 'real_pthread_create': undeclared identifier
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(564): error C2065: 'pthread_join': undeclared identifier
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\lsan\lsan_interceptors.cpp(564): error C2065: '__asan_wrap_pthread_join': undeclared identifier
```
https://github.com/llvm/llvm-project/pull/98395
More information about the llvm-commits
mailing list