Compile fails: FAILED: hbt/src/mon/tests/MonitorTest : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -fomit-frame-pointer -pthread -Wl,-O1 -Wl,--as-needed hbt/src/mon/tests/CMakeFiles/MonitorTest.dir/MonitorTest.cpp.o -o hbt/src/mon/tests/MonitorTest hbt/src/mon/libMonitor.a hbt/src/perf_event/libBuiltinMetrics.a -lgtest -lgmock -lgtest_main hbt/src/mon/libIntelPTMonitor.a hbt/src/common/libDefaults.a hbt/src/perf_event/libPerCpuTraceAuxGenerator.a hbt/src/perf_event/libPerCpuSampleGeneratorBase.a hbt/src/perf_event/libPerCpuBase.a hbt/src/mon/libMonData.a hbt/src/perf_event/libAmdEvents.a hbt/src/intel_pt/libIptEventBuilder.a hbt/src/perf_event/json_events/generated/intel/libJsonEvents.a hbt/src/perf_event/libMetrics.a hbt/src/perf_event/libPmuDevices.a hbt/src/perf_event/libCpuEventsGroup.a -lstdc++fs hbt/src/perf_event/libPmuEvent.a hbt/src/common/libSystem.a third_party/fmt/libfmt.a lib/libpfs.a hbt/src/common/libDefs.a hbt/src/perf_event/json_events/generated/libCpuArch.a && : /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: hbt/src/mon/tests/CMakeFiles/MonitorTest.dir/MonitorTest.cpp.o: in function `testing::AssertionResult testing::internal::CmpHelperOpFailure<std::shared_ptr<facebook::hbt::perf_event::PmuDeviceManager>, decltype(nullptr)>(char const*, char const*, std::shared_ptr<facebook::hbt::perf_event::PmuDeviceManager> const&, decltype(nullptr) const&, char const*) [clone .isra.0]': MonitorTest.cpp:(.text+0xb22): undefined reference to `testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: hbt/src/mon/tests/CMakeFiles/MonitorTest.dir/MonitorTest.cpp.o: in function `testing::AssertionResult testing::internal::CmpHelperOpFailure<std::__detail::_Node_iterator<std::pair<unsigned int const, facebook::hbt::perf_event::AuxSpaceData>, false, false>, std::__detail::_Node_iterator<std::pair<unsigned int const, facebook::hbt::perf_event::AuxSpaceData>, false, false> >(char const*, char const*, std::__detail::_Node_iterator<std::pair<unsigned int const, facebook::hbt::perf_event::AuxSpaceData>, false, false> const&, std::__detail::_Node_iterator<std::pair<unsigned int const, facebook::hbt::perf_event::AuxSpaceData>, false, false> const&, char const*)': MonitorTest.cpp:(.text._ZN7testing8internal18CmpHelperOpFailureINSt8__detail14_Node_iteratorISt4pairIKjN8facebook3hbt10perf_event12AuxSpaceDataEELb0ELb0EEESB_EENS_15AssertionResultEPKcSE_RKT_RKT0_SE_[_ZN7testing8internal18CmpHelperOpFailureINSt8__detail14_Node_iteratorISt4pairIKjN8facebook3hbt10perf_event12AuxSpaceDataEELb0ELb0EEESB_EENS_15AssertionResultEPKcSE_RKT_RKT0_SE_]+0xde): undefined reference to `testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: MonitorTest.cpp:(.text._ZN7testing8internal18CmpHelperOpFailureINSt8__detail14_Node_iteratorISt4pairIKjN8facebook3hbt10perf_event12AuxSpaceDataEELb0ELb0EEESB_EENS_15AssertionResultEPKcSE_RKT_RKT0_SE_[_ZN7testing8internal18CmpHelperOpFailureINSt8__detail14_Node_iteratorISt4pairIKjN8facebook3hbt10perf_event12AuxSpaceDataEELb0ELb0EEESB_EENS_15AssertionResultEPKcSE_RKT_RKT0_SE_]+0x2fd): undefined reference to `testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: hbt/src/mon/tests/CMakeFiles/MonitorTest.dir/MonitorTest.cpp.o: in function `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > testing::PrintToString<std::nullopt_t>(std::nullopt_t const&)': MonitorTest.cpp:(.text._ZN7testing13PrintToStringISt9nullopt_tEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_[_ZN7testing13PrintToStringISt9nullopt_tEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_]+0x1d4): undefined reference to `testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: hbt/src/mon/tests/CMakeFiles/MonitorTest.dir/MonitorTest.cpp.o: in function `testing::AssertionResult testing::internal::CmpHelperOpFailure<std::optional<facebook::hbt::mon::IntelPTGenCtxt>, std::nullopt_t>(char const*, char const*, std::optional<facebook::hbt::mon::IntelPTGenCtxt> const&, std::nullopt_t const&, char const*)': MonitorTest.cpp:(.text._ZN7testing8internal18CmpHelperOpFailureISt8optionalIN8facebook3hbt3mon14IntelPTGenCtxtEESt9nullopt_tEENS_15AssertionResultEPKcSB_RKT_RKT0_SB_[_ZN7testing8internal18CmpHelperOpFailureISt8optionalIN8facebook3hbt3mon14IntelPTGenCtxtEESt9nullopt_tEENS_15AssertionResultEPKcSB_RKT_RKT0_SB_]+0x171): undefined reference to `testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: hbt/src/mon/tests/CMakeFiles/MonitorTest.dir/MonitorTest.cpp.o:MonitorTest.cpp:(.text._ZN7testing8internal18CmpHelperOpFailureISt8optionalISt13unordered_mapIjN8facebook3hbt10perf_event12AuxSpaceDataESt4hashIjESt8equal_toIjESaISt4pairIKjS7_EEEESt9nullopt_tEENS_15AssertionResultEPKcSL_RKT_RKT0_SL_[_ZN7testing8internal18CmpHelperOpFailureISt8optionalISt13unordered_mapIjN8facebook3hbt10perf_event12AuxSpaceDataESt4hashIjESt8equal_toIjESaISt4pairIKjS7_EEEESt9nullopt_tEENS_15AssertionResultEPKcSL_RKT_RKT0_SL_]+0x171): more undefined references to `testing::internal2::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)' follow collect2: error: ld returned 1 exit status [155/155] : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -fomit-frame-pointer -pthread -Wl,-O1 -Wl,--as-needed dynolog/src/CMakeFiles/dynolog.dir/Main.cpp.o -o dynolog/src/dynolog dynolog/src/libdynolog_lib.a dynolog/src/rpc/libdynolog_rpc_lib.a dynolog/src/libdynolog_lib.a hbt/src/mon/libMonitor.a hbt/src/mon/libIntelPTMonitor.a hbt/src/common/libDefaults.a hbt/src/perf_event/libPerCpuTraceAuxGenerator.a hbt/src/perf_event/libPerCpuSampleGeneratorBase.a hbt/src/perf_event/libPerCpuBase.a hbt/src/mon/libMonData.a hbt/src/perf_event/libBuiltinMetrics.a hbt/src/perf_event/libAmdEvents.a hbt/src/intel_pt/libIptEventBuilder.a hbt/src/perf_event/json_events/generated/intel/libJsonEvents.a hbt/src/perf_event/libMetrics.a hbt/src/perf_event/libPmuDevices.a hbt/src/perf_event/libCpuEventsGroup.a -lstdc++fs hbt/src/perf_event/libPmuEvent.a hbt/src/common/libSystem.a hbt/src/common/libDefs.a hbt/src/perf_event/json_events/generated/libCpuArch.a dynolog/src/tracing/libdynolog_ipcmonitor_lib.a /usr/lib64/libglog.so.0.6.0 dynolog/src/gpumon/libdynolog_dcgm_lib.a /usr/lib64/libglog.so.0.6.0 -ldl /usr/lib64/libglog.so.0.6.0 lib/libpfs.a third_party/cpr/cpr/libcpr.a /usr/lib64/libcurl.so /usr/lib64/libssl.so /usr/lib64/libcrypto.so -lgflags third_party/fmt/libfmt.a /usr/lib64/libglog.so.0.6.0 && : ninja: build stopped: subcommand failed. Reproducible: Always
Created attachment 880789 [details] build.log
Created attachment 880790 [details] emerge --info
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecf74e63d602e7522244eaa7ac5183d51e75a59d commit ecf74e63d602e7522244eaa7ac5183d51e75a59d Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2024-01-04 06:51:27 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2024-01-04 06:52:20 +0000 dev-libs/dynolog: ifx build with newer gtest. Fix test Bug: https://bugs.gentoo.org/920842 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> ...log-0.3.1_p20230126.ebuild => dynolog-0.3.1_p20230126-r1.ebuild} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
(In reply to wippie from comment #2) > Created attachment 880790 [details] > emerge --info Please retry. It is not happening to me but I guess it was using google test headers instead of system one. Report the result
Created attachment 881485 [details] build.log Tried dynolog-0.3.1_p20230126-r1, seems to be the same issue.