The failure: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: connections.o: relocation R_X86_64_PC32 against symbol `R_OutputCon' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[3]: *** [Makefile:177: libR.so] Error 1 make[3]: Leaving directory '/var/tmp/portage/dev-lang/R-3.4.1/work/R-3.4.1/src/main' make[2]: *** [Makefile:135: R] Error 2 make[2]: Leaving directory '/var/tmp/portage/dev-lang/R-3.4.1/work/R-3.4.1/src/main' make[1]: *** [Makefile:28: R] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-lang/R-3.4.1/work/R-3.4.1/src' make: *** [Makefile:61: R] Error 1 * ERROR: dev-lang/R-3.4.1::gentoo failed (compile phase): * emake failed which seems to indicate that -fPIC is missing. dev-lang/R-4.0.4 does install correctly.
Created attachment 691881 [details] build log
Plenty of stuff like /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: Rdynload.o:(.bss+0x40): multiple definition of `R_OutputCon'; CommandLineArgs.o:(.bss+0x0): first defined here While the -fPIC comment seems pertinent, I think this is hiding a gcc-10 porting issue.
Created attachment 691935 [details] emerge --info
Perhaps a newer version of R should be stabilized.
(In reply to Steven Trogdon from comment #4) > Perhaps a newer version of R should be stabilized. This is already underway in bug #765361
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d5e5c89778eb7ce15420c71a3f7abd0bdf6b7e commit 92d5e5c89778eb7ce15420c71a3f7abd0bdf6b7e Author: David Seifert <soap@gentoo.org> AuthorDate: 2021-04-20 11:06:05 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2021-04-20 11:06:05 +0000 dev-lang/R: Remove old 3.4.1, 3.6.3-r1, 4.0.2 Bug: https://bugs.gentoo.org/765361 Closes: https://bugs.gentoo.org/776781 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org> dev-lang/R/Manifest | 3 - dev-lang/R/R-3.4.1.ebuild | 203 ------------------------------------ dev-lang/R/R-3.6.3-r1.ebuild | 234 ----------------------------------------- dev-lang/R/R-4.0.2.ebuild | 243 ------------------------------------------- 4 files changed, 683 deletions(-)