Bug#844896: gazebo: FTBFS: gtest.cc:1898:10: error: type 'const class testing::internal::scoped_ptr<testing::internal::GTestFlagSaver>' argument given to 'delete', expected pointer

Lucas Nussbaum lucas at debian.org
Sat Nov 19 06:39:41 UTC 2016


Source: gazebo
Version: 7.3.1+dfsg-2
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20161118 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> /usr/bin/c++  -fPIC -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/gazebo-7.3.1+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -Wextra -Wno-long-long -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wfloat-equal -Wshadow -Winit-self -Wswitch-default -Wmissing-include-dirs -pedantic -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -DBUILDING_DLL_GIMPACT -mfpmath=sse -msse -msse2 -msse3 -mssse3 -DSSE -Wl,-z,relro -shared -Wl,-soname,libgazebo_gimpact.so.7 -o libgazebo_gimpact.so.7.3.1 CMakeFiles/gazebo_gimpact.dir/src/gim_tri_tri_overlap.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gim_math.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gimpact.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gim_trimesh_trimesh_collision.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gim_trimesh_sphere_collision.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gim_trimesh.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gim_trimesh_capsule_collision.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gim_memory.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gim_contact.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gim_boxpruning.cpp.o CMakeFiles/gazebo_gimpact.dir/src/gim_trimesh_ray_collision.cpp.o 
> cd /<<BUILDDIR>>/gazebo-7.3.1+dfsg/obj-x86_64-linux-gnu/deps/opende/GIMPACT && /usr/bin/cmake -E cmake_symlink_library libgazebo_gimpact.so.7.3.1 libgazebo_gimpact.so.7 libgazebo_gimpact.so
> make[3]: Leaving directory '/<<BUILDDIR>>/gazebo-7.3.1+dfsg/obj-x86_64-linux-gnu'
> [ 10%] Built target gazebo_gimpact
> In file included from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:42:0:
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest.cc: In destructor 'virtual testing::Test::~Test()':
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest.cc:1898:10: error: type 'const class testing::internal::scoped_ptr<testing::internal::GTestFlagSaver>' argument given to 'delete', expected pointer
>    delete gtest_flag_saver_;
>           ^~~~~~~~~~~~~~~~~
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest.cc: At global scope:
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest.cc:2178:1: error: prototype for 'testing::TestInfo::TestInfo(const string&, const string&, const char*, const char*, testing::internal::TypeId, testing::internal::TestFactoryBase*)' does not match any in class 'testing::TestInfo'
>  TestInfo::TestInfo(const std::string& a_test_case_name,
>  ^~~~~~~~
> In file included from /usr/include/gtest/internal/gtest-internal.h:40:0,
>                  from /usr/include/gtest/gtest.h:58,
>                  from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:39:
> /usr/include/gtest/gtest.h:772:3: error: candidates are: testing::TestInfo::TestInfo(const testing::TestInfo&)
>    GTEST_DISALLOW_COPY_AND_ASSIGN_(TestInfo);
>    ^
> In file included from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:39:0:
> /usr/include/gtest/gtest.h:728:3: error:                 testing::TestInfo::TestInfo(const string&, const string&, const char*, const char*, testing::internal::CodeLocation, testing::internal::TypeId, testing::internal::TestFactoryBase*)
>    TestInfo(const std::string& test_case_name,
>    ^~~~~~~~
> In file included from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:42:0:
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest.cc: In function 'testing::TestInfo* testing::internal::MakeAndRegisterTestInfo(const char*, const char*, const char*, const char*, testing::internal::TypeId, testing::internal::SetUpTestCaseFunc, testing::internal::TearDownTestCaseFunc, testing::internal::TestFactoryBase*)':
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest.cc:2228:45: error: no matching function for call to 'testing::TestInfo::TestInfo(const char*&, const char*&, const char*&, const char*&, const void*&, testing::internal::TestFactoryBase*&)'
>                     fixture_class_id, factory);
>                                              ^
> In file included from /usr/include/gtest/internal/gtest-internal.h:40:0,
>                  from /usr/include/gtest/gtest.h:58,
>                  from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:39:
> /usr/include/gtest/gtest.h:772:3: note: candidate: testing::TestInfo::TestInfo(const testing::TestInfo&)
>    GTEST_DISALLOW_COPY_AND_ASSIGN_(TestInfo);
>    ^
> /usr/include/gtest/gtest.h:772:3: note:   candidate expects 1 argument, 6 provided
> In file included from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:39:0:
> /usr/include/gtest/gtest.h:728:3: note: candidate: testing::TestInfo::TestInfo(const string&, const string&, const char*, const char*, testing::internal::CodeLocation, testing::internal::TypeId, testing::internal::TestFactoryBase*)
>    TestInfo(const std::string& test_case_name,
>    ^~~~~~~~
> /usr/include/gtest/gtest.h:728:3: note:   candidate expects 7 arguments, 6 provided
> In file included from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:42:0:
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest.cc: In function 'void testing::internal::InitGoogleTestImpl(int*, CharType**)':
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest.cc:4984:3: error: 'g_argvs' was not declared in this scope
>    g_argvs.clear();
>    ^~~~~~~
> In file included from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:43:0:
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-death-test.cc: In function 'void testing::internal::SplitString(const string&, char, std::vector<std::__cxx11::basic_string<char> >*)':
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-death-test.cc:1208:13: error: 'void testing::internal::SplitString(const string&, char, std::vector<std::__cxx11::basic_string<char> >*)' was declared 'extern' and later 'static' [-fpermissive]
>  static void SplitString(const ::std::string& str, char delimiter,
>              ^~~~~~~~~~~
> In file included from /usr/include/gtest/gtest.h:58:0,
>                  from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:39:
> /usr/include/gtest/internal/gtest-internal.h:612:6: note: previous declaration of 'void testing::internal::SplitString(const string&, char, std::vector<std::__cxx11::basic_string<char> >*)'
>  void SplitString(const ::std::string& str, char delimiter,
>       ^~~~~~~~~~~
> In file included from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:45:0:
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-port.cc: In function 'const char* testing::internal::StringFromGTestEnv(const char*, const char*)':
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-port.cc:798:13: error: ambiguating new declaration of 'const char* testing::internal::StringFromGTestEnv(const char*, const char*)'
>  const char* StringFromGTestEnv(const char* flag, const char* default_value) {
>              ^~~~~~~~~~~~~~~~~~
> In file included from /usr/include/gtest/internal/gtest-internal.h:40:0,
>                  from /usr/include/gtest/gtest.h:58,
>                  from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:39:
> /usr/include/gtest/internal/gtest-port.h:2549:13: note: old declaration 'std::__cxx11::string testing::internal::StringFromGTestEnv(const char*, const char*)'
>  std::string StringFromGTestEnv(const char* flag, const char* default_val);
>              ^~~~~~~~~~~~~~~~~~
> In file included from /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-all.cc:48:0:
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-typed-test.cc: In member function 'const char* testing::internal::TypedTestCasePState::VerifyRegisteredTestNames(const char*, int, const char*)':
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-typed-test.cc:71:31: error: 'defined_test_names_' was not declared in this scope
>      for (DefinedTestIter it = defined_test_names_.begin();
>                                ^~~~~~~~~~~~~~~~~~~
> /<<BUILDDIR>>/gazebo-7.3.1+dfsg/test/gtest/src/gtest-typed-test.cc:88:29: error: 'defined_test_names_' was not declared in this scope
>    for (DefinedTestIter it = defined_test_names_.begin();
>                              ^~~~~~~~~~~~~~~~~~~
> test/CMakeFiles/gtest.dir/build.make:65: recipe for target 'test/CMakeFiles/gtest.dir/gtest/src/gtest-all.cc.o' failed
> make[3]: *** [test/CMakeFiles/gtest.dir/gtest/src/gtest-all.cc.o] Error 1

The full build log is available from:
   http://aws-logs.debian.net/2016/11/18/gazebo_7.3.1+dfsg-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the debian-science-maintainers mailing list