[compiler-rt] [llvm] [ctxprof] Flat profile collection (PR #130655)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 12 08:35:50 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux` running on `sanitizer-buildbot2` while building `compiler-rt,llvm` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/66/builds/11078
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
-- Configuring done (11.5s)
-- Generating done (0.1s)
CMake Warning:
Manually-specified variables were not used by the project:
LIBCXX_HAS_GCC_S_LIB
-- Build files have been written to: /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/msan/libcxx_msan_x86_64/build
[283/397] Generating CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
FAILED: compiler-rt/lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
cd /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/ctx_profile/tests && /home/b/sanitizer-x86_64-linux/build/build_default/./bin/clang++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Werror -Wno-unused-parameter -Wno-unknown-warning-option -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -g -Wno-covered-switch-default -Wno-suggest-override -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googlemock/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googlemock -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -O2 -g -fno-rtti -Wno-pedantic -fno-omit-frame-pointer -Wno-variadic-macros -m64 -c -o CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:72:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
72 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:96:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
96 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:114:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
114 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:133:29: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
133 | FunctionData FData[3] = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:133:28: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
133 | FunctionData FData[3] = {0};
| ^
| {}
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:178:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
178 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:219:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
219 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:285:9: error: unused variable 'Flat' [-Werror,-Wunused-variable]
285 | auto *Flat =
| ^~~~
In file included from /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:2:
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare]
1379 | if (lhs == rhs) {
| ~~~ ^ ~~~
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1398:12: note: in instantiation of function template specialization 'testing::internal::CmpHelperEQ<unsigned long, int>' requested here
1398 | return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs);
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:270:7: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare<unsigned long, int, nullptr>' requested here
270 | EXPECT_EQ(BufferSize, 3);
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1869:54: note: expanded from macro 'EXPECT_EQ'
1869 | EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
Step 9 (test compiler-rt symbolizer) failure: test compiler-rt symbolizer (failure)
...
-- Performing Test CXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test CXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Configuring done (11.5s)
-- Generating done (0.1s)
CMake Warning:
Manually-specified variables were not used by the project:
LIBCXX_HAS_GCC_S_LIB
-- Build files have been written to: /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/msan/libcxx_msan_x86_64/build
[283/397] Generating CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
FAILED: compiler-rt/lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
cd /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/ctx_profile/tests && /home/b/sanitizer-x86_64-linux/build/build_default/./bin/clang++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Werror -Wno-unused-parameter -Wno-unknown-warning-option -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -g -Wno-covered-switch-default -Wno-suggest-override -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googlemock/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googlemock -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -O2 -g -fno-rtti -Wno-pedantic -fno-omit-frame-pointer -Wno-variadic-macros -m64 -c -o CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:72:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
72 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:96:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
96 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:114:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
114 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:133:29: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
133 | FunctionData FData[3] = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:133:28: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
133 | FunctionData FData[3] = {0};
| ^
| {}
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:178:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
178 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:219:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
219 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:285:9: error: unused variable 'Flat' [-Werror,-Wunused-variable]
285 | auto *Flat =
| ^~~~
In file included from /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:2:
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare]
1379 | if (lhs == rhs) {
| ~~~ ^ ~~~
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1398:12: note: in instantiation of function template specialization 'testing::internal::CmpHelperEQ<unsigned long, int>' requested here
1398 | return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs);
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:270:7: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare<unsigned long, int, nullptr>' requested here
270 | EXPECT_EQ(BufferSize, 3);
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1869:54: note: expanded from macro 'EXPECT_EQ'
1869 | EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
Step 11 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
[2292/2300] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/ios.instantiations.cpp.o
[2293/2300] Building CXX object libcxx/src/CMakeFiles/cxx_experimental.dir/experimental/tzdb.cpp.o
[2294/2300] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/algorithm.cpp.o
[2295/2300] Building CXX object libcxx/src/CMakeFiles/cxx_experimental.dir/experimental/time_zone.cpp.o
[2296/2300] Building CXX object libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_demangle.cpp.o
[2297/2300] Linking CXX static library lib/libc++abi.a
[2298/2300] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/locale.cpp.o
[2299/2300] Linking CXX static library lib/libc++.a
[2300/2300] Linking CXX static library lib/libc++experimental.a
[284/397] Generating CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
FAILED: compiler-rt/lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
cd /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/ctx_profile/tests && /home/b/sanitizer-x86_64-linux/build/build_default/./bin/clang++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Werror -Wno-unused-parameter -Wno-unknown-warning-option -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -g -DSANITIZER_DEBUG=1 -Wno-covered-switch-default -Wno-suggest-override -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googlemock/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googlemock -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -O2 -g -fno-rtti -Wno-pedantic -fno-omit-frame-pointer -Wno-variadic-macros -m64 -c -o CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:72:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
72 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:96:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
96 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:114:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
114 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:133:29: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
133 | FunctionData FData[3] = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:133:28: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
133 | FunctionData FData[3] = {0};
| ^
| {}
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:178:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
178 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:219:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
219 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:285:9: error: unused variable 'Flat' [-Werror,-Wunused-variable]
285 | auto *Flat =
| ^~~~
In file included from /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:2:
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare]
1379 | if (lhs == rhs) {
| ~~~ ^ ~~~
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1398:12: note: in instantiation of function template specialization 'testing::internal::CmpHelperEQ<unsigned long, int>' requested here
1398 | return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs);
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:270:7: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare<unsigned long, int, nullptr>' requested here
270 | EXPECT_EQ(BufferSize, 3);
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1869:54: note: expanded from macro 'EXPECT_EQ'
1869 | EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
Step 14 (test compiler-rt default) failure: test compiler-rt default (failure)
...
[2292/2300] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/ios.instantiations.cpp.o
[2293/2300] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/algorithm.cpp.o
[2294/2300] Building CXX object libcxx/src/CMakeFiles/cxx_experimental.dir/experimental/tzdb.cpp.o
[2295/2300] Building CXX object libcxx/src/CMakeFiles/cxx_experimental.dir/experimental/time_zone.cpp.o
[2296/2300] Building CXX object libcxxabi/src/CMakeFiles/cxxabi_static_objects.dir/cxa_demangle.cpp.o
[2297/2300] Linking CXX static library lib/libc++abi.a
[2298/2300] Building CXX object libcxx/src/CMakeFiles/cxx_static.dir/locale.cpp.o
[2299/2300] Linking CXX static library lib/libc++.a
[2300/2300] Linking CXX static library lib/libc++experimental.a
[279/397] Generating CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
FAILED: compiler-rt/lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
cd /home/b/sanitizer-x86_64-linux/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/ctx_profile/tests && /home/b/sanitizer-x86_64-linux/build/build_default/./bin/clang++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -Werror -Wno-unused-parameter -Wno-unknown-warning-option -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -g -Wno-covered-switch-default -Wno-suggest-override -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googlemock/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googlemock -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -O2 -g -fno-rtti -Wno-pedantic -fno-omit-frame-pointer -Wno-variadic-macros -m64 -c -o CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:72:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
72 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:96:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
96 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:114:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
114 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:133:29: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
133 | FunctionData FData[3] = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:133:28: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
133 | FunctionData FData[3] = {0};
| ^
| {}
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:178:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
178 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:219:26: error: missing field 'Mutex' initializer [-Werror,-Wmissing-field-initializers]
219 | FunctionData FData = {0};
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:285:9: error: unused variable 'Flat' [-Werror,-Wunused-variable]
285 | auto *Flat =
| ^~~~
In file included from /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:2:
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1379:11: error: comparison of integers of different signs: 'const unsigned long' and 'const int' [-Werror,-Wsign-compare]
1379 | if (lhs == rhs) {
| ~~~ ^ ~~~
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1398:12: note: in instantiation of function template specialization 'testing::internal::CmpHelperEQ<unsigned long, int>' requested here
1398 | return CmpHelperEQ(lhs_expression, rhs_expression, lhs, rhs);
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:270:7: note: in instantiation of function template specialization 'testing::internal::EqHelper::Compare<unsigned long, int, nullptr>' requested here
270 | EXPECT_EQ(BufferSize, 3);
| ^
/home/b/sanitizer-x86_64-linux/build/llvm-project/runtimes/../third-party/unittest/googletest/include/gtest/gtest.h:1869:54: note: expanded from macro 'EXPECT_EQ'
1869 | EXPECT_PRED_FORMAT2(::testing::internal::EqHelper::Compare, val1, val2)
Step 16 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
...
-- Looking for __atomic_fetch_add_8 in atomic
-- Looking for __atomic_fetch_add_8 in atomic - found
-- Performing Test CXX_SUPPORTS_FALIGNED_ALLOCATION_FLAG
-- Performing Test CXX_SUPPORTS_FALIGNED_ALLOCATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test CXX_SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Configuring done (8.7s)
-- Generating done (0.1s)
-- Build files have been written to: /home/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/msan/libcxx_msan_x86_64/build
[137/232] Generating CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
FAILED: lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/ctx_profile/tests/CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o
cd /home/b/sanitizer-x86_64-linux/build/compiler_rt_build/lib/ctx_profile/tests && /home/b/sanitizer-x86_64-linux/build/build_default/bin/clang++ -Wall -Werror -Wno-unused-parameter -Wno-unknown-warning-option -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/include -g -Wno-covered-switch-default -Wno-suggest-override -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/../third-party/unittest/googletest/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/../third-party/unittest/googletest -DGTEST_NO_LLVM_SUPPORT=1 -DGTEST_HAS_RTTI=0 -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/../third-party/unittest/googlemock/include -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/../third-party/unittest/googlemock -I/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -O2 -g -fno-rtti -Wno-pedantic -fno-omit-frame-pointer -Wno-variadic-macros -m64 -c -o CTX_PROFILE_TEST_OBJECTS.CtxInstrProfilingTest.cpp.x86_64.o /home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:133:28: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
133 | FunctionData FData[3] = {0};
| ^
| {}
/home/b/sanitizer-x86_64-linux/build/llvm-project/compiler-rt/lib/ctx_profile/tests/CtxInstrProfilingTest.cpp:285:9: error: unused variable 'Flat' [-Werror,-Wunused-variable]
285 | auto *Flat =
| ^~~~
2 errors generated.
[168/232] Generating ScudoUnitTestsObjects.combined_test.cpp.x86_64.o
[170/232] Generating SANITIZER_TEST_OBJECTS.sanitizer_allocator_test.cpp.x86_64.o
[171/232] Generating ASAN_INST_TEST_OBJECTS.asan_test.cpp.x86_64-inline.o
[172/232] Generating GwpAsanTestObjects.backtrace.cpp.x86_64.o
[173/232] Generating SANITIZER_TEST_OBJECTS.sanitizer_dense_map_test.cpp.x86_64.o
[174/232] Generating INTERCEPTION_TEST_OBJECTS.gtest-all.cc.x86_64.o
[175/232] Generating ASAN_NOINST_TEST_OBJECTS.gtest-all.cc.x86_64-calls.o
[176/232] Generating ASAN_NOINST_TEST_OBJECTS.gtest-all.cc.x86_64-inline.o
[177/232] Generating SANITIZER_TEST_OBJECTS.gtest-all.cc.x86_64.o
[178/232] Generating FuzzerTestObjects.FuzzerUnittest.cpp.x86_64.o
[179/232] Generating ASAN_INST_TEST_OBJECTS.gtest-all.cc.x86_64-calls.o
[180/232] Generating RtsanNoInstTestObjects.gtest-all.cc.x86_64.o
[181/232] Generating RtsanTestObjects.gtest-all.cc.x86_64.o
[182/232] Generating RtsanTestObjects_FileOffset64.gtest-all.cc.x86_64.o
[183/232] Generating RtsanTestObjects_FileOffset64.rtsan_test_interceptors_posix.cpp.x86_64.o
[184/232] Generating RtsanTestObjects.rtsan_test_interceptors_posix.cpp.x86_64.o
[185/232] Generating ASAN_INST_TEST_OBJECTS.gtest-all.cc.x86_64-inline.o
[186/232] Generating FuzzerTestObjects.gtest-all.cc.x86_64.o
[187/232] Generating FuzzedDataProviderTestObjects.gtest-all.cc.x86_64.o
[188/232] Checking TSan Go runtime...
[189/232] Generating GwpAsanTestObjects.gtest-all.cc.x86_64.o
[190/232] Generating CTX_PROFILE_TEST_OBJECTS.gtest-all.cc.x86_64.o
[191/232] Generating MEMPROF_TEST_OBJECTS.gtest-all.cc.x86_64.o
[192/232] Generating NsanTestObjects.gtest-all.cc.x86_64.o
ninja: build stopped: subcommand failed.
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
```
</details>
https://github.com/llvm/llvm-project/pull/130655
More information about the llvm-commits
mailing list