[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:50:38 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` while building `compiler-rt` at step 11 "ninja check 2".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/8248

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 11 (ninja check 2) failure: stage 2 checked (failure)
...
[13/16] Building CXX object compiler-rt/lib/asan/CMakeFiles/RTAsan_dynamic_version_script_dummy.powerpc64le.dir/dummy.cpp.o
[14/16] Generating /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/compile_commands.json
[15/16] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/lib/clang/21/lib/powerpc64le-unknown-linux-gnu/libclang_rt.ubsan_standalone.so
[16/16] Linking CXX shared library /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/lib/clang/21/lib/powerpc64le-unknown-linux-gnu/libclang_rt.asan.so
[18/1221] Building CXX object unittests/IR/CMakeFiles/IRTests.dir/DemandedBitsTest.cpp.o
[19/1221] cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins && /home/buildbots/llvm-external-buildbots/cmake-3.31.2/bin/cmake --build /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/ --target runtimes-test-depends --config Release
[1/85] Generating ASAN_NOINST_TEST_OBJECTS.asan_test_main.cpp.powerpc64le-inline.o
[2/85] Generating TsanUnitTestsObjects.tsan_thread.cpp.powerpc64le.o
[3/85] Generating ASAN_NOINST_TEST_OBJECTS.asan_test_main.cpp.powerpc64le-calls.o
[4/85] Generating TsanUnitTestsObjects.tsan_flags_test.cpp.powerpc64le.o
FAILED: compiler-rt/lib/tsan/tests/unit/TsanUnitTestsObjects.tsan_flags_test.cpp.powerpc64le.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/unit/TsanUnitTestsObjects.tsan_flags_test.cpp.powerpc64le.o 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/unit && /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./bin/clang++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Wno-unused-parameter -Wno-unknown-warning-option -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/include -g -Wno-covered-switch-default -Wno-suggest-override -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/runtimes/../third-party/unittest/googletest/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/runtimes/../third-party/unittest/googletest -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib/tsan/rtl -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DGTEST_HAS_RTTI=0 -fno-rtti -m64 -fno-function-sections -c -o TsanUnitTestsObjects.tsan_flags_test.cpp.powerpc64le.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib/tsan/tests/unit/tsan_flags_test.cpp:14:
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:54:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/iomanip:40:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/ios_base.h:41:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/locale_classes.h:40:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/string:41:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/allocator.h:46:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/ppc64le-redhat-linux/bits/c++allocator.h:33:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/ext/new_allocator.h:33:
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/new:168:14: error: exception specification in declaration does not match previous declaration
  168 | inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |              ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib/sanitizer_common/sanitizer_placement_new.h:20:14: note: previous declaration is here
   20 | inline void *operator new(__sanitizer::usize sz, void *p) { return p; }
      |              ^
1 error generated.
[5/85] Generating TsanUnitTestsObjects.tsan_posix.cpp.powerpc64le.o
[6/85] Generating ScudoUnitTestsObjects.mutex_test.cpp.powerpc64le.o
[7/85] Generating ASAN_INST_TEST_OBJECTS.asan_test_main.cpp.powerpc64le-calls.o
[8/85] Generating TsanUnitTestsObjects.tsan_test_util_posix.cpp.powerpc64le.o
FAILED: compiler-rt/lib/tsan/tests/rtl/TsanUnitTestsObjects.tsan_test_util_posix.cpp.powerpc64le.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/rtl/TsanUnitTestsObjects.tsan_test_util_posix.cpp.powerpc64le.o 
cd /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/runtimes/runtimes-bins/compiler-rt/lib/tsan/tests/rtl && /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/stage2/./bin/clang++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wall -Wno-unused-parameter -Wno-unknown-warning-option -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/include -g -Wno-covered-switch-default -Wno-suggest-override -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/runtimes/../third-party/unittest/googletest/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/runtimes/../third-party/unittest/googletest -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib/tsan/rtl -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -DGTEST_HAS_RTTI=0 -fno-rtti -m64 -fno-function-sections -c -o TsanUnitTestsObjects.tsan_test_util_posix.cpp.powerpc64le.o /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib/tsan/tests/rtl/tsan_test_util_posix.cpp
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib/tsan/tests/rtl/tsan_test_util_posix.cpp:18:
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib/tsan/tests/rtl/tsan_test_util.h:16:
In file included from /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:54:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/iomanip:40:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/ios_base.h:41:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/locale_classes.h:40:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/string:41:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/bits/allocator.h:46:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/ppc64le-redhat-linux/bits/c++allocator.h:33:
In file included from /usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/ext/new_allocator.h:33:
/usr/lib/gcc/ppc64le-redhat-linux/8/../../../../include/c++/8/new:168:14: error: exception specification in declaration does not match previous declaration
  168 | inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
      |              ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-multistage-test/clang-ppc64le-multistage/llvm/compiler-rt/lib/sanitizer_common/sanitizer_placement_new.h:20:14: note: previous declaration is here
   20 | inline void *operator new(__sanitizer::usize sz, void *p) { return p; }

```

</details>

https://github.com/llvm/llvm-project/pull/133329


More information about the llvm-commits mailing list