Bug 13528 - gcc 4.8/4.9 flto mismatch causes r-base CRAN packages not to compile
Summary: gcc 4.8/4.9 flto mismatch causes r-base CRAN packages not to compile
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Luc Menut
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2014-06-16 16:59 CEST by Joseph Wang
Modified: 2015-05-19 19:53 CEST (History)
0 users

See Also:
Source RPM: R-base
CVE:
Status comment:


Attachments

Description Joseph Wang 2014-06-16 16:59:01 CEST
install.packages('httpuv') fails with R-base 3.0.3-1.

The problem appears to be that R-base was built with 4.8.  Building source CRAN files with R-base after gcc 4.9 sets the -flto flag which generates lto files that seem to be incompatible with earlier versions of R built with 4.8

One solution is to change the /etc/makeconf for R to

LTO="-flto ffat-lto-objects"

However, another solution is to rebuild R-base with gcc > 4.9
Comment 1 Joseph Wang 2014-06-16 17:40:15 CEST
It looks like R-base won't build with gcc 4.9 at all with LTO turned on.  Switching it off.
Manuel Hiebel 2014-06-17 22:48:18 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => lmenut
Source RPM: (none) => R-base

Comment 2 Samuel Verschelde 2015-05-19 19:12:16 CEST
Still valid?

Keywords: (none) => NEEDINFO

Comment 3 Luc Menut 2015-05-19 19:53:51 CEST
Fixed by disabling lto, which is the default upstream.

Keywords: NEEDINFO => (none)
Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.