2024-12-23T04:55:22.736Z | <Anshuman> I am trying to run `cmake --build . --target tests` but it is failing with the following error:
```[1065/2079] Building CXX object src/test/common/CMakeFiles/unittest_ceph_timer.dir/test_ceph_timer.cc.o
FAILED: src/test/common/CMakeFiles/unittest_ceph_timer.dir/test_ceph_timer.cc.o
/bin/ccache /bin/g++ -DBOOST_ASIO_DISABLE_THREAD_KEYWORD_EXTENSION -DBOOST_ASIO_HAS_IO_URING -DBOOST_ASIO_NO_TS_EXECUTORS -DHAVE_ABSEIL -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__CEPH__ -D__STDC_FORMAT_MACROS -D__linux__ -I/jenkins/workspace/ceph/build/src/include -I/jenkins/workspace/ceph/src -isystem /jenkins/workspace/ceph/build/boost/include -isystem /jenkins/workspace/ceph/build/include -isystem /jenkins/workspace/ceph/src/jaegertracing/opentelemetry-cpp/api/include -isystem /jenkins/workspace/ceph/src/jaegertracing/opentelemetry-cpp/exporters/jaeger/include -isystem /jenkins/workspace/ceph/src/jaegertracing/opentelemetry-cpp/ext/include -isystem /jenkins/workspace/ceph/src/jaegertracing/opentelemetry-cpp/sdk/include -isystem /jenkins/workspace/ceph/src/xxHash -isystem /jenkins/workspace/ceph/src/fmt/include -isystem /jenkins/workspace/ceph/src/googletest/googlemock/include -isystem /jenkins/workspace/ceph/src/googletest/googlemock -isystem /jenkins/workspace/ceph/src/googletest/googletest/include -isystem /jenkins/workspace/ceph/src/googletest/googletest -Og -g -std=c++20 -fPIE -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -Wall -fno-strict-aliasing -fsigned-char -Wtype-limits -Wignored-qualifiers -Wpointer-arith -Werror=format-security -Winit-self -Wno-unknown-pragmas -Wnon-virtual-dtor -Wno-ignored-qualifiers -ftemplate-depth-1024 -Wpessimizing-move -Wredundant-move -Wstrict-null-sentinel -Woverloaded-virtual -DCEPH_DEBUG_MUTEX -fstack-protector-strong -D_GLIBCXX_ASSERTIONS -maltivec -fdiagnostics-color=auto -MD -MT src/test/common/CMakeFiles/unittest_ceph_timer.dir/test_ceph_timer.cc.o -MF src/test/common/CMakeFiles/unittest_ceph_timer.dir/test_ceph_timer.cc.o.d -o src/test/common/CMakeFiles/unittest_ceph_timer.dir/test_ceph_timer.cc.o -c /jenkins/workspace/ceph/src/test/common/test_ceph_timer.cc
In file included from /jenkins/workspace/ceph/src/googletest/googletest/include/gtest/gtest-matchers.h:47,
from /jenkins/workspace/ceph/src/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h:39,
from /jenkins/workspace/ceph/src/googletest/googletest/include/gtest/gtest-death-test.h:41,
from /jenkins/workspace/ceph/src/googletest/googletest/include/gtest/gtest.h:64,
from /jenkins/workspace/ceph/src/test/common/test_ceph_timer.cc:19:
/jenkins/workspace/ceph/src/googletest/googletest/include/gtest/gtest-printers.h: In instantiation of 'struct testing::internal::FindFirstPrinter<std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >, void, testing::internal::internal_stream_operator_without_lexical_name_lookup::StreamPrinter, testing::internal::ProtobufPrinter, testing::internal::ConvertibleToIntegerPrinter, testing::internal::ConvertibleToStringViewPrinter, testing::internal::FallbackPrinter>':
/jenkins/workspace/ceph/src/googletest/googletest/include/gtest/gtest-printers.h:276:8: required from 'struct testing::internal::FindFirstPrinter<std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >, void, testing::internal::ContainerPrinter, testing::internal::FunctionPointerPrinter, testing::internal::PointerPrinter, testing::internal::internal_stream_operator_without_lexical_name_lookup::StreamPrinter, testing::internal::ProtobufPrinter, testing::internal::ConvertibleToIntegerPrinter, testing::internal::ConvertibleToStringViewPrinter, testing::internal::FallbackPrinter>'
/jenkins/workspace/ceph/src/googletest/googletest/include/gtest/gtest-printers.h:296:9: required from 'void testing::internal::PrintWithFallback(const T&, std::ostream*) [with T = std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >; std::ostream = std::basic_ostream<char>]'
/jenkins/workspace/ceph/src/googletest/googletest/include/gtest/gtest-printers.h:430:30: required from 'void testing::internal::PrintTo(const T&, std::ostream*) [with T = std::chrono::time_point<std::chrono::_V2::steady_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >; std::ostream = std::basic_ostream<char>]'
/jenkins/workspace/ceph/src/googletest/googletest/include/gtest/gtest-printers.h:626:12: [ skipping 2 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]```
Building normally is working fine for me on the same system. Does anyone know what could be causing this error? |