Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 776781 - dev-lang/R-3.4.1 fails to build with -fno-common or gcc-10
Summary: dev-lang/R-3.4.1 fails to build with -fno-common or gcc-10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on: CVE-2020-27637
Blocks: -fno-common
  Show dependency tree
 
Reported: 2021-03-16 23:11 UTC by Steven Trogdon
Modified: 2021-04-20 11:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build_log,118.98 KB, text/plain)
2021-03-16 23:19 UTC, Steven Trogdon
Details
emerge --info (emerge.info,6.15 KB, text/plain)
2021-03-17 04:28 UTC, Steven Trogdon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Trogdon 2021-03-16 23:11:05 UTC
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.
Comment 1 Steven Trogdon 2021-03-16 23:19:54 UTC
Created attachment 691881 [details]
build log
Comment 2 François Bissey 2021-03-17 04:00:24 UTC
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.
Comment 3 Steven Trogdon 2021-03-17 04:28:33 UTC
Created attachment 691935 [details]
emerge --info
Comment 4 Steven Trogdon 2021-03-17 04:30:04 UTC
Perhaps a newer version of R should be stabilized.
Comment 5 Ionen Wolkens gentoo-dev 2021-03-18 16:59:13 UTC
(In reply to Steven Trogdon from comment #4)
> Perhaps a newer version of R should be stabilized.
This is already underway in bug #765361
Comment 6 Larry the Git Cow gentoo-dev 2021-04-20 11:06:19 UTC
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(-)