Making sage 8.1 from source: Cygwin64/Anaconda Python 3.5.2

58 views
Skip to first unread message

James Lee

unread,
Dec 28, 2017, 2:04:48 PM12/28/17
to sage-support
Hi All,

I would like help building Sage 8.1 from source on cygwin64/Windows 10, with an Anaconda distribution of Python 3.5.2. (I posted a similar message to sage-devel but was referred here.)

This is what I did:
  • downloaded sage-8.1.tar.gz from a mirror site listed in sagemath.org---I put this on the C drive
  • extracted the tarfile from the cygwin terminal: tar xvf sage-x.y.tar.gz
  • changed into the sage-8.1 directory: cd sage-8.1
  • started the build process: make
This is what I think the relevant part of the output is:

***********************************************
make[1]: Entering directory '/cygdrive/c/sage-8.1/build/make'
make base
make[2]: Entering directory '/cygdrive/c/sage-8.1/build/make'
sage-logger -p 'sage-spkg patch-2.7.5' '/cygdrive/c/sage-8.1/logs/pkgs/patch-2.7.5.log'
[patch-2.7.5] Found local metadata for patch-2.7.5
[patch-2.7.5] C:\Anaconda3\python.exe: can't open file '/cygdrive/c/sage-8.1/build/bin/sage-download-file': [Errno 2] No such file or directory
[patch-2.7.5] ************************************************************************
[patch-2.7.5] Error downloading patch-2.7.5.tar.gz
[patch-2.7.5] ************************************************************************
[patch-2.7.5] Please email sage-devel (http://groups.google.com/group/sage-devel                   )
[patch-2.7.5] explaining the problem and including the log file
[patch-2.7.5]   /cygdrive/c/sage-8.1/logs/pkgs/patch-2.7.5.log
[patch-2.7.5] Describe your computer, operating system, etc.
[patch-2.7.5] ************************************************************************
make[2]: *** [Makefile:2369: /cygdrive/c/sage-8.1/local/var/lib/sage/installed/patch-2.7.5] Error 1
make[2]: Leaving directory '/cygdrive/c/sage-8.1/build/make'
make[1]: *** [Makefile:817: all-toolchain] Error 2
make[1]: Leaving directory '/cygdrive/c/sage-8.1/build/make'

real    0m2.881s
user    0m0.286s
sys     0m0.605s
***************************************************************
Error building Sage.

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

* package: patch-2.7.5
  log file: /cygdrive/c/sage-8.1/logs/pkgs/patch-2.7.5.log
  build directory: /cygdrive/c/sage-8.1/local/var/tmp/sage/build/patch-2.7.5

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.

make: *** [Makefile:18: all] Error 1

Any suggestions to get past this problem would be greatly appreciated. Many thanks in advance.

James

Dima Pasechnik

unread,
Dec 29, 2017, 2:20:51 AM12/29/17
to sage-support
This is not supported. You essentially are trying to build a native Windows version of Sage, and several Sage components, e.g. GAP, Singular, do not support this.

Erik Bray

unread,
Jan 4, 2018, 9:07:31 AM1/4/18
to sage-support
On Friday, December 29, 2017 at 8:20:51 AM UTC+1, Dima Pasechnik wrote:
> This is not supported. You essentially are trying to build a native Windows version of Sage, and several Sage components, e.g. GAP, Singular, do not support this.

This is a somewhat inaccurate and misleading response.  They're not trying to build a "native Windows version of Sage" if they're running make in a Cygwin terminal.  The only problem is trying to somehow include Anaconda's Python in the mix, which definitely doesn't make sense.  Sage's build process needs some pre-existing Python to bootstrap the build--while it might sort of work to use Python from Anaconda for that, there's no advantage to that over using the Cygwin Python.  Sage then builds its own Python interpreter which is the only one that should be used by Sage.

The most up-to-date instructions for building Sage on Cygwin (note: it must be the 64-bit Cygwin; Sage will not work on 32-bit Cygwin) are at: https://trac.sagemath.org/wiki/Cygwin64Port

Best,
E
Reply all
Reply to author
Forward
0 new messages