Skip to content

Build Error [-Werror-deprecated-copy] #30

@acxz

Description

@acxz

I am getting a build error on the latest release: 1.3.0

Steps to reproduce:
mkdir build && cd build
cmake ..
make

Output:

Scanning dependencies of target gmock_main
[ 67%] Building CXX object source/tests/googletest/googlemock/CMakeFiles/gmock_main.dir/__/googletest/src/gtest-all.cc.o
[ 70%] Building CXX object source/tests/googletest/googlemock/CMakeFiles/gmock_main.dir/src/gmock-all.cc.o
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘testing::PolymorphicMatcher<Impl>::PolymorphicMatcher(const Impl&) [with Impl = testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char> >]’:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:497:10:   required from ‘testing::PolymorphicMatcher<Impl> testing::MakePolymorphicMatcher(const Impl&) [with Impl = testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char> >]’
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:3975:65:   required from here
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:432:67: error: implicitly-declared ‘testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char> >::StrEqualityMatcher(const testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char> >&)’ is deprecated [-Werror=deprecated-copy]
  432 |   explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {}
      |                                                                   ^
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h:74,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-port.h:53,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-actions.h:46,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:58,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-port.h:908:8: note: because ‘testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char> >’ has user-provided ‘void testing::internal::StrEqualityMatcher<StringType>::operator=(const testing::internal::StrEqualityMatcher<StringType>&) [with StringType = std::__cxx11::basic_string<char>]’
  908 |   void operator=(type const &)
      |        ^~~~~~~~
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:1180:3: note: in expansion of macro ‘GTEST_DISALLOW_ASSIGN_’
 1180 |   GTEST_DISALLOW_ASSIGN_(StrEqualityMatcher);
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘testing::PolymorphicMatcher<Impl>::PolymorphicMatcher(const Impl&) [with Impl = testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<char> >]’:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:497:10:   required from ‘testing::PolymorphicMatcher<Impl> testing::MakePolymorphicMatcher(const Impl&) [with Impl = testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<char> >]’
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:4004:57:   required from here
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:432:67: error: implicitly-declared ‘testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<char> >::HasSubstrMatcher(const testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<char> >&)’ is deprecated [-Werror=deprecated-copy]
  432 |   explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {}
      |                                                                   ^
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h:74,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-port.h:53,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-actions.h:46,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:58,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-port.h:908:8: note: because ‘testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<char> >’ has user-provided ‘void testing::internal::HasSubstrMatcher<StringType>::operator=(const testing::internal::HasSubstrMatcher<StringType>&) [with StringType = std::__cxx11::basic_string<char>]’
  908 |   void operator=(type const &)
      |        ^~~~~~~~
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:1227:3: note: in expansion of macro ‘GTEST_DISALLOW_ASSIGN_’
 1227 |   GTEST_DISALLOW_ASSIGN_(HasSubstrMatcher);
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘testing::PolymorphicMatcher<Impl>::PolymorphicMatcher(const Impl&) [with Impl = testing::internal::StartsWithMatcher<std::__cxx11::basic_string<char> >]’:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:497:10:   required from ‘testing::PolymorphicMatcher<Impl> testing::MakePolymorphicMatcher(const Impl&) [with Impl = testing::internal::StartsWithMatcher<std::__cxx11::basic_string<char> >]’
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:4011:55:   required from here
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:432:67: error: implicitly-declared ‘testing::internal::StartsWithMatcher<std::__cxx11::basic_string<char> >::StartsWithMatcher(const testing::internal::StartsWithMatcher<std::__cxx11::basic_string<char> >&)’ is deprecated [-Werror=deprecated-copy]
  432 |   explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {}
      |                                                                   ^
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h:74,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-port.h:53,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-actions.h:46,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:58,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-port.h:908:8: note: because ‘testing::internal::StartsWithMatcher<std::__cxx11::basic_string<char> >’ has user-provided ‘void testing::internal::StartsWithMatcher<StringType>::operator=(const testing::internal::StartsWithMatcher<StringType>&) [with StringType = std::__cxx11::basic_string<char>]’
  908 |   void operator=(type const &)
      |        ^~~~~~~~
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:1274:3: note: in expansion of macro ‘GTEST_DISALLOW_ASSIGN_’
 1274 |   GTEST_DISALLOW_ASSIGN_(StartsWithMatcher);
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘testing::PolymorphicMatcher<Impl>::PolymorphicMatcher(const Impl&) [with Impl = testing::internal::EndsWithMatcher<std::__cxx11::basic_string<char> >]’:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:497:10:   required from ‘testing::PolymorphicMatcher<Impl> testing::MakePolymorphicMatcher(const Impl&) [with Impl = testing::internal::EndsWithMatcher<std::__cxx11::basic_string<char> >]’
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:4017:79:   required from here
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:432:67: error: implicitly-declared ‘testing::internal::EndsWithMatcher<std::__cxx11::basic_string<char> >::EndsWithMatcher(const testing::internal::EndsWithMatcher<std::__cxx11::basic_string<char> >&)’ is deprecated [-Werror=deprecated-copy]
  432 |   explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {}
      |                                                                   ^
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h:74,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-port.h:53,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-actions.h:46,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:58,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-port.h:908:8: note: because ‘testing::internal::EndsWithMatcher<std::__cxx11::basic_string<char> >’ has user-provided ‘void testing::internal::EndsWithMatcher<StringType>::operator=(const testing::internal::EndsWithMatcher<StringType>&) [with StringType = std::__cxx11::basic_string<char>]’
  908 |   void operator=(type const &)
      |        ^~~~~~~~
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:1320:3: note: in expansion of macro ‘GTEST_DISALLOW_ASSIGN_’
 1320 |   GTEST_DISALLOW_ASSIGN_(EndsWithMatcher);
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘testing::PolymorphicMatcher<Impl>::PolymorphicMatcher(const Impl&) [with Impl = testing::internal::MatchesRegexMatcher]’:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:497:10:   required from ‘testing::PolymorphicMatcher<Impl> testing::MakePolymorphicMatcher(const Impl&) [with Impl = testing::internal::MatchesRegexMatcher]’
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:4024:75:   required from here
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:432:67: error: implicitly-declared ‘testing::internal::MatchesRegexMatcher::MatchesRegexMatcher(const testing::internal::MatchesRegexMatcher&)’ is deprecated [-Werror=deprecated-copy]
  432 |   explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {}
      |                                                                   ^
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h:74,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-port.h:53,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-actions.h:46,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:58,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-port.h:908:8: note: because ‘testing::internal::MatchesRegexMatcher’ has user-provided ‘void testing::internal::MatchesRegexMatcher::operator=(const testing::internal::MatchesRegexMatcher&)’
  908 |   void operator=(type const &)
      |        ^~~~~~~~
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:1369:3: note: in expansion of macro ‘GTEST_DISALLOW_ASSIGN_’
 1369 |   GTEST_DISALLOW_ASSIGN_(MatchesRegexMatcher);
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘testing::PolymorphicMatcher<Impl>::PolymorphicMatcher(const Impl&) [with Impl = testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<wchar_t> >]’:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:497:10:   required from ‘testing::PolymorphicMatcher<Impl> testing::MakePolymorphicMatcher(const Impl&) [with Impl = testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<wchar_t> >]’
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:4049:23:   required from here
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:432:67: error: implicitly-declared ‘testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<wchar_t> >::StrEqualityMatcher(const testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<wchar_t> >&)’ is deprecated [-Werror=deprecated-copy]
  432 |   explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {}
      |                                                                   ^
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h:74,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-port.h:53,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-actions.h:46,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:58,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-port.h:908:8: note: because ‘testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<wchar_t> >’ has user-provided ‘void testing::internal::StrEqualityMatcher<StringType>::operator=(const testing::internal::StrEqualityMatcher<StringType>&) [with StringType = std::__cxx11::basic_string<wchar_t>]’
  908 |   void operator=(type const &)
      |        ^~~~~~~~
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:1180:3: note: in expansion of macro ‘GTEST_DISALLOW_ASSIGN_’
 1180 |   GTEST_DISALLOW_ASSIGN_(StrEqualityMatcher);
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘testing::PolymorphicMatcher<Impl>::PolymorphicMatcher(const Impl&) [with Impl = testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<wchar_t> >]’:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:497:10:   required from ‘testing::PolymorphicMatcher<Impl> testing::MakePolymorphicMatcher(const Impl&) [with Impl = testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<wchar_t> >]’
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:4078:17:   required from here
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:432:67: error: implicitly-declared ‘testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<wchar_t> >::HasSubstrMatcher(const testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<wchar_t> >&)’ is deprecated [-Werror=deprecated-copy]
  432 |   explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {}
      |                                                                   ^
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h:74,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-port.h:53,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-actions.h:46,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:58,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-port.h:908:8: note: because ‘testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<wchar_t> >’ has user-provided ‘void testing::internal::HasSubstrMatcher<StringType>::operator=(const testing::internal::HasSubstrMatcher<StringType>&) [with StringType = std::__cxx11::basic_string<wchar_t>]’
  908 |   void operator=(type const &)
      |        ^~~~~~~~
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:1227:3: note: in expansion of macro ‘GTEST_DISALLOW_ASSIGN_’
 1227 |   GTEST_DISALLOW_ASSIGN_(HasSubstrMatcher);
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘testing::PolymorphicMatcher<Impl>::PolymorphicMatcher(const Impl&) [with Impl = testing::internal::StartsWithMatcher<std::__cxx11::basic_string<wchar_t> >]’:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:497:10:   required from ‘testing::PolymorphicMatcher<Impl> testing::MakePolymorphicMatcher(const Impl&) [with Impl = testing::internal::StartsWithMatcher<std::__cxx11::basic_string<wchar_t> >]’
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:4085:14:   required from here
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:432:67: error: implicitly-declared ‘testing::internal::StartsWithMatcher<std::__cxx11::basic_string<wchar_t> >::StartsWithMatcher(const testing::internal::StartsWithMatcher<std::__cxx11::basic_string<wchar_t> >&)’ is deprecated [-Werror=deprecated-copy]
  432 |   explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {}
      |                                                                   ^
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h:74,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-port.h:53,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-actions.h:46,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:58,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-port.h:908:8: note: because ‘testing::internal::StartsWithMatcher<std::__cxx11::basic_string<wchar_t> >’ has user-provided ‘void testing::internal::StartsWithMatcher<StringType>::operator=(const testing::internal::StartsWithMatcher<StringType>&) [with StringType = std::__cxx11::basic_string<wchar_t>]’
  908 |   void operator=(type const &)
      |        ^~~~~~~~
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:1274:3: note: in expansion of macro ‘GTEST_DISALLOW_ASSIGN_’
 1274 |   GTEST_DISALLOW_ASSIGN_(StartsWithMatcher);
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-generated-function-mockers.h:43,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h: In instantiation of ‘testing::PolymorphicMatcher<Impl>::PolymorphicMatcher(const Impl&) [with Impl = testing::internal::EndsWithMatcher<std::__cxx11::basic_string<wchar_t> >]’:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:497:10:   required from ‘testing::PolymorphicMatcher<Impl> testing::MakePolymorphicMatcher(const Impl&) [with Impl = testing::internal::EndsWithMatcher<std::__cxx11::basic_string<wchar_t> >]’
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:4092:14:   required from here
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:432:67: error: implicitly-declared ‘testing::internal::EndsWithMatcher<std::__cxx11::basic_string<wchar_t> >::EndsWithMatcher(const testing::internal::EndsWithMatcher<std::__cxx11::basic_string<wchar_t> >&)’ is deprecated [-Werror=deprecated-copy]
  432 |   explicit PolymorphicMatcher(const Impl& an_impl) : impl_(an_impl) {}
      |                                                                   ^
In file included from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-linked_ptr.h:74,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-port.h:53,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h:44,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:45,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-actions.h:46,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock.h:58,
                 from /home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/src/gmock-all.cc:40:
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googletest/include/gtest/internal/gtest-port.h:908:8: note: because ‘testing::internal::EndsWithMatcher<std::__cxx11::basic_string<wchar_t> >’ has user-provided ‘void testing::internal::EndsWithMatcher<StringType>::operator=(const testing::internal::EndsWithMatcher<StringType>&) [with StringType = std::__cxx11::basic_string<wchar_t>]’
  908 |   void operator=(type const &)
      |        ^~~~~~~~
/home/acxz/.cache/yay/cppfs/src/cppfs-1.3.0/source/tests/googletest/googlemock/include/gmock/gmock-matchers.h:1320:3: note: in expansion of macro ‘GTEST_DISALLOW_ASSIGN_’
 1320 |   GTEST_DISALLOW_ASSIGN_(EndsWithMatcher);
      |   ^~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [source/tests/googletest/googlemock/CMakeFiles/gmock_main.dir/build.make:76: source/tests/googletest/googlemock/CMakeFiles/gmock_main.dir/src/gmock-all.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:421: source/tests/googletest/googlemock/CMakeFiles/gmock_main.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

OS: ArchLinux
GCC: 9.2.0

Can a new release be made with a working build? As it is right now, the ArchLinux package is breaking. Thank you. The fix also seems to be pretty quick. Either we pass the deprecated errors as warnings or we use the updated api.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions