Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920842 - dev-libs/dynolog-0.3.1_p20230126: compile fails, MonitorTest.cpp: undefined reference to `testing::internal2::PrintBytesInObjectTo(..)'
Summary: dev-libs/dynolog-0.3.1_p20230126: compile fails, MonitorTest.cpp: undefined r...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-28 00:04 UTC by wippie
Modified: 2024-01-04 20:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,213.70 KB, text/x-log)
2023-12-28 00:07 UTC, wippie
Details
emerge --info (info,8.04 KB, text/plain)
2023-12-28 00:08 UTC, wippie
Details
build.log (build.log,216.25 KB, text/x-log)
2024-01-04 20:27 UTC, wippie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wippie 2023-12-28 00:04:53 UTC
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
Comment 1 wippie 2023-12-28 00:07:51 UTC
Created attachment 880789 [details]
build.log
Comment 2 wippie 2023-12-28 00:08:12 UTC
Created attachment 880790 [details]
emerge --info
Comment 3 Larry the Git Cow gentoo-dev 2024-01-04 06:52:44 UTC
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(-)
Comment 4 Tupone Alfredo gentoo-dev 2024-01-04 06:55:03 UTC
(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
Comment 5 wippie 2024-01-04 20:27:08 UTC
Created attachment 881485 [details]
build.log

Tried dynolog-0.3.1_p20230126-r1, seems to be the same issue.