Source: ros-image-common
Version: 1.11.10-4
Severity: serious

Your package failed to build on several architectures:

/usr/bin/ld: CMakeFiles/gtest.dir/src/gtest-all.cc.o: relocation R_X86_64_PC32 
against symbol `_ZTVN7testing8internal17TestEventRepeaterE' can not be used 
when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

It looks as if that file was compiled with -fPIC though:

cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/gtest && /usr/bin/c++   
-DGTEST_CREATE_SHARED_LIBRARY=1 -Dgtest_EXPORTS -I/usr/src/gtest/include 
-I/usr/src/gtest  -g -O2 -fPIE -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -fPIC   -g -O2 -fPIE 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2  -Wall -Wshadow -DGTEST_HAS_PTHREAD=1 -fexceptions -Wextra 
-Wno-unused-parameter -Wno-missing-field-initializers -o 
CMakeFiles/gtest.dir/src/gtest-all.cc.o -c /usr/src/gtest/src/gtest-all.cc

On ppc64el the error is a bit different, but it also points to -fPIC so the
problem is likely the same:

/usr/bin/c++  -fPIC -g -O2 -fPIE -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -fPIE -pie 
-Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libgtest.so -o libgtest.so 
CMakeFiles/gtest.dir/src/gtest-all.cc.o  
-L/«PKGBUILDDIR»/obj-powerpc64le-linux-gnu/gtest/src -lpthread 
-Wl,-rpath,/«PKGBUILDDIR»/obj-powerpc64le-linux-gnu/gtest/src 
/usr/bin/ld: CMakeFiles/gtest.dir/src/gtest-all.cc.o: In function 
`testing::internal::FormatCxxExceptionMessage(char const*, char const*)':
/usr/src/gtest/src/gtest.cc:2030:(.text.unlikely+0x80): call to 
`testing::Message::Message()' lacks nop, can't restore toc; recompile with -fPIC
/usr/bin/ld: CMakeFiles/gtest.dir/src/gtest-all.cc.o: In function 
`testing::Message::GetString[abi:cxx11]() const':
/usr/src/gtest/src/gtest.cc:947:(.text.unlikely+0x150): call to 
`testing::internal::StringStreamToString(std::__cxx11::basic_stringstream<char, 
std::char_traits<char>, std::allocator<char> >*)' lacks nop, can't restore toc; 
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

Full logs at:
https://buildd.debian.org/status/logs.php?pkg=ros-image-common&ver=1.11.10-4

Cheers,
Emilio

Reply via email to