I am also trying to compile sage (6.2 beta 4) under Cygwin. I got a
working copy of sage, but the doc does not build (so, I can not try
"make test"). Here is the beginning of the log:
Building reference manual, first pass.
[combinat ] Configuration error:
[combinat ] There is a syntax error in your configuration file: invalid
syntax (conf.py, line 1)
[polynomia] Configuration error:
[polynomia] There is a syntax error in your configuration file: invalid
syntax (conf.py, line 1)
[cmd ] Configuration error:
[cmd ] There is a syntax error in your configuration file: invalid
syntax (conf.py, line 1)
And the list goes on like that for most directories, only [riemannia]
succeeds.
(the file combinat/conf.py is simply "../conf_sub.py").
Any idea?
For the record, here are the steps I followed to compile sage:
- the patch trac.sagemath.org/ticket/15967 is necessary.
- there are problems in rpy2. As mentioned in the previous message, one
should add __CYGWIN__ in addition to Win32 and Win64 several times in
rinterface/na_values.c. However, this is not enough: one still gets the
following error
gcc -shared -Wl,--enable-auto-image-base
-L/home/Sebastien/sage-git/sage/local/lib
build/temp.cygwin-1.7.28-i686-2.7/./rpy/rinterface/_rinterface.o
-L/home/Sebastien/sage-git/sage/local/lib/python2.7/config
-L/home/Sebastien/sage-git/sage/local/lib
-L/home/Sebastien/sage-git/sage/local/lib/R//lib
-L/home/Sebastien/sage-git/sage/local/lib/R/modules -lR -lpython2.7 -lR
-o build/lib.cygwin-1.7.28-i686-2.7/rpy2/rinterface/_rinterface.dll
build/temp.cygwin-1.7.28-i686-2.7/./rpy/rinterface/_rinterface.o: In
function `EmbeddedR_init':
/home/Sebastien/sage-git/sage/local/var/tmp/sage/build/rpy2-2.3.8/src/./rpy/rinterface/_rinterface.c:1333:
undefined reference to `rl_completer_word_break_characters'
/home/Sebastien/sage-git/sage/local/var/tmp/sage/build/rpy2-2.3.8/src/./rpy/rinterface/_rinterface.c:1334:
undefined reference to `rl_completer_word_break_characters'
/home/Sebastien/sage-git/sage/local/var/tmp/sage/build/rpy2-2.3.8/src/./rpy/rinterface/_rinterface.c:1336:
undefined reference to `rl_basic_word_break_characters'
/home/Sebastien/sage-git/sage/local/var/tmp/sage/build/rpy2-2.3.8/src/./rpy/rinterface/_rinterface.c:1337:
undefined reference to `rl_basic_word_break_characters'
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
(linking problem with readline, likely). I commented out the offending
lines in _rinterface.c (I know this is not a proper fix, of course, but
it is sufficient to get things to compile).
- I had to rebase once.
- Segmentation faults during zn_poly's tuning (in KS/FFT mul). Looks
like http://trac.sagemath.org/ticket/13947. On the third attempt,
everything went smoothly.
Le 04/04/2014 22:03, Jean-Pierre Flori a écrit :
IIRC, you should modify lines like the following one:
https://bitbucket.org/lgautier/rpy2/src/a66387e12e2419141dadb7464ea9205595ef89af/rpy/rinterface/na_values.c?at=default#cl-206
to include __CYGWIN__ in addition to Win32 and Win64.
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.