Runtime error for Sage 7.2 on mac os x 9.5

60 views
Skip to first unread message

s meagher

unread,
Nov 2, 2016, 11:43:57 PM11/2/16
to sage-support
I'm getting the following message when launching sage in the terminal.
I tried the SageMath App and got the same message.
I don't know if it is relevant but Sage 6.2 is already installed on my computer.

Thanks in advance
Stephen

Last login: Thu Nov  3 14:33:34 on ttys000
Ss-MacBook-Pro:~ smeagher$ /Users/smeagher/Documents/Documents/maths/SageMath/sage ; exit;
RuntimeError: maximum recursion depth exceeded during compilation
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 7.2, Release Date: 2016-05-15                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘

ERROR:  The Sage installation tree has moved

from /Users/matthias/Desktop/sage_build/binary-pkg/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma
  to /Users/smeagher/Documents/Documents/maths/SageMath

This is not supported, and Sage will not work. To install Sage from a
binary package:

1. Open the .tar.bz2 archive (or .dmg on OSX)

2. Move the SageMath folder/app to where you want it to be. You can
   also rename the directory now.

3. Start sage for the first time. This will then automatically patch
   paths in binaries.

After starting Sage for the first time you cannot change the
installation any more. To install Sage elsewhere, start over from the
binary package. Or recompile Sage from scratch in the new location
("make distclean && make")

logout

[Process completed]

slelievre

unread,
Nov 3, 2016, 4:40:49 AM11/3/16
to sage-support


Thu 2016-11-03 04:43:57 UTC+1, s meagher:
I'm getting the following message when launching sage in the terminal.
I tried the SageMath App and got the same message.
I don't know if it is relevant but Sage 6.2 is already installed on my computer.

Hi, thanks for reporting this.
Is there any reason you are installing Sage 7.2 instead of Sage 7.4?

s meagher

unread,
Nov 3, 2016, 5:06:22 AM11/3/16
to sage-support
I'm running OS 10.9.5, and the downloads for sage 7.4 are for OS 10.11.6.

Dima Pasechnik

unread,
Nov 3, 2016, 6:53:31 PM11/3/16
to sage-support


On Thursday, November 3, 2016 at 9:06:22 AM UTC, s meagher wrote:
I'm running OS 10.9.5, and the downloads for sage 7.4 are for OS 10.11.6.

You most probably can build Sage 7.4 from source, still.
(although we don't build on 10.9.5 since version 7.2, I guess due to lack of hardware
to do so)

s meagher

unread,
Nov 4, 2016, 5:06:05 AM11/4/16
to sage-support
Thanks for the suggestion, I just had a go at it. It may be relevant that the newest version of Xcode I can use is 6.2.
 I exported SAGE_PORT to something non-empty. And then moved opt/local (there was no sw that I could find), so that it didn't use MacPorts. After about 3 hours of seemingly happy compiling, it couldn't build openblas. Here's part of error message.
"Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all'):

* package: openblas-0.2.19
  log file: /Users/smeagher/Downloads/sage-7.4/logs/pkgs/openblas-0.2.19.log
  build directory: /Users/smeagher/Downloads/sage-7.4/local/var/tmp/sage/build/openblas-0.2.19

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this."

s meagher

unread,
Nov 4, 2016, 5:07:32 AM11/4/16
to sage-support
Also, if it seems hopeless, I might just install mac os 10.12 (though I'm reluctant to) , which I assume 7.4 is compatible with.
Your help is much appreciated.

Dima Pasechnik

unread,
Nov 4, 2016, 5:15:32 AM11/4/16
to sage-support

On Friday, November 4, 2016 at 9:06:05 AM UTC, s meagher wrote:
Thanks for the suggestion, I just had a go at it. It may be relevant that the newest version of Xcode I can use is 6.2.
 I exported SAGE_PORT to something non-empty.

Was this necessary? IMHO 10.9.5 is still "supported" by Sage....

 
And then moved opt/local (there was no sw that I could find), so that it didn't use MacPorts. After about 3 hours of seemingly happy compiling, it couldn't build openblas. Here's part of error message.

Right, openblas is very new in Sage, but you don't need to use it.
You should be able to still use Atlas instead, although how to do this seems to be badly documented...

 
"Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all'):

* package: openblas-0.2.19
  log file: /Users/smeagher/Downloads/sage-7.4/logs/pkgs/openblas-0.2.19.log

Please post this file...

s meagher

unread,
Nov 4, 2016, 5:32:04 AM11/4/16
to sage-support


On Friday, November 4, 2016 at 8:15:32 PM UTC+11, Dima Pasechnik wrote:

On Friday, November 4, 2016 at 9:06:05 AM UTC, s meagher wrote:
Thanks for the suggestion, I just had a go at it. It may be relevant that the newest version of Xcode I can use is 6.2.
 I exported SAGE_PORT to something non-empty.

Was this necessary? IMHO 10.9.5 is still "supported" by Sage....

It told me to do it. Once I did, it checked a few things, then told me move opt/local, etc.
 

 
And then moved opt/local (there was no sw that I could find), so that it didn't use MacPorts. After about 3 hours of seemingly happy compiling, it couldn't build openblas. Here's part of error message.

Right, openblas is very new in Sage, but you don't need to use it.
You should be able to still use Atlas instead, although how to do this seems to be badly documented...

 
"Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all'):

* package: openblas-0.2.19
  log file: /Users/smeagher/Downloads/sage-7.4/logs/pkgs/openblas-0.2.19.log

Please post this file...

See attached
openblas-0.2.19.log

Dima Pasechnik

unread,
Nov 4, 2016, 6:19:29 AM11/4/16
to sage-support


On Friday, November 4, 2016 at 9:32:04 AM UTC, s meagher wrote:


On Friday, November 4, 2016 at 8:15:32 PM UTC+11, Dima Pasechnik wrote:

On Friday, November 4, 2016 at 9:06:05 AM UTC, s meagher wrote:
Thanks for the suggestion, I just had a go at it. It may be relevant that the newest version of Xcode I can use is 6.2.
 I exported SAGE_PORT to something non-empty.

Was this necessary? IMHO 10.9.5 is still "supported" by Sage....

It told me to do it. Once I did, it checked a few things, then told me move opt/local, etc.
 

 
And then moved opt/local (there was no sw that I could find), so that it didn't use MacPorts. After about 3 hours of seemingly happy compiling, it couldn't build openblas. Here's part of error message.

Right, openblas is very new in Sage, but you don't need to use it.
You should be able to still use Atlas instead, although how to do this seems to be badly documented...

 
"Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all'):

* package: openblas-0.2.19
  log file: /Users/smeagher/Downloads/sage-7.4/logs/pkgs/openblas-0.2.19.log

Please post this file...

See attached

ok, the interesting part has

gcc -c -O2 -DMAX_STACK_ALLOC=2048 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME=_dsdot_k -DASMFNAME=_dsdot_k_ -DNAME=dsdot_k_ -DCNAME=dsdot_k -DCHAR_NAME=\"dsdot_k_\" -DCHAR_CNAME=\"dsdot_k\" -DNO_AFFINITY -I.. -UDOUBLE  -UCOMPLEX -UCOMPLEX -UDOUBLE -DDSDOT ../kernel/x86_64/../generic/dot.c -o dsdot_k.o
../kernel/x86_64/sdot_microk_sandy-2.c:37:no such instruction: `vxorps %ymm4, %ymm4,%ymm4'
../kernel/x86_64/sdot_microk_sandy-2.c:38:no such instruction: `vxorps %ymm5, %ymm5,%ymm5'
../kernel/x86_64/sdot_microk_sandy-2.c:39:no such instruction: `vxorps %ymm6, %ymm6,%ymm6'
../kernel/x86_64/sdot_microk_sandy-2.c:40:no such instruction: `vxorps %ymm7, %ymm7,%ymm7'
../kernel/x86_64/sdot_microk_sandy-2.c:41:Alignment too large: 15. assumed.
...
 
This probably means that your assembler (supplied by xcode) is too old (well, yes, it is, and this is one reason to move on from an old xcode---unfortunately the only way is to upgrade OSX, thanks Apple :-)); 

Please try this:


and see if this (changing the assembler) works...

s meagher

unread,
Nov 4, 2016, 6:38:39 AM11/4/16
to sage-support
Thanks. I replaced the assembler with the script. It looks like it's compiling openblas. I'll update to confirm if it works.

s meagher

unread,
Nov 4, 2016, 1:26:34 PM11/4/16
to sage-support
compiled and runs. thanks you very much.
though now won't let me move the sage directory - is there a way to do this without rebuilding? - should I start a new thread for this question?)

Dima Pasechnik

unread,
Nov 4, 2016, 1:32:22 PM11/4/16
to sage-support
no, you cannot move the installation.
It used to be the case, but no longer possible (without a special build)
Reply all
Reply to author
Forward
0 new messages