Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828481 - sys-block/thin-provisioning-tools-0.9.0 - fails to build testsuite with gtest-1.11.0
Summary: sys-block/thin-provisioning-tools-0.9.0 - fails to build testsuite with gtest...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal with 1 vote (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2021-12-06 21:14 UTC by ernsteiswuerfel
Modified: 2021-12-07 11:04 UTC (History)
2 users (show)

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


Attachments
build.log (ppc64, 0.9.0) (thin-provisioning-tools-0.9.0:20211206-204724.log,401.33 KB, text/plain)
2021-12-06 21:14 UTC, ernsteiswuerfel
Details
emerge --info (file_828481.txt,6.08 KB, text/plain)
2021-12-06 21:15 UTC, ernsteiswuerfel
Details
build.log (ppc64, 0.9.0 w. gtest-1.10.0_p20200702) (thin-provisioning-tools-0.9.0:20211207-102345.log,195.93 KB, text/plain)
2021-12-07 11:04 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2021-12-06 21:14:42 UTC
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
Comment 1 ernsteiswuerfel archtester 2021-12-06 21:15:04 UTC
Created attachment 757582 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-07 08:31:43 UTC
Wonder if this is to do with newer gtest. Can you downgrade it quickly to test?
Comment 3 ernsteiswuerfel archtester 2021-12-07 11:03:44 UTC
(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
Comment 4 ernsteiswuerfel archtester 2021-12-07 11:04:26 UTC
Created attachment 757612 [details]
build.log (ppc64, 0.9.0 w. gtest-1.10.0_p20200702)