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
Allow Sage to build and run on old Macs on last time #17513
Comments
comment:1
Not formal patch for iml, but at least for very old Darwin EXTRA_BLAS=""
if [ $UNAME = "Darwin" ]; then
# copy cblas headers from gsl
cp ../patches/gsl_cblas.h cblas.h
- EXTRA_BLAS="--with-cblas=-lcblas"
+ EXTRA_BLAS="--with-cblas=-lgslcblas"
fi |
comment:2
Fix from sage-devel:
|
comment:3
For reference diff --git a/src/bin/sage b/src/bin/sage
index ca07760..a5d2dae 100755
--- a/src/bin/sage
+++ b/src/bin/sage
@@ -641,7 +641,7 @@ build_sage() {
sage-build "$@" || exit $?
}
-if [[ "$1" =~ "--notebook="* || "$1" =~ "-n="* || "$1" =~ "-notebook="* ]]; then
+if [ "${1:0:11}" = "--notebook=" ] || [ "${1:0:10}" = "-notebook=" ] || [ "${1:0:3}" = "-n=" ]; then
sage-cleaner &>/dev/null &
exec sage-notebook "$@"
fi |
comment:4
And diff --git a/build/pkgs/iml/spkg-install b/build/pkgs/iml/spkg-install
index 7940695..1241f3e 100755
--- a/build/pkgs/iml/spkg-install
+++ b/build/pkgs/iml/spkg-install
@@ -35,7 +35,7 @@ EXTRA_BLAS=""
if [ $UNAME = "Darwin" ]; then
# copy cblas headers from gsl
cp ../patches/gsl_cblas.h cblas.h
- EXTRA_BLAS="--with-cblas=-lcblas"
+ EXTRA_BLAS="--with-cblas=-lgslcblas"
fi
./configure --prefix="$SAGE_LOCAL" --libdir="$SAGE_LOCAL/lib" \ |
comment:5
For old Darwin isn't |
comment:6
Probably, I was just going for minimal changes to current files for my own ease. It is very, very slow to try this for me because I have to have access to the machines and nothing better to do and then it takes a while to do it because they are old. |
comment:7
Oh, maybe
in our ATLAS install script. |
comment:8
If anybody going to work on this? Otherwise we might as well close it. This ticket is only becoming more and more obsolete... |
comment:9
Still got an eMac sitting in my office waiting for me to fire up again... I had a very busy spring and summer with very little Sage time. With some luck this fall will be different. You are right about the obsolescence but let's just see. |
comment:10
#17466 suggests maybe there is no fix needed any more on IML. I will check that out. |
comment:11
I think I have given up. I did make the Sage 6.4.1 binaries and that should make people happy for a while, so I guess one could even say I was partly successful with this ticket. Everything is still documented here in case someone else wanted to try for a newer Sage, also - I really don't think it would be that hard except for the gcc issue. Apparently #19370 fixes #16044, which is nice. I'm not sure if #17510 is only for this platform or not. |
Reviewer: Karl-Dieter Crisman |
comment:12
I'll ask for another reviewer on this to confirm the sad closure. |
Changed reviewer from Karl-Dieter Crisman to Karl-Dieter Crisman, Jeroen Demeyer |
Modulo gcc 4.9, of course, though in principle one could ask for a message asking to build gcc 4.7 first.
We need the following
including
-arch
flag on our gcc, at least for very old indeed Mac - Let pyzmq build on (really old?) 32-bit OS X machines #17510.to fix this.
make -k
.Component: porting
Reviewer: Karl-Dieter Crisman, Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/17513
The text was updated successfully, but these errors were encountered: