[sage-devel] Re: SAGE-2.5 alpha 2
Martin Albrecht <[EMAIL PROTECTED]> writes: > On Thursday 03 May 2007 18:33, Joel B. Mohler wrote: >> Alpha 2 builds fine on x86 Gentoo, but it has a whole bunch of make test >> errors. The entire list of files is below. The ones I reran and looked at >> individually all seem to be related to singular. I know basically nothing >> about interacting with singular aside from through sage so I don't really >> know how to debug any further than a cursory inspection. > > As I changed the way SINGULAR is built for 2.5 it is quite likely that this > is > the problem. Unfortunately I will not find the time to look into this until > around Monday as I am at a conference right now. > > Oh, if you are Justin Walker and you are willing to look into the PPC OSX > problem, it would probably be sufficient if you could just point out how to > call libtool properly on that platform. Or, if you want to dig deeper: > > In the Singular subdirectory of the singular spkg in the Makefile.in there is > a section between "Handle libSINGULAR stuff" and "End libSINGULAR" which > should be sufficient for a fix. More specifically, this seems to be wrong: > > ifeq ($(SINGUNAME),ppcMac-darwin) > SO_SUFFIX= dylib > LIBSINGULAR_FLAGS = -singule_module > LIBSINGULAR_LD = $(LD) > endif This is a just a typo -- try -single_module instead of -singule_module. On my system, I also needed to `export MACOSX_DEPLOYMENT_TARGET=10.4' in bash, or you can set it in the Makefile, I assume. After doing this, I get (sorry for the color garbage): ~/sage $ ./sage -- | SAGE Version 2.5.alpha2, Release Date: 2007-05-02 | | Type notebook() for the GUI, and license() for information.| -- --- Traceback (most recent call last) /Users/nalexand/sage-2.5.alpha2/local/bin/ in () /Users/nalexand/sage/local/lib/python2.5/site-packages/sage/misc/preparser_ipython.py in () 6 [1;31m### [0m [1;33m [0m [0m 7 [1;33m [0m [0m > 8 [1;32mimport [0m [1;37msage [0m [1;33m. [0m [1;37mmisc [0m [1;33m. [0m [1;37minterpreter [0m [1;33m [0m [0m 9 [1;33m [0m [0m 10 [1;32mimport [0m [1;37mpreparser [0m [1;33m [0m [0m /Users/nalexand/sage/local/lib/python2.5/site-packages/sage/misc/interpreter.py in () 102 [1;33m [0m [0m 103 [1;32mimport [0m [1;37mos [0m [1;33m [0m [0m --> 104 [1;32mimport [0m [1;37mlog [0m [1;33m [0m [0m 105 [1;33m [0m [0m 106 [1;32mfrom [0m [1;37mIPython [0m [1;33m. [0m [1;37miplib [0m [1;32mimport [0m [1;37mInteractiveShell [0m [1;33m [0m [0m /Users/nalexand/sage/local/lib/python2.5/site-packages/sage/misc/log.py in () 51 [1;33m [0m [0m 52 [1;32mimport [0m [1;37minterpreter [0m [1;33m [0m [0m ---> 53 [1;32mimport [0m [1;37mlatex [0m [1;33m [0m [0m 54 [1;32mimport [0m [1;37mmisc [0m [1;33m [0m [0m 55 [1;33m [0m [0m /Users/nalexand/sage/local/lib/python2.5/site-packages/sage/misc/latex.py in () 41 [1;32mimport [0m [1;37mrandom [0m [1;33m [0m [0m 42 [1;33m [0m [0m ---> 43 [1;32mimport [0m [1;37msage [0m [1;33m. [0m [1;37mplot [0m [1;33m. [0m [1;37mall [0m [1;33m [0m [0m 44 [1;33m [0m [0m 45 [1;32mfrom [0m [1;37mmisc [0m [1;32mimport [0m [1;37mtmp_dir [0m [1;33m [0m [0m /Users/nalexand/sage/local/lib/python2.5/site-packages/sage/plot/all.py in () 2[1;37mtext [0m [1;33m, [0m [1;37mcircle [0m [1;33m, [0m [1;37mdisk [0m [1;33m, [0m [1;37mhue [0m [1;33m, [0m [1;37mgraphics_array [0m [1;33m, [0m [1;33m [0m [0m 3[1;37mlist_plot [0m [1;33m, [0m [1;37mnetworkx_plot [0m [1;33m, [0m [1;37mparametric_plot [0m [1;33m, [0m [1;33m [0m [0m 4[1;37mpolar_plot [0m [1;33m, [0m [1;37mcontour_plot [0m [1;33m, [0m [1;37marrow [0m [1;33m, [0m [1;33m [0m [0m 5[1;37mplot_vector_field [0m [1;33m, [0m [1;37mmatrix_plot [0m [1;33m, [0m [1;37mbar_chart [0m [1;33m, [0m [1;33m [0m [0m 6 is_Graphics) /Users/nalexand/sage/local/lib/python2.5/site-packages/sage/plot/plot.py in () 130 [1;32mimport [0m [1;37mpdb [0m [1;33m [0m [0m 131 [1;33m [0m [0m --> 132 [1;32mfrom [0m [1;37msage [0m [1;33m. [0m [1;37mstructure [0m [1;33m. [0m [1;37msage_object [0m [1;32mimport [0m [1;37mSageObject [0m [1;33m [0m [0m 133 [1;33m [0m [0m 134 [1;31m## IMPORTANT: Do not import matplotlib at module scope. It takes a [0m [1;33m [0m [0m /Users/nalexand/sage-2.5.alpha2/local/bin/sage_object.pyx in sage_object() : No module named bz2 WARNING: Failure executing code: 'import sage.misc.preparser_ipython; sage.misc.preparser_ipython.magma_colon_equals=True' ---
[sage-devel] Re: SAGE-2.5 alpha 2
> > ifeq ($(SINGUNAME),ppcMac-darwin) > > SO_SUFFIX= dylib > > LIBSINGULAR_FLAGS = -singule_module > > LIBSINGULAR_LD = $(LD) > > endif > > It's often A Bad Idea to invoke 'ld' directly on Mac OS X: the rules > are pretty snarky. Is this the way it comes from the factory? It is definitely my fault - if there is any. The SINGULAR people are not to blame for any build issues. But actually libtool is invoked, is that the way to go? Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
On Thursday 03 May 2007 12:57, Martin Albrecht wrote: > Got it. I kind of messed up in the Makefile.in such that LIB doesn't link > to lib but to > > LIB -> > /tmp/sage-2.5.alpha2/spkg/build/singular-3-0-2-20070424/Singular/LIB > > . Also, the *.lib scripts didn't get installed. > > Maybe replacing install-nolns in the Makefile.in by: > > installslib-nolns: LIB > test -d ${slibdir} || ${INSTALL} -d `pwd`/LIB ${slibdir} > ${INSTALL} `pwd`/LIB/*.lib ${slibdir} > ${MKINSTALLDIRS} ${slibdir}/gftables > ${INSTALL} `pwd`/LIB/gftables/* ${slibdir}/gftables/ I'm not sure if I'm being thickheaded, but these directions didn't work for me and I was sufficiently confused about them that I couldn't debug them. Here's what I did: 1) REMOVED my install-nolns and replaced withthe installslib-nolns as above 2) Rebuilt by running ./spkg-install in the singular build directory 3) Received a make error about not having install-nolns 4) I changed the spkg-install to reference the new installslib-nolns 5) Got an error about not knowing how to make target LIB 6) I wasn't sure if I should be making LIB manually or what Maybe you have this all figured out and don't need me to debug (i.e. -- I'll happily be patient until a fixed alpha/beta comes out). Let me know if there is something else I should be trying. -- Joel --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
On May 3, 2007, at 08:45 , Martin Albrecht wrote: > On Thursday 03 May 2007 18:33, Joel B. Mohler wrote: [snip] > As I changed the way SINGULAR is built for 2.5 it is quite likely > that this is > the problem. Unfortunately I will not find the time to look into > this until > around Monday as I am at a conference right now. > > Oh, if you are Justin Walker and you are willing to look into the > PPC OSX > problem, it would probably be sufficient if you could just point > out how to > call libtool properly on that platform. Or, if you want to dig deeper: I'm building this now, on both PowerPC and Intel. More as it develops... It develops this way: Intel: alpha2 builds without an obvious problem; I'm "-t"ing now. PowerPC: both alpha1 and alpha2 refuse to build because of linbox problems. I'm looking into that now ("non lvalue in unary &" in libox_wrap.cpp; C++ - @#$%^&*). > In the Singular subdirectory of the singular spkg in the > Makefile.in there is > a section between "Handle libSINGULAR stuff" and "End libSINGULAR" > which > should be sufficient for a fix. More specifically, this seems to be > wrong: > > ifeq ($(SINGUNAME),ppcMac-darwin) > SO_SUFFIX= dylib > LIBSINGULAR_FLAGS = -singule_module > LIBSINGULAR_LD = $(LD) > endif It's often A Bad Idea to invoke 'ld' directly on Mac OS X: the rules are pretty snarky. Is this the way it comes from the factory? Justin -- Justin C. Walker, Curmudgeon-At-Large Director Institute for the Enhancement of the Director's Income "Weaseling out of things is what separates us from the animals. Well, except the weasel." - Homer J Simpson --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
I installed it on a mac pro and things seem mostly OK. Running "make test" gives two failures: The following tests failed: sage -t devel/sage-main/sage/libs/cf/cf.pyx sage -t devel/sage-main/sage/rings/ power_series_ring_element.pyx More detail on those: sage -t devel/sage-main/sage/rings/ power_series_ring_element.pyx** File "power_series_ring_element.pyx", line 1000: sage: u = sqrt(2+t, prec=2, extend=True, name = 'alpha'); u Exception raised: Traceback (most recent call last): File "/Users/mh/sage-2.5.alpha2/local/lib/python2.5/doctest.py", line 1212, in __run compileflags, 1) in test.globs File "", line 1, in u = sqrt(Integer(2)+t, prec=Integer(2), extend=True, name = 'alpha'); u###line 1000: sage: u = sqrt(2+t, prec=2, extend=True, name = 'alpha'); u File "/Users/mh/sage-2.5.alpha2/local/lib/python2.5/site- packages/sage/calculus/calculus.py", line 3968, in __call__ return x.sqrt(*args, **kwds) File "power_series_ring_element.pyx", line 1097, in power_series_ring_element.PowerSeries.sqrt s = half * (s + a/s) File "element.pyx", line 1242, in element.RingElement.__div__ File "element.pyx", line 1956, in element.bin_op_c TypeError: unsupported operand parent(s) for '/': 'Power Series Ring in t over Rational Field' and 'Symbolic Ring' ** File "power_series_ring_element.pyx", line 1002: sage: u^2 Expected: 2 + t Got: u^2 ** File "power_series_ring_element.pyx", line 1004: sage: u.parent() Expected: Univariate Quotient Polynomial Ring in alpha over Power Series Ring in t over Rational Field with modulus x^2 + -2 - t Got: Symbolic Ring ** 1 items had failures: 3 of 21 in __main__.example_29 ***Test Failed*** 3 failures. Hope that helps, let me know if you want more logs or info. Marshall Hampton On May 2, 10:19 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > Hi, > > I've posted sage-2.5 alpha 2 at > > http://sage.math.washington.edu/home/was/sage2.5/ > > as > > http://sage.math.washington.edu/home/was/sage2.5/sage-2.5.alpha2.tar > > Please build it, and if that works do "make test", and report what > happens to sage-devel. > Thanks! > > The plan is to release sage-2.5 on Friday night, if possible. The > main thing to do > before then is lots of build testing and doc testing. > > NOTE: I think it fails to build on PowerPC OSX -- if you have such a machine, > please try to build and report back, and if you're Justin Walker try to fix > the problem :-). > > I haven't tried building on cygwin yet. Feedback welcome. > > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://www.williamstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
> > http://fsmath.mathematik.uni-dortmund.de/~mabshoff/patches/sage-2.5.0... > > This one fixes the detection code in spkg-install for cygwin and also > adds fontconfig to the lists of libraries for cygwin. > Oops, that patch will not work for cygwin on non-W2K systems because uname returns "CYGWIN_NT-5.1" on WinXP and probably "CYGWIN_NT-6.0" on Vista. It might be better to merge the cygwin specific bits in Setup.py.cygwin into Setup.py - that way the problem will just go away. I will have a look tomorrow. I am not quite sure why gdmodule has a cygwin and generic Setup.py. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
On Thursday 03 May 2007 18:33, Joel B. Mohler wrote: > Alpha 2 builds fine on x86 Gentoo, but it has a whole bunch of make test > errors. The entire list of files is below. The ones I reran and looked at > individually all seem to be related to singular. I know basically nothing > about interacting with singular aside from through sage so I don't really > know how to debug any further than a cursory inspection. Got it. I kind of messed up in the Makefile.in such that LIB doesn't link to lib but to LIB -> /tmp/sage-2.5.alpha2/spkg/build/singular-3-0-2-20070424/Singular/LIB . Also, the *.lib scripts didn't get installed. Maybe replacing install-nolns in the Makefile.in by: installslib-nolns: LIB test -d ${slibdir} || ${INSTALL} -d `pwd`/LIB ${slibdir} ${INSTALL} `pwd`/LIB/*.lib ${slibdir} ${MKINSTALLDIRS} ${slibdir}/gftables ${INSTALL} `pwd`/LIB/gftables/* ${slibdir}/gftables/ i.e. testing if slibdir is directory fixes the problem already? Unfortunately I cannot test it right now. Martin PS: cf.pyx should be disabled (it is going to be replaced by libSINGULAR very soon) -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
On Thursday 03 May 2007 18:33, Joel B. Mohler wrote: > Alpha 2 builds fine on x86 Gentoo, but it has a whole bunch of make test > errors. The entire list of files is below. The ones I reran and looked at > individually all seem to be related to singular. I know basically nothing > about interacting with singular aside from through sage so I don't really > know how to debug any further than a cursory inspection. As I changed the way SINGULAR is built for 2.5 it is quite likely that this is the problem. Unfortunately I will not find the time to look into this until around Monday as I am at a conference right now. Oh, if you are Justin Walker and you are willing to look into the PPC OSX problem, it would probably be sufficient if you could just point out how to call libtool properly on that platform. Or, if you want to dig deeper: In the Singular subdirectory of the singular spkg in the Makefile.in there is a section between "Handle libSINGULAR stuff" and "End libSINGULAR" which should be sufficient for a fix. More specifically, this seems to be wrong: ifeq ($(SINGUNAME),ppcMac-darwin) SO_SUFFIX= dylib LIBSINGULAR_FLAGS = -singule_module LIBSINGULAR_LD = $(LD) endif Hope that helps, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
On Thu, May 03, 2007 at 11:33:03AM -0400, Joel B. Mohler wrote: > > Alpha 2 builds fine on x86 Gentoo, but it has a whole bunch of make test > errors. > The entire list of files is below. The ones I reran and looked at > individually > all seem to be related to singular. I know basically nothing about > interacting > with singular aside from through sage so I don't really know how to debug any > further than a cursory inspection. To reply to myself, I just tried to run 'singular' from the bash prompt, and it just sits. I get no singular prompt (as I might expect). Ctrl+C gets me a bash prompt again, but I get no output from singular whatsoever. Like I said, I'm clueless about singular so if someone wants to wants to clue me in about something else to check, I'm willing. -- Joel --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
Hello, I now have a build failure with libsingular on cygwin. The problem is that Singular.rc.in is not in the tree and there is no mention in the Makefile how to build it. Consequently Singular.rc is empty, which means that one cannot build the resources needed by cygwin via windres. If one just does a "touch Singular_res.o" make runs trough. I have no idea where Singular.rc.in comes from and know too little about the Singular build process. Any suggestions? Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
Alpha 2 builds fine on x86 Gentoo, but it has a whole bunch of make test errors. The entire list of files is below. The ones I reran and looked at individually all seem to be related to singular. I know basically nothing about interacting with singular aside from through sage so I don't really know how to debug any further than a cursory inspection. -- Joel The following tests failed: sage -t devel/sage-main/sage/ext/interactive_constructors_c.pyx sage -t devel/sage-main/sage/interfaces/singular.py sage -t devel/sage-main/sage/interfaces/gap.py sage -t devel/sage-main/sage/libs/cf/cf.pyx sage -t devel/sage-main/sage/rings/homset.py sage -t devel/sage-main/sage/rings/quotient_ring.py sage -t devel/sage-main/sage/rings/quotient_ring_element.py sage -t devel/sage-main/sage/rings/multi_polynomial_ideal.py sage -t devel/sage-main/sage/rings/morphism.py sage -t devel/sage-main/sage/rings/polynomial_singular_interface.py sage -t devel/sage-main/sage/rings/power_series_ring_element.pyx sage -t devel/sage-main/sage/rings/multi_polynomial_libsingular.pyx sage -t devel/sage-main/sage/rings/groebner_fan.py sage -t devel/sage-main/sage/rings/ring.pyx sage -t devel/sage-main/sage/schemes/generic/algebraic_scheme.py sage -t devel/sage-main/sage/schemes/generic/affine_space.py sage -t devel/sage-main/sage/schemes/generic/morphism.py sage -t devel/sage-main/sage/schemes/generic/divisor.py sage -t devel/sage-main/sage/schemes/generic/projective_space.py sage -t devel/sage-main/sage/schemes/plane_curves/projective_curve.py sage -t devel/sage-main/sage/schemes/plane_curves/curve.py sage -t devel/sage-main/sage/schemes/plane_curves/affine_curve.py sage -t devel/sage-main/sage/schemes/plane_curves/constructor.py sage -t devel/sage-main/sage/structure/element.pyx sage -t devel/sage-main/sage/calculus/calculus.py sage -t devel/sage-main/sage/functions/functions.py sage -t devel/sage-main/sage/functions/constants.py Total time for all tests: 1431.5 seconds On Wed, May 02, 2007 at 08:19:15PM -0700, William Stein wrote: > > Hi, > > I've posted sage-2.5 alpha 2 at > > http://sage.math.washington.edu/home/was/sage2.5/ > > as > > http://sage.math.washington.edu/home/was/sage2.5/sage-2.5.alpha2.tar > > Please build it, and if that works do "make test", and report what > happens to sage-devel. > Thanks! > > The plan is to release sage-2.5 on Friday night, if possible. The > main thing to do > before then is lots of build testing and doc testing. > > NOTE: I think it fails to build on PowerPC OSX -- if you have such a machine, > please try to build and report back, and if you're Justin Walker try to fix > the problem :-). > > I haven't tried building on cygwin yet. Feedback welcome. > > -- > William Stein > Associate Professor of Mathematics > University of Washington > http://www.williamstein.org > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---
[sage-devel] Re: SAGE-2.5 alpha 2
William Stein wrote: > Hi, > > I've posted sage-2.5 alpha 2 at > Did I miss alpha 1 or did you not announce it publically? > I haven't tried building on cygwin yet. Feedback welcome. > I am currently building on cygwin. It is still building, but I need the following two patches: http://fsmath.mathematik.uni-dortmund.de/~mabshoff/patches/sage-2.5.0-alpha2-fix-gdmodule-on-cygwin.patch This one fixes the detection code in spkg-install for cygwin and also adds fontconfig to the lists of libraries for cygwin. http://fsmath.mathematik.uni-dortmund.de/~mabshoff/patches/sage-2.5.0-alpha2-fix-sqlite-on-cygwin.patch Uncomments two lines in Makefile.in - I didn't test that one on other platforms, but it should work. This way we avoid building sqlite3.c, which is only needed for tcl (which we disable anyway) I will update you once I am done with the tests or run into another problem that I cannot fix. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~--~~~~--~~--~--~---