[R-pkg-team] Bug#996970: r-cran-maotai: FTBFS on hppa with gcc-11

John David Anglin dave.anglin at bell.net
Thu Oct 21 17:24:59 BST 2021


Source: r-cran-maotai
Version: 0.2.1-1
Severity: normal

Dear Maintainer,

Build fails with the following error:
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -o maotai.so RcppExports.o cpp_bmds.o cpp_casket.o cpp_mmds.o evaluations.o src_computations.o -fopenmp -llapack -lblas -lgfortran -lm /usr/lib/gcc/hppa-linux-gnu/10/libgcc.a -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find /usr/lib/gcc/hppa-linux-gnu/10/libgcc.a: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [/usr/share/R/share/make/shlib.mk:10: maotai.so] Error 1

It is not clear why the build directly tries to link against libgcc.a
from gcc-10.  The dependencies now for gcc-11 and g++-11 pull in the static
and shared libgcc libraries for gcc-11.  The control file doesn't require
the gcc-10 libraries.  See:
https://buildd.debian.org/status/fetch.php?pkg=r-cran-maotai&arch=hppa&ver=0.2.1-2&stamp=1634810036&raw=0

The g++ driver automatically links against libgcc.  Maybe the intent is to link
against the static library.  If so, it now needs to link using the gcc-11
library.

This problem affect multiple r packages.

Regards,
Dave Anglin

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

Kernel: Linux 5.14.14+ (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the R-pkg-team mailing list