Bug#973095: ros-angles: FTBFS: make[5]: *** No rule to make target 'gmock/libgmock.a', needed by 'devel/lib/angles/utest'. Stop.

Timo Röhling timo at gaussglocke.de
Tue Nov 3 12:00:03 GMT 2020


Control: reassign -1 cmake-extras
Control: reassign 973291 cmake-extras
Control: merge -1 973291
Control: affects -1 + src:ros-angles src:ros-rospack

Dear cmake-extras maintainers,

I believe bugs #973095 and #973291 can be traced back to your package:

> During a rebuild of all packages in sid, your package failed to build
> on amd64.
>
> Relevant part (hopefully):
> > make[5]: Entering directory '/<<PKGBUILDDIR>>/build'
> > [ 90%] Building CXX object test/CMakeFiles/utest.dir/utest.cpp.o
> > cd /<<PKGBUILDDIR>>/build/test && /usr/bin/c++
-DGTEST_VERSION_MAJOR=1 -DGTEST_VERSION_MINOR=8 -DGTEST_VERSION_PATCH=0
-DGTEST_VERSION_UNKNOWN -DROS_BUILD_SHARED_LIBS=1
-I/<<PKGBUILDDIR>>/angles/include
-I/usr/src/googletest/googlemock/include
-I/usr/src/googletest/googletest/include -g -O2
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o
CMakeFiles/utest.dir/utest.cpp.o -c /<<PKGBUILDDIR>>/angles/test/utest.cpp
> > make[5]: *** No rule to make target 'gmock/libgmock.a', needed by
'devel/lib/angles/utest'. Stop.
> > make[5]: Leaving directory '/<<PKGBUILDDIR>>/build'
> > make[4]: *** [CMakeFiles/Makefile2:324:
test/CMakeFiles/utest.dir/all] Error 2

Starting with version 1.9.0.20190831, the Googletest CMake scripts put
the library build artifacts into a "lib" subfolder of the current binary
output folder. The ExternalProject_Add() part of GMockConfig.cmake still
assumes they are in the binary folder itself, and subsequently creates
invalid interface libraries.

Cheers
Timo



More information about the debian-science-maintainers mailing list