[Debian-med-packaging] Bug#844874: opensurgsim: googletest related build failure

Adrian Bunk bunk at stusta.de
Sun Nov 20 21:56:00 UTC 2016


Control: retitle -1 opensurgsim: googletest related build failure

The actual error is:

...
-- Found GoogleMock: /usr/src/gmock  
CMake Error at /usr/src/googletest/googletest/cmake/internal_utils.cmake:149 (add_library):
  add_library cannot create target "gmock" because another target with the
  same name already exists.  The existing target is a shared library created
  in source directory "/usr/src/googletest/googlemock".  See documentation
  for policy CMP0002 for more details.
Call Stack (most recent call first):
  /usr/src/googletest/googletest/cmake/internal_utils.cmake:172 (cxx_library_with_type)
  /usr/src/gmock/CMakeLists.txt:84 (cxx_library)


CMake Error at 
/usr/src/googletest/googletest/cmake/internal_utils.cmake:149 (add_library):
  add_library cannot create target "gmock_main" because another target with
  the same name already exists.  The existing target is a shared library
  created in source directory "/usr/src/googletest/googlemock".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  /usr/src/googletest/googletest/cmake/internal_utils.cmake:172 (cxx_library_with_type)
  /usr/src/gmock/CMakeLists.txt:89 (cxx_library)


CMake Error at /usr/src/gmock/CMakeLists.txt:106 (install):
  install TARGETS given target "gmock" which does not exist in this
  directory.


-- Found Doxygen: /usr/bin/doxygen (found version "1.8.12") 
-- Found MathJax: /usr/share/javascript/mathjax  
-- Using local MathJax: /usr/share/javascript/mathjax
-- Configuring incomplete, errors occurred!
...




16:11 < debfx> bunk: seems to be related to the /usr/src/gmock -> 
               googletest/googlemock symlink that googletest 1.8.0-1 introduced



cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



More information about the Debian-med-packaging mailing list