Mir

[regression] lp:mir FTBFS on zesty: add_library cannot create target "gmock" ...

Bug #1644065 reported by Daniel van Vugt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
New
Critical
Unassigned

Bug Description

[regression] lp:mir FTBFS on zesty today:

$ make
Scanning dependencies of target GMock
[ 0%] Creating directories for 'GMock'
[ 0%] No download step for 'GMock'
[ 0%] No patch step for 'GMock'
[ 0%] No update step for 'GMock'
[ 0%] Performing configure step for 'GMock'
-- The CXX compiler identification is GNU 6.2.0
-- The C compiler identification is GNU 6.2.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.12")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
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 static 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)
  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 static 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)
  CMakeLists.txt:89 (cxx_library)

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

-- Configuring incomplete, errors occurred!
See also "/home/dan/bzr/mir/trunk/build/gmock/libs/CMakeFiles/CMakeOutput.log".
See also "/home/dan/bzr/mir/trunk/build/gmock/libs/CMakeFiles/CMakeError.log".
CMakeFiles/GMock.dir/build.make:105: recipe for target 'gmock/src/GMock-stamp/GMock-configure' failed
make[2]: *** [gmock/src/GMock-stamp/GMock-configure] Error 1
CMakeFiles/Makefile2:378: recipe for target 'CMakeFiles/GMock.dir/all' failed
make[1]: *** [CMakeFiles/GMock.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

Tags: regression
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It's googletests's fault. Not a Mir bug. Duplicate of bug 1644062.

tags: added: regression
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.