New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R fails to build with LTO #12741
Comments
comment:1
I don't know R at all. In particular, in contrast to Singular at #12738, I did not look at the source code and have no idea how compiler or linker flags are dealt with in R. What I find suspicious in the log is that only "gcc" is named in lines such as
Can we be sure that really the "correct" gcc, namely the one in |
comment:2
Just noticed that there's this suspicious line in your R spkg log:
which indicates that the autotools the R spkg was made with are [too] old. (Note that I did get the same with vanilla GLPK upstream source.) The error looks a bit strange though, but the log isn't really that verbose, at least at first glance. Slightly unrelated: Looks like R builds its own zlib, which it shouldn't, since Sage provides it. |
comment:3
Replying to @nexttime:
Although I do have the same in my successful build log (with GCC 4.6.3 and |
comment:4
P.S.: Did you also try on another machine? What's the version of your binutils (which also include |
comment:5
Replying to @nexttime:
Please don't say that (after the gcc spkg) Sage also needs an ld spkg... |
comment:6
Replying to @simon-king-jena:
For LTO to fully work (or, better, be fully applicable), unfortunately yes, since (But I've successfully built Sage with [just] |
comment:7
Replying to @nexttime:
I don't understand: At what point do I need to provide |
comment:8
Replying to @simon-king-jena:
Sorry, now I recall your comments from #12703, where you say that some (not all) packages would need However, how problematic is that my ld is slightly too old? Would it refuse to work with I guess Sage shouldn't also add another 60MB or so for a binutils spkg, isn't it? |
comment:9
Replying to @simon-king-jena:
Explicitly specifying From the GCC manual:
It's IMHO a minor issue anyway.
Nope, GCC will exit with an error if you specify
We need a standard LaTeX / TeXLive package, too. ;-) No, seriously, we could of course also offer an optional binutils package, but that's not that important, although the GCC package may refuse to build on systems with too incapable versions of the programs provided by binutils. |
comment:10
I now get a funny Maxima build error: In the last (link) step, ECL (or some Maxima build script) calls GCC with |
comment:11
Replying to @nexttime:
Interesting. That worked for me... I broke my promise and did create a binutils-2.22.spkg, by the way. I hope that it will help solve my problems with -flto. Not that I really have problems - I just want to see that optimization does not make Sage slower (which it currently does!). |
comment:12
Replying to @nexttime:
This is now (fixed at) #12759. |
comment:13
Simon, does using LTO still fail for you with GCC 4.7.1? (According to the release notes, there've been major improvements, including bug fixes, to link-time optimization.) Jeroen has provided an optional GCC 4.7.1 spkg at #13150, although that doesn't support using LTO out of the box I guess... |
comment:14
Replying to @nexttime:
I didn't try (and I don't know if I will try soon, because it might very well be that I'll be off to holiday tomorrow). |
Changed keywords from R LTO to R LTO r-project |
comment:16
For the record: With FSF GCC 4.7.2, for me R still fails to build without LTO (i.e., with Presumably some GCC optimizer bug, but hard to track down as R segfaults while byte-compiling. (This happens on Linux x86 and x86_64.) |
comment:21
outdated, should close |
Reviewer: Michael Orlitzky |
I took sage-5.0.beta9, replaced the ppl package by the one from #12672, added the cloog-ppl package from #12666, replaced the glpk package by the one from #12703, added a new libelf spkg, added the mpc and gcc spkgs from #12369 and modified the gcc spkg such that the gcc is built with support of loop optimization (graphite) and lto.
Then, I tried to build Sage with rather high optimization:
It was needed to temporarily remove
-flto
in order to build Singular (see #12738). Later, R failed to build - see this install log.CC: @nexttime
Component: packages: standard
Keywords: R LTO r-project
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/12741
The text was updated successfully, but these errors were encountered: