-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Fix R installation errors related to gfortran #29170
Comments
comment:1
gcc fix here (linked from the R link) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90329 not clear what they actually did - new option(s) added to gfortran? |
comment:3
Ok, I read that whole thread so no one else has to. Ultimately, this is due to broken code that needs to be updated. The GCC developers have done two things:
The workaround was backported all the way back to gcc-7.x, so really what we should be doing is telling everyone to use a new-enough gfortran. The workaround is in gcc-9.2, and based on the release dates, I presume it's also in 7.5, 8.4, and everything newer than that. We can probably just update gfortran's spkg-configure.m4 to ensure a new-enough version. Maybe for now it would suffice to check if the |
comment:4
See also: #29379 Upgrade R to 3.6.3 (which does not fix these errors) |
comment:5
See also: #29378 Update OpenBLAS to 0.3.9 (which also does not fix these errors) |
This comment has been minimized.
This comment has been minimized.
comment:9
Our R 3.6.2 already contains checks in
which looks suspicious (note - no result shown for the type) |
comment:10
from config.log there:
|
comment:11
bug in R's ./configure ? |
comment:12
In any case missing error handling. I'm on it |
comment:13
Adding |
Author: Matthias Koeppe |
Commit: |
New commits:
|
comment:16
Tests run at https://github.com/mkoeppe/sage/actions/runs/60562504 |
comment:17
One needs to check whether the latest R still has this issue, and notify upstream, if it does. |
comment:18
see above - upgrading to the latest release 3.6.3 did not fix the problem. I'll check for unreleased fixes |
comment:19
Also in R trunk there is no error handling. |
comment:20
https://github.com/wch/r-source/blob/trunk/configure.ac#L1108 Upstream does not have an open bug reporting system. Perhaps an R user can communicate this problem to upstream. |
Upstream: Not yet reported upstream; Will do shortly. |
comment:21
Shouldn't R also handle the need to add |
comment:22
I don't really understand what's happening there. It may have to do with the way we compile the gfortran spkg. Note all of the platforms where the failure occured use system gcc but a gfortran from our spkg. |
comment:23
maybe our gfortran doesn't have the needed workaround in, or perhaps there is a gfortran's default that needs to be turned on at gfortran's build time? |
comment:24
Maybe we should get rid of our gfortran instead of R, at least on the various linux distributions where there are other sane alternatives. |
comment:25
there are unfortunate souls that need Sage running on HPC systems, which often have quite outdated software and non-responsive or just absent sysadmins, and so they need to build Sage's toolchain. I'd spin out the toolchain in a separate package. |
comment:26
I think this is a working fix. I would not want to get rid of the sage distribution's ability to install gfortran. Lots of poorly maintained Linux boxes in universities everywhere. And we already advertise the distribution packages for gfortran and R. |
comment:28
Tests run at https://github.com/mkoeppe/sage/actions/runs/60588138 |
comment:29
This seems to fix the problem. See for example for Needs review |
This comment has been minimized.
This comment has been minimized.
Reviewer: Dima Pasechnik |
This comment has been minimized.
This comment has been minimized.
comment:30
ok, it works. |
comment:32
Thanks! |
comment:33
|
comment:34
Replying to @dimpase:
I think you're right and we would wind up with Since the compile/link command is hard-coded into |
Changed branch from u/mkoeppe/fix_r_installation_errors_related_to_gfortran__or_downgrade_r_to__experimental_ to |
As reported
https://developer.r-project.org/Blog/public/2019/05/15/gfortran-issues-with-lapack/index.html
Upstream: Not yet reported upstream; Will do shortly.
CC: @dimpase @EmmanuelCharpentier @kiwifb @orlitzky @timokau
Component: packages: standard
Author: Matthias Koeppe
Branch/Commit:
5fbea80
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/29170
The text was updated successfully, but these errors were encountered: