Created attachment 757581 [details] build.log (ppc64, 0.9.0) [...] /usr/include/gtest/gtest-printers.h:291:36: error: no matching function for call to 'testing::internal::internal_stream_operator_without_lexical_name_lookup::StreamPrinter::PrintValue(const caching::superblock_damage::superblock_invalid&, std::nullptr_t)' 291 | T, decltype(Printer::PrintValue(std::declval<const T&>(), nullptr)), | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/gtest/gtest-printers.h:212:15: note: candidate: 'template<class T, class, class> static void testing::internal::internal_stream_operator_without_lexical_name_lookup::StreamPrinter::PrintValue(const T&, std::ostream*)' 212 | static void PrintValue(const T& value, ::std::ostream* os) { | ^~~~~~~~~~ /usr/include/gtest/gtest-printers.h:212:15: note: template argument deduction/substitution failed: /usr/include/gtest/gtest-printers.h:211:33: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'const caching::superblock_damage::superblock_invalid') 210 | typename = decltype(std::declval<std::ostream&>() | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 211 | << std::declval<const T&>())> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/gmock/internal/gmock-internal-utils.h:43, from /usr/include/gmock/gmock-actions.h:145, from /usr/include/gmock/gmock.h:59, from unit-tests/cache_superblock_t.cc:1: /usr/lib/gcc/powerpc64-unknown-linux-gnu/11.2.0/include/g++-v11/ostream:108:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]' 108 | operator<<(__ostream_type& (*__pf)(__ostream_type&)) | ^~~~~~~~ [...] /usr/lib/gcc/powerpc64-unknown-linux-gnu/11.2.0/include/g++-v11/ostream:747:5: error: no type named 'type' in 'struct std::enable_if<false, void>' In file included from /usr/include/gtest/internal/gtest-internal.h:57, from /usr/include/gtest/gtest.h:62, from /usr/include/gmock/internal/gmock-internal-utils.h:47, from /usr/include/gmock/gmock-actions.h:145, from /usr/include/gmock/gmock.h:59, from unit-tests/cache_superblock_t.cc:1: [...] make: *** [unit-tests/Makefile:84: unit-tests/cache_superblock_t.gmo] Error 1 * ERROR: sys-block/thin-provisioning-tools-0.9.0::gentoo failed (test phase): * emake failed
Created attachment 757582 [details] emerge --info
Wonder if this is to do with newer gtest. Can you downgrade it quickly to test?
(In reply to Sam James from comment #2) > Wonder if this is to do with newer gtest. Can you downgrade it quickly to > test? Yes, you were correct! With gtest-1.10.0_p20200702 the testsuite builds fine and I get: [ RUN ] BCacheTests.cleaned_on_demand unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test body. [ FAILED ] BCacheTests.cleaned_on_demand (0 ms) [...] [ RUN ] IOEngineTests.empty_test unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test fixture's constructor. [ FAILED ] IOEngineTests.empty_test (1 ms) [ RUN ] IOEngineTests.open_and_close unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test fixture's constructor. [ FAILED ] IOEngineTests.open_and_close (0 ms) [ RUN ] IOEngineTests.you_can_read_a_read_only_handle unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test fixture's constructor. [ FAILED ] IOEngineTests.you_can_read_a_read_only_handle (0 ms) [ RUN ] IOEngineTests.you_cannot_write_to_a_read_only_handle unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test fixture's constructor. [ FAILED ] IOEngineTests.you_cannot_write_to_a_read_only_handle (0 ms) [ RUN ] IOEngineTests.you_can_write_to_a_read_write_handle unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test fixture's constructor. [ FAILED ] IOEngineTests.you_can_write_to_a_read_write_handle (0 ms) [ RUN ] IOEngineTests.final_block_read_succeeds unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test fixture's constructor. [ FAILED ] IOEngineTests.final_block_read_succeeds (0 ms) [ RUN ] IOEngineTests.out_of_bounds_read_fails unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test fixture's constructor. [ FAILED ] IOEngineTests.out_of_bounds_read_fails (0 ms) [ RUN ] IOEngineTests.out_of_bounds_write_succeeds unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test fixture's constructor. [ FAILED ] IOEngineTests.out_of_bounds_write_succeeds (0 ms) [ RUN ] IOEngineTests.succeed_with_timeout unknown file: Failure C++ exception with description "couldn't fallocate" thrown in the test fixture's constructor. [ FAILED ] IOEngineTests.succeed_with_timeout (0 ms) [...] [----------] Global test environment tear-down [==========] 200 tests from 30 test suites ran. (73345 ms total) [ PASSED ] 190 tests. [ FAILED ] 10 tests, listed below: [ FAILED ] BCacheTests.cleaned_on_demand [ FAILED ] IOEngineTests.empty_test [ FAILED ] IOEngineTests.open_and_close [ FAILED ] IOEngineTests.you_can_read_a_read_only_handle [ FAILED ] IOEngineTests.you_cannot_write_to_a_read_only_handle [ FAILED ] IOEngineTests.you_can_write_to_a_read_write_handle [ FAILED ] IOEngineTests.final_block_read_succeeds [ FAILED ] IOEngineTests.out_of_bounds_read_fails [ FAILED ] IOEngineTests.out_of_bounds_write_succeeds [ FAILED ] IOEngineTests.succeed_with_timeout 10 FAILED TESTS make: *** [unit-tests/Makefile:98: unit-test] Error 1
Created attachment 757612 [details] build.log (ppc64, 0.9.0 w. gtest-1.10.0_p20200702)