Package: googletest
Version: 1.8.0-2
Severity: normal

Dear Maintainer,

On hppa, the build fails here:

/usr/bin/c++   -g -O0 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat 
-Werror=format-security -Wdate-time   
CMakeFiles/gmock-generated-matchers_test.dir/test/gmock-generated-matchers_test.cc.o
  -o gmock-generated-matchers_test -rdynamic libgmock_main.a -lpthread 
/usr/bin/ld: 
CMakeFiles/gmock-generated-matchers_test.dir/test/gmock-generated-matchers_test.cc.o(.text._ZN7testing8internal10NotMatcherINS0_23ElementsAreArrayMatcherIPKcEEEC2ERKS6_[_ZN7testing8internal10NotMatcherINS0_23ElementsAreArrayMatcherIPKcEEEC5ERKS6_]+0x48):
 cannot reach 
00002b93__ZN7testing8internal23ElementsAreArrayMatcherIPKcEC1ERKS4_+0, 
recompile with -ffunction-sections
/usr/bin/ld: 
CMakeFiles/gmock-generated-matchers_test.dir/test/gmock-generated-matchers_test.cc.o(.text._ZN7testing8internal10NotMatcherINS0_23ElementsAreArrayMatcherIPKcEEEC2ERKS6_[_ZN7testing8internal10NotMatcherINS0_23ElementsAreArrayMatcherIPKcEEEC5ERKS6_]+0x48):
 cannot handle R_PARISC_PCREL17F for 
_ZN7testing8internal23ElementsAreArrayMatcherIPKcEC1ERKS4_
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
googlemock/CMakeFiles/gmock-generated-matchers_test.dir/build.make:98: recipe 
for target 'googlemock/gmock-generated-matchers_test' failed

Full log is here:
https://buildd.debian.org/status/fetch.php?pkg=googletest&arch=hppa&ver=1.8.0-2&stamp=1479624981

The above error is caused by a call stub table overflow or the inability
of a call to reach a long call stub.  The use of the -rdynamic option makes
this problem worse.

The problem can be avoided by compiling with the "-mlong-calls" options.
See the following URL for a successful build with this option:
https://buildd.debian.org/status/fetch.php?pkg=googletest&arch=hppa&ver=1.8.0-2&stamp=1479700635

Regards,
Dave Anglin

-- System Information:
Debian Release: stretch/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 4.8.8+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages googletest depends on:
pn  python:any  <none>

googletest recommends no packages.

googletest suggests no packages.

-- no debconf information

Reply via email to