Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
acxz opened this issue Feb 2, 2020 · 2 comments
Closed

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

acxz opened this issue Feb 2, 2020 · 2 comments

Comments

@acxz
Copy link

acxz commented Feb 2, 2020

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.

@acxz acxz changed the title Build Error Build Error [-Werror-deprecated-copy] Feb 2, 2020
@acxz
Copy link
Author

acxz commented Apr 7, 2020

Closing this issue as I am not using this repo anymore and it seems as this repo is stale.

@acxz acxz closed this as completed Apr 7, 2020
@scheibel
Copy link
Member

You should leave issues open, although they don't affect you anymore. In this case, the issue is with our repository and only partially tied to your personal usage. Further, I want to affirm this repository is not stale. It just happens that our code does what it should without much interference.

Quick investigation: the issue is not within our code. A simple workaround that you as well as ArchLinux maintainers (more generally: users of GCC 9.x) could use is to build the library with tests disabled (switching the CMake option OPTION_BUILD_TESTS to Off). What we experience here is a change in warning behavior after a compiler upgrade.
The issue is resolved by updating the googletest dependency used for testing.

@scheibel scheibel reopened this Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants