[regression] lp:mir FTBFS on zesty: add_library cannot create target "gmock" ...
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/
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/
for policy CMP0002 for more details.
Call Stack (most recent call first):
/usr/
CMakeLists.txt:84 (cxx_library)
CMake Error at /usr/src/
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/
documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
/usr/
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/
See also "/home/
CMakeFiles/
make[2]: *** [gmock/
CMakeFiles/
make[1]: *** [CMakeFiles/
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
It's googletests's fault. Not a Mir bug. Duplicate of bug 1644062.