[compiler-rt] [compiler-rt][nfc] DenseMap needs placement new (PR #133329)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 27 22:08:25 PDT 2025
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/9335
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/sanitizer-windows.py ...' (failure)
...
[30/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_block_signals.cpp.x86_64.o
[31/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_chained_origin_depot_test.cpp.x86_64.o
[32/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_hash_test.cpp.x86_64.o
[33/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_addrhashmap_test.cpp.x86_64.o
[34/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_format_interceptor_test.cpp.x86_64.o
[35/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_procmaps_test.cpp.x86_64.o
[36/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_flags_test.cpp.x86_64.o
[37/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_array_ref_test.cpp.x86_64.o
[38/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_procmaps_mac_test.cpp.x86_64.o
[39/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_dense_map_test.cpp.x86_64.o
FAILED: projects/compiler-rt/lib/sanitizer_common/tests/SANITIZER_TEST_OBJECTS.sanitizer_dense_map_test.cpp.x86_64.o C:/b/slave/sanitizer-windows/build/stage1/projects/compiler-rt/lib/sanitizer_common/tests/SANITIZER_TEST_OBJECTS.sanitizer_dense_map_test.cpp.x86_64.o
cmd.exe /C "cd /D C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\lib\sanitizer_common\tests && C:\b\slave\sanitizer-windows\build\stage1\.\bin\clang++.exe -IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt/include -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -IC:/b/slave/sanitizer-windows/llvm-project/llvm/../third-party/unittest/googletest/include -IC:/b/slave/sanitizer-windows/llvm-project/llvm/../third-party/unittest/googletest -Wno-deprecated-declarations -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -IC:/b/slave/sanitizer-windows/llvm-project/llvm/../third-party/unittest/googlemock/include -IC:/b/slave/sanitizer-windows/llvm-project/llvm/../third-party/unittest/googlemock -IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt/include -IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib -IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib/sanitizer_common -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -fno-rtti -O2 -Werror=sign-compare -Wno-gnu-zero-variadic-macro-arguments -gline-tables-only -gcodeview -c -o SANITIZER_TEST_OBJECTS.sanitizer_dense_map_test.cpp.x86_64.o C:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib/sanitizer_common/tests/sanitizer_dense_map_test.cpp"
In file included from C:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib/sanitizer_common/tests/sanitizer_dense_map_test.cpp:12:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\map:12:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\tuple:15:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\xutility:9:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\yvals.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\crtdbg.h:13:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime_new_debug.h:10:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime_new.h:166:28: error: redefinition of 'operator new'
166 | inline void* __CRTDECL operator new(size_t _Size, _Writable_bytes_(_Size) void* _Where) noexcept
| ^
C:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib\sanitizer_common\sanitizer_placement_new.h:20:14: note: previous definition is here
20 | inline void *operator new(__sanitizer::usize sz, void *p) { return p; }
| ^
1 error generated.
[40/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_mac_test.cpp.x86_64.o
[41/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_atomic_test.cpp.x86_64.o
[42/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_nolibc_test.cpp.x86_64.o
[43/151] Generating SANITIZER_TEST_OBJECTS.gmock-all.cc.x86_64.o
[44/151] Linking CXX executable bin\llvm-lto.exe
[45/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_printf_test.cpp.x86_64.o
[46/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_mutex_test.cpp.x86_64.o
[47/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_bvgraph_test.cpp.x86_64.o
[48/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_common_test.cpp.x86_64.o
Step 8 (stage 1 check) failure: stage 1 check (failure)
...
[30/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_block_signals.cpp.x86_64.o
[31/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_chained_origin_depot_test.cpp.x86_64.o
[32/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_hash_test.cpp.x86_64.o
[33/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_addrhashmap_test.cpp.x86_64.o
[34/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_format_interceptor_test.cpp.x86_64.o
[35/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_procmaps_test.cpp.x86_64.o
[36/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_flags_test.cpp.x86_64.o
[37/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_array_ref_test.cpp.x86_64.o
[38/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_procmaps_mac_test.cpp.x86_64.o
[39/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_dense_map_test.cpp.x86_64.o
FAILED: projects/compiler-rt/lib/sanitizer_common/tests/SANITIZER_TEST_OBJECTS.sanitizer_dense_map_test.cpp.x86_64.o C:/b/slave/sanitizer-windows/build/stage1/projects/compiler-rt/lib/sanitizer_common/tests/SANITIZER_TEST_OBJECTS.sanitizer_dense_map_test.cpp.x86_64.o
cmd.exe /C "cd /D C:\b\slave\sanitizer-windows\build\stage1\projects\compiler-rt\lib\sanitizer_common\tests && C:\b\slave\sanitizer-windows\build\stage1\.\bin\clang++.exe -IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt/include -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -IC:/b/slave/sanitizer-windows/llvm-project/llvm/../third-party/unittest/googletest/include -IC:/b/slave/sanitizer-windows/llvm-project/llvm/../third-party/unittest/googletest -Wno-deprecated-declarations -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -IC:/b/slave/sanitizer-windows/llvm-project/llvm/../third-party/unittest/googlemock/include -IC:/b/slave/sanitizer-windows/llvm-project/llvm/../third-party/unittest/googlemock -IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt/include -IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib -IC:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib/sanitizer_common -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -fno-rtti -O2 -Werror=sign-compare -Wno-gnu-zero-variadic-macro-arguments -gline-tables-only -gcodeview -c -o SANITIZER_TEST_OBJECTS.sanitizer_dense_map_test.cpp.x86_64.o C:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib/sanitizer_common/tests/sanitizer_dense_map_test.cpp"
In file included from C:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib/sanitizer_common/tests/sanitizer_dense_map_test.cpp:12:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\map:12:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\tuple:15:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\xutility:9:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\yvals.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\crtdbg.h:13:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime_new_debug.h:10:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include\vcruntime_new.h:166:28: error: redefinition of 'operator new'
166 | inline void* __CRTDECL operator new(size_t _Size, _Writable_bytes_(_Size) void* _Where) noexcept
| ^
C:/b/slave/sanitizer-windows/llvm-project/compiler-rt/lib\sanitizer_common\sanitizer_placement_new.h:20:14: note: previous definition is here
20 | inline void *operator new(__sanitizer::usize sz, void *p) { return p; }
| ^
1 error generated.
[40/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_mac_test.cpp.x86_64.o
[41/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_atomic_test.cpp.x86_64.o
[42/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_nolibc_test.cpp.x86_64.o
[43/151] Generating SANITIZER_TEST_OBJECTS.gmock-all.cc.x86_64.o
[44/151] Linking CXX executable bin\llvm-lto.exe
[45/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_printf_test.cpp.x86_64.o
[46/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_mutex_test.cpp.x86_64.o
[47/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_bvgraph_test.cpp.x86_64.o
[48/151] Generating SANITIZER_TEST_OBJECTS.sanitizer_common_test.cpp.x86_64.o
```
</details>
https://github.com/llvm/llvm-project/pull/133329
More information about the llvm-commits
mailing list