[sage-devel] Re: Sage 4.0.rc2 released!
2009/5/30 William Stein wst...@gmail.com: On Fri, May 29, 2009 at 2:47 PM, Jaap Spies j.sp...@hccnet.nl wrote: Mike Hansen wrote: Hello, Sage 4.0.rc2 has been released. Assuming that nothing catastrophic happens, this will become 4.0. The tarball can be found at http://sage.math.washington.edu/home/mhansen/sage-4.0.rc2.tar On 32-bit OS X (on bsd.math.washington.edu), there is some numerical noise in 2 tests: sage -t -long devel/sage/sage/symbolic/expression.pyx ** File /Users/was/build/sage-4.0.rc2/devel/sage/sage/symbolic/expression.pyx, line 4193: sage: maxima('atan2(0.7,0.6)') Expected: .8621700546672264 Got: .8621700546672263 ** File /Users/was/build/sage-4.0.rc2/devel/sage/sage/symbolic/expression.pyx, line 4201: sage: maxima('atan2(-0.7,0.6)') Expected: -.8621700546672264 Got: -.8621700546672263 ** 1 items had failures: 2 of 24 in __main__.example_109 ***Test Failed*** 2 failures. Everything else works perfectly. On OpenSuse 64-bit there is a numerical noise failure: I get this too (and no other problems) on 64-bit Suse. John sage -t -long devel/sage/sage/calculus/tests.py ** File /space/wstein/farm/sage-4.0.rc2/devel/sage/sage/calculus/tests.py, line 204: sage: f.nintegral(x, 0, 999) Expected: (-0.87005772672831..., 7.5584116743243...e-10, 567, 0) Got: (-0.87005772672831605, 7.5584105641013366e-10, 567, 0) ** 1 items had failures: 1 of 87 in __main__.example_0 ***Test Failed*** 1 failures. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: Sage 4.0.rc2 released!
2009/5/30 Alex Ghitza aghi...@gmail.com: On Sat, May 30, 2009 at 6:36 AM, Mike Hansen mhan...@gmail.com wrote: Hello, Sage 4.0.rc2 has been released. Assuming that nothing catastrophic happens, this will become 4.0. The tarball can be found at http://sage.math.washington.edu/home/mhansen/sage-4.0.rc2.tar and a copy of it to be used for upgrading can be found at http://sage.math.washington.edu/home/mhansen/release/4.0/rc2/sage-4.0.rc2 Hi, On my dell laptop running archlinux, my build from scratch fails at eclib. I've extracted the relevant part from install.log and posted it at http://www.ms.unimelb.edu.au/~aghitza/part_of_install.log This might have something to do with my gcc: I looked at your log. The compilation is fine but something is missing during linking. The missing functions are some library function I have never heard of, so I cannot be much help, sorry. John [ghi...@artin ~]$ gcc -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic Thread model: posix gcc version 4.4.0 20090505 (prerelease) (GCC) [ghi...@artin ~]$ uname -a Linux artin 2.6.29-ARCH #1 SMP PREEMPT Wed May 20 07:06:02 UTC 2009 i686 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz GenuineIntel GNU/Linux I will try to downgrade my gcc and rebuild sage, and I'll report what happens. Best, Alex -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: Sage 4.0.rc2 released!
On May 30, 12:51 am, John Cremona john.crem...@gmail.com wrote: 2009/5/30 Alex Ghitza aghi...@gmail.com: On my dell laptop running archlinux, my build from scratch fails at eclib. I've extracted the relevant part from install.log and posted it at http://www.ms.unimelb.edu.au/~aghitza/part_of_install.log This might have something to do with my gcc: I looked at your log. The compilation is fine but something is missing during linking. The missing functions are some library function I have never heard of, so I cannot be much help, sorry. John It is an issue with the way gcc was build - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28671#c8 --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: coercion issue?
Regarding compilation with debug, zn_poly is passed the flag -DNEBUG for a couple of files, instead of -DNDEBUG. This is a sloppy typo on my part. Originally I think I took the output from the zn_poly configure script, but in the latest version there were some new files, and I guess I added the targets by hand to the FLINT makefile. At any rate, that is not the cause of our problems, and I will fix it in the next version of FLINT. As for something not being reduced before being passed to zn_poly, it is likely that someone assumed FLINT reduces coefficients mod p before doing anything with them, which it does not. I met at least one such person. It would be a performance issue to do this at any level. Instead, FLINT assumes all polynomials it is passed have reduced coefficients and it guarantees too return polynomials which respect this, except for I think one function (zmod_poly_add_nored I think) which would be specifically documented as not doing so. Sorry none of this actually helps find the bug. It is still possible of course that zn_poly is actually being passed garbage by FLINT, and that garbage just happens to not be reduced. At some point in Martin's wrapper of zmod_poly in Sage, there was an option you could switch on to compare the output from FLINT with that of Pari. Thus helped us track down the specific polynomial computation which caused the issue last time. Bill. On 30 May, 06:11, David Harvey dmhar...@cims.nyu.edu wrote: On May 29, 10:54 pm, David Harvey dmhar...@cims.nyu.edu wrote: Hmmm let me try again. Would appreciate help from people familiar with FLINT wrapper and/or coercion system. sage: R.x = PolynomialRing(Integers(121)) sage: S.y = PolynomialRing(Integers(11)) sage: S(50*x) 6*y sage: R(S(50*x)) 50*x # !! I think what's actually happening is that the underlying FLINT zmod_poly object is not getting coefficients reduced into [0, 10]. This causes other problems indirectly (e.g. #5817). I can't quite trace why this is happening. Any ideas? There is a also a performance issue. The following is in sage 3.4.2: sage: R.x = PolynomialRing(Integers(11^6)) sage: S.y = PolynomialRing(Integers(11^3)) sage: f = R([ZZ.random_element(11^6) for _ in range(100)]) sage: time g = f * f CPU times: user 0.96 s, sys: 0.01 s, total: 0.97 s Wall time: 0.96 s sage: f = S(f) sage: time g = f * f CPU times: user 0.93 s, sys: 0.00 s, total: 0.93 s Wall time: 0.93 s sage: f = S([ZZ.random_element(11^3) for _ in range(100)]) sage: time g = f * f CPU times: user 0.55 s, sys: 0.00 s, total: 0.55 s Wall time: 0.55 s What appears to be happening is that FLINT is using kronecker substitution for the multiplication (packing polynomials into an integer and then multiplying the integers), but in the second multiplication above it is *not* reducing mod 11^3 before doing this. Even better evidence is the following: if I install flint 1.2.5 (as per trac #5817) I get: sage: R.x = PolynomialRing(Integers(11^6)) sage: S.y = PolynomialRing(Integers(11^3)) sage: f = R([ZZ.random_element(11^6) for _ in range(100)]) sage: f = S(f) sage: time g = f * f sage.bin: zn_poly/src/zn_poly.h:185: zn_mod_add_slim: Assertion `x mod-m y mod-m' failed. /home/dmharvey/5817/sage-3.4.2-new/local/bin/sage-sage: line 198: 16421 Aborted (core dumped) sage-ipython $@ -i This means two things: (1) zn_poly is getting compiled with debug assertions, which it shouldn't, since this is a major performance loss, and (2) some zn_poly routine is getting called on a polynomial with non-normalised coefficients. But I still don't know exactly where the non-normalisation is happening. david --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] sage-4.0
Hello, I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: Solaris doctest failure and 'maxima' issue with tests.
On Sat, May 30, 2009 at 9:38 AM, Dr. David Kirkby david.kir...@onetel.net wrote: William Stein wrote: On Wed, May 27, 2009 at 11:15 PM, Dr. David Kirkby BTW, I can't get to GUI to work under Solaris sage: notebook() The notebook files are stored in: /export/home/drkirkby/.sage//sage_notebook ** * * * Open your web browser to http://localhost:8002 * * * ** There is nothing listening on port 8000,8001 or 8002. Thanks for the report. Though not so helpful, I'll remark that when I used the binary Michael Abshoff provided for Solaris on my Solaris Sparc box, the notebook server did actually work. Incidentally, do you want an account on my T2 sparc box, let me know. William This is odd. i downloaded the 3.4.2 Solaris binary, and have exactly the same issue. Why it works on your two machines, but not mind is a mystery. Did you try sage: notebook(secure=True) ? William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
Hi, tried to do some test, but I have similar issue as Vlad reported on sage-support for 4.0rc0 in topic building sage 4.0.rc0 with gcc 4.4.0 and glibc 2.10.1 fails (on arch linux), (btw, I also have Arch with gcc 4.4 and glibc 2.10), the error for me it: g++ -o ./comptest comptest_n.o compproc_n.o arith_n.o marith_n.o gpslave_n.o parifact_n.o interface_n.o -lpari -L/opt/sage/local/lib -L/opt/sage/local/lib -lntl -lgmp -lpari -lm comptest_n.o: In function `__exchange_and_add': /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' comptest_n.o:/usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: more undefined references to `__sync_fetch_and_add_4' follow collect2: ld returned 1 exit status make[3]: *** [comptest] Błąd 1 make[3]: Opuszczenie katalogu `/opt/sage/spkg/build/eclib-20080310.p7/src/procs' make[2]: *** [so] Błąd 2 make[2]: Opuszczenie katalogu `/opt/sage/spkg/build/eclib-20080310.p7/src' Error building cremona shared libraries from my experience I can vote that it's -march missing somewhere, I hit such error few times in different software and adding -march=i486 or greater fixes this, because without it on most systems i386 is assumed and it don't have '__sync_fetch_and_add_4', will look into it in free time later probably cheers, Andrzej. On Sat, May 30, 2009 at 4:34 PM, William Stein wst...@gmail.com wrote: Hello, I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
2009/5/30 Andrzej Giniewicz ggi...@gmail.com: Hi, tried to do some test, but I have similar issue as Vlad reported on sage-support for 4.0rc0 in topic building sage 4.0.rc0 with gcc 4.4.0 and glibc 2.10.1 fails (on arch linux), (btw, I also have Arch with gcc 4.4 and glibc 2.10), the error for me it: Just for the record, every major new GCC release requires changes to Sage, and I'm pretty certain we haven't fixed everything for GCC 4.4.0 yet. Personally, I've never even used GCC 4.4.0, not even once. -- william g++ -o ./comptest comptest_n.o compproc_n.o arith_n.o marith_n.o gpslave_n.o parifact_n.o interface_n.o -lpari -L/opt/sage/local/lib -L/opt/sage/local/lib -lntl -lgmp -lpari -lm comptest_n.o: In function `__exchange_and_add': /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' comptest_n.o:/usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: more undefined references to `__sync_fetch_and_add_4' follow collect2: ld returned 1 exit status make[3]: *** [comptest] Błąd 1 make[3]: Opuszczenie katalogu `/opt/sage/spkg/build/eclib-20080310.p7/src/procs' make[2]: *** [so] Błąd 2 make[2]: Opuszczenie katalogu `/opt/sage/spkg/build/eclib-20080310.p7/src' Error building cremona shared libraries from my experience I can vote that it's -march missing somewhere, I hit such error few times in different software and adding -march=i486 or greater fixes this, because without it on most systems i386 is assumed and it don't have '__sync_fetch_and_add_4', will look into it in free time later probably cheers, Andrzej. On Sat, May 30, 2009 at 4:34 PM, William Stein wst...@gmail.com wrote: Hello, I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: What should happen if you type 'notebook()' ?
On May 29, 8:46 pm, Jason Grout jason-s...@creativetrax.com wrote: Dr. David Kirkby wrote: If one starts Sage and types 'notebook()', I believe this should start a server which can be used to connect via a browser. That is normal. Further Sage interaction is done via the web browser (go to the address noted above). On my Mac, Firefox opens up automatically. How do you access the notebook on Windows, though? I haven't figured out how to do so, presumably since the browser is a native Windows application, while Sage is running in the VM. Mark McClure --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: What should happen if you type 'notebook()' ?
On Sat, May 30, 2009 at 10:28 AM, mark mcclure mcmcc...@unca.edu wrote: On my Mac, Firefox opens up automatically. How do you access the notebook on Windows, though? I haven't figured out how to do so, presumably since the browser is a native Windows application, while Sage is running in the VM. From Windows, the VM is just a web server like http://www.sagenb.org. The native browser talks with the virtual machine over HTTP. --Mike --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
Hi William, On 30 Mai, 16:34, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available athttp://sagemath.org/src/. Binaries will follow in a day. Wasn't it claimed (AFAIK off list by you or Michael Abshoff) that sage 4.0 would contain Singular 3-1-0? It isn't there, the spkg is singular-3-0-4-4-20090511.spkg. Sniff :( Best regards Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: What should happen if you type 'notebook()' ?
On May 30, 1:42 pm, Mike Hansen mhan...@gmail.com wrote: On Sat, May 30, 2009 at 10:28 AM, mark mcclure mcmcc...@unca.edu wrote: On my Mac, Firefox opens up automatically. How do you access the notebook on Windows, though? I haven't figured out how to do so, presumably since the browser is a native Windows application, while Sage is running in the VM. From Windows, the VM is just a web server likehttp://www.sagenb.org. The native browser talks with the virtual machine over HTTP. I'm saying that I tried this without success. That is, when I open the web browser to http://localhost:8000, I receive a server not found error. Thanks anyway, Mark --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: Sage 4.0.rc2 released!
On May 29, 2009, at 13:36 , Mike Hansen wrote: Hello, Sage 4.0.rc2 has been released. Assuming that nothing catastrophic happens, this will become 4.0. The tarball can be found at http://sage.math.washington.edu/home/mhansen/sage-4.0.rc2.tar and a copy of it to be used for upgrading can be found at http://sage.math.washington.edu/home/mhansen/release/4.0/rc2/sage-4.0.rc2 Built w/o problems as an upgrade (alpha0 - rc1 - rc2), Mac OS X, 10.5.7 (Dual Quad Xeon), 32-bit. Testing gave the two failures already reported in expression.pyx. Justin -- Justin C. Walker, Curmudgeon-at-Large () The ASCII Ribbon Campaign /\ Help Cure HTML Email --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On Sat, May 30, 2009 at 10:34, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. What is the correct MD5 for the tarball? It is listed at 811388eac1e33fc4ec837d9e05b6b95b on the web page, yet I got 1f4e16b8f759174ad2c107161e1b03a2 on my downloaded tarball. I downloaded again, and got the same MD5. It expands without an obvious errors, so I am attempting a build. -- Kevin Horton Ottawa, Canada --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
There's an spkg on track but it hasn't been reviewed yet. I was hoping to look at it this weekend, but feel free to beat me to it. :) Kiran On May 30, 2:27 pm, simon.k...@uni-jena.de wrote: Hi William, On 30 Mai, 16:34, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available athttp://sagemath.org/src/. Binaries will follow in a day. Wasn't it claimed (AFAIK off list by you or Michael Abshoff) that sage 4.0 would contain Singular 3-1-0? It isn't there, the spkg is singular-3-0-4-4-20090511.spkg. Sniff :( Best regards Simon --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: What should happen if you type 'notebook()' ?
On Sat, May 30, 2009 at 14:39, mark mcclure mcmcc...@unca.edu wrote: On May 30, 1:42 pm, Mike Hansen mhan...@gmail.com wrote: On Sat, May 30, 2009 at 10:28 AM, mark mcclure mcmcc...@unca.edu wrote: On my Mac, Firefox opens up automatically. How do you access the notebook on Windows, though? I haven't figured out how to do so, presumably since the browser is a native Windows application, while Sage is running in the VM. From Windows, the VM is just a web server likehttp://www.sagenb.org. The native browser talks with the virtual machine over HTTP. I'm saying that I tried this without success. That is, when I open the web browser to http://localhost:8000, I receive a server not found error. localhost would only be correct if you were running the browser from inside the VM. If you are running a Windows browser, you will need to use the IP address of the VM instead. You would need to have the VM networking set up as Bridged, and if you can get a console window in the VM you can type ifconfig, and the IP address will be hiding in the output somewhere. Note, although I am using VMWare, I am running it on a Mac, so there is no guarantee that I have the details correct for Windows. Good luck, -- Kevin Horton Ottawa, Canada --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On May 30, 10:34 am, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available at http://sagemath.org/src/. Built fine on my Intel based MacBook Pro running OS X 10.4.11. Running 'make test' right now. As I recall, I should be able to build Sage.app by running './sage -bdist 4.0', but there might be an environment variable I need to set first? What is the correct command sequence to build the app? Thanks, Mark McClure --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On May 30, 8:46 pm, Kevin Horton khorto...@rogers.com wrote: What is the correct MD5 for the tarball? It is listed at 811388eac1e33fc4ec837d9e05b6b95b on the web page, yet I got 1f4e16b8f759174ad2c107161e1b03a2 on my downloaded tarball. I downloaded again, and got the same MD5. It expands without an obvious errors, so I am attempting a build. I fixed it and thanks for checking this! I think, william has uploaded a tar file, indexed the mirror page, and later changed the tar file. The md5sums are cached in a file to avoid recalculating all of them each time indexing the website. Therefore it used the cached entry from the first indexing. There were also links to subdirectories that were useless. (if the above is not true .. it might be a bug ;) harald PS: additionally using the timestamp of each file would fix this, but then the format of md5sums.txt wouldn't be compatible with the md5sum tool any more ... --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On May 30, 10:20 am, William Stein wst...@gmail.com wrote: 2009/5/30 Andrzej Giniewicz ggi...@gmail.com: Hi, tried to do some test, but I have similar issue as Vlad reported on sage-support for 4.0rc0 in topic building sage 4.0.rc0 with gcc 4.4.0 and glibc 2.10.1 fails (on arch linux), (btw, I also have Arch with gcc 4.4 and glibc 2.10), the error for me it: Just for the record, every major new GCC release requires changes to Sage, and I'm pretty certain we haven't fixed everything for GCC 4.4.0 yet. No, gcc 4.4.0 works on multiple platforms. The issue the Arch people are seeing happens to cause problem on at least gcc 4.2.x - see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28671#c8 - and the correct thing to do is to not compile gcc with arch or march settings. I have fixed 95% of #2999-3001 in all spkgs which would all to inject flags like march into each spkg. Personally, I've never even used GCC 4.4.0, not even once. It is the default compiler on skynet and the reason GAP miscompiles on Itanium. OH well -- william g++ -o ./comptest comptest_n.o compproc_n.o arith_n.o marith_n.o gpslave_n.o parifact_n.o interface_n.o -lpari -L/opt/sage/local/lib -L/opt/sage/local/lib -lntl -lgmp -lpari -lm comptest_n.o: In function `__exchange_and_add': /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' /usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: undefined reference to `__sync_fetch_and_add_4' comptest_n.o:/usr/lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:46: more undefined references to `__sync_fetch_and_add_4' follow collect2: ld returned 1 exit status make[3]: *** [comptest] Błąd 1 make[3]: Opuszczenie katalogu `/opt/sage/spkg/build/eclib-20080310.p7/src/procs' make[2]: *** [so] Błąd 2 make[2]: Opuszczenie katalogu `/opt/sage/spkg/build/eclib-20080310.p7/src' Error building cremona shared libraries from my experience I can vote that it's -march missing somewhere, I hit such error few times in different software and adding -march=i486 or greater fixes this, because without it on most systems i386 is assumed and it don't have '__sync_fetch_and_add_4', will look into it in free time later probably cheers, Andrzej. On Sat, May 30, 2009 at 4:34 PM, William Stein wst...@gmail.com wrote: Hello, I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] latex errors during docbuild
I notice that during sage -docbuild all pdf there were a lot of latex errors flashing by, too fast to read -- is there a log kept of a docbuild run? John --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On Sat, May 30, 2009 at 10:34, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. I built sage-4.0 on 32 bit ubuntu 8.10. It built OK, but make testlong produced a huge number of failures of like: sage -t -long devel/sage/sage/quadratic_forms/quadratic_form__count_local_2.py Traceback (most recent call last): File /opt/sage-4.0/tmp/quadratic_form__count_local_2.py, line 2, in module from sage.all_cmdline import *; File /opt/sage-4.0/local/lib/python2.5/site-packages/sage/all_cmdline.py, line 14, in module from sage.all import * File /opt/sage-4.0/local/lib/python2.5/site-packages/sage/all.py, line 72, in module from sage.rings.all import * File /opt/sage-4.0/local/lib/python2.5/site-packages/sage/rings/all.py, line 65, in module from finite_field import (FiniteField, is_FiniteField, is_PrimeFiniteField, File /opt/sage-4.0/local/lib/python2.5/site-packages/sage/rings/finite_field.py, line 162, in module import polynomial.polynomial_element as polynomial_element ImportError: /opt/sage-4.0/local/lib/python/site-packages/sage/rings/polynomial/polynomial_element.so: undefined symbol: PyObject_GetIter PyIter_Next Almost 600 files were listed as having test failures. The install.log and testlong.log are available: http://www.kilohotel.com/misc/install_4.0.log.gz http://www.kilohotel.com/misc/testlong_4.0.log.gz -- Kevin Horton Ottawa, Canada --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On May 30, 2009, at 07:34 , William Stein wrote: Hello, I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. Built from scratch on Mac OS X, 10.5.7 (Dual Quad Xeon), 32-bit w/o problems. make -j6 test completed w/o failures. Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for the Enhancement of the Director's Income Experience is what you get when you don't get what you want. --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On Sat, May 30, 2009 at 19:17, Kevin Horton khorto...@rogers.com wrote: On Sat, May 30, 2009 at 10:34, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. I built sage-4.0 on 32 bit ubuntu 8.10. It built OK, but make testlong produced a huge number of failures of like: sage -t -long devel/sage/sage/quadratic_forms/quadratic_form__count_local_2.py Traceback (most recent call last): File /opt/sage-4.0/tmp/quadratic_form__count_local_2.py, line 2, in module from sage.all_cmdline import *; File /opt/sage-4.0/local/lib/python2.5/site-packages/sage/all_cmdline.py, line 14, in module from sage.all import * File /opt/sage-4.0/local/lib/python2.5/site-packages/sage/all.py, line 72, in module from sage.rings.all import * File /opt/sage-4.0/local/lib/python2.5/site-packages/sage/rings/all.py, line 65, in module from finite_field import (FiniteField, is_FiniteField, is_PrimeFiniteField, File /opt/sage-4.0/local/lib/python2.5/site-packages/sage/rings/finite_field.py, line 162, in module import polynomial.polynomial_element as polynomial_element ImportError: /opt/sage-4.0/local/lib/python/site-packages/sage/rings/polynomial/polynomial_element.so: undefined symbol: PyObject_GetIter PyIter_Next Almost 600 files were listed as having test failures. The install.log and testlong.log are available: http://www.kilohotel.com/misc/install_4.0.log.gz http://www.kilohotel.com/misc/testlong_4.0.log.gz Well, something major has gone wrong, as both the new sage-4.0 and my previously working sage-4.0.rc1 fail with: % ./sage -- | Sage Version 4.0, Release Date: 2009-05-29 | | Type notebook() for the GUI, and license() for information.| -- --- ImportError Traceback (most recent call last) /opt/sage-4.0/local/lib/python2.5/site-packages/IPython/ipmaker.pyc in force_import(modname) 64 reload(sys.modules[modname]) 65 else: --- 66 __import__(modname) 67 68 /opt/sage-4.0/local/bin/ipy_profile_sage.py in module() 5 preparser(True) 6 7 import sage.all_cmdline 8 sage.all_cmdline._init_cmdline(globals()) 9 /opt/sage-4.0/local/lib/python2.5/site-packages/sage/all_cmdline.py in module() 12 try: 13 --- 14 from sage.all import * 15 from sage.calculus.predefined import x 16 preparser(on=True) /opt/sage-4.0/local/lib/python2.5/site-packages/sage/all.py in module() 70 get_sigs() 71 --- 72 from sage.rings.all import * 73 from sage.matrix.all import * 74 /opt/sage-4.0/local/lib/python2.5/site-packages/sage/rings/all.py in module() 63 64 # Finite fields --- 65 from finite_field import (FiniteField, is_FiniteField, is_PrimeFiniteField, 66 conway_polynomial, exists_conway_polynomial) 67 GF = FiniteField /opt/sage-4.0/local/lib/python2.5/site-packages/sage/rings/finite_field.py in module() 160 import integer 161 -- 162 import polynomial.polynomial_element as polynomial_element 163 import polynomial.multi_polynomial_element as multi_polynomial_element 164 ImportError: /opt/sage-4.0/local/lib/python2.5/site-packages/sage/rings/polynomial/polynomial_element.so: undefined symbol: PyObject_GetItePyIter_Next Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed. sage: I'll do some digging to see if I can sort out what has happened here. -- Kevin Horton Ottawa, Canada --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On Sat, May 30, 2009 at 12:46 PM, Harald Schilly harald.schi...@gmail.com wrote: On May 30, 8:46 pm, Kevin Horton khorto...@rogers.com wrote: What is the correct MD5 for the tarball? It is listed at 811388eac1e33fc4ec837d9e05b6b95b on the web page, yet I got 1f4e16b8f759174ad2c107161e1b03a2 on my downloaded tarball. I downloaded again, and got the same MD5. It expands without an obvious errors, so I am attempting a build. I fixed it and thanks for checking this! I think, william has uploaded a tar file, indexed the mirror page, and later changed the tar file. The md5sums are cached in a file to avoid recalculating all of them each time indexing the website. Therefore it used the cached entry from the first indexing. There were also links to subdirectories that were useless. (if the above is not true .. it might be a bug ;) This is precisely what happened. The problem was that the initial tarball had two copies of FLINT in it. I rebuilt the tarball, but hadn't yet updated the md5 sums. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On Sat, May 30, 2009 at 11:27 AM, simon.k...@uni-jena.de wrote: Hi William, On 30 Mai, 16:34, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available athttp://sagemath.org/src/. Binaries will follow in a day. Wasn't it claimed (AFAIK off list by you or Michael Abshoff) that sage 4.0 would contain Singular 3-1-0? It isn't there, the spkg is singular-3-0-4-4-20090511.spkg. Sniff :( I hope you will help get it into sage-4.0.1. Martin Albrecht already put a lot of work into getting it ready for Sage, so it should be close. -- William Best regards Simon -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] bug in plot3d?
I have tried this in 3.4.1, 3.4.2, and 4.0.rc2, without success: plot3d(lambda x,y: exp(x+y*I).real(), (-2, 2.4), (-3, 3), mesh=True) I get a nice looking surface (see attached jpeg file), but no mesh lines. Is anybody else experiencing this? Best, Alex -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~--- attachment: exp.jpeg
[sage-devel] Re: sage-4.0
On Sat, May 30, 2009 at 19:39, Kevin Horton khorto...@rogers.com wrote: On Sat, May 30, 2009 at 19:17, Kevin Horton khorto...@rogers.com wrote: On Sat, May 30, 2009 at 10:34, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. I built sage-4.0 on 32 bit ubuntu 8.10. It built OK, but make testlong produced a huge number of failures of like: Almost 600 files were listed as having test failures. The install.log and testlong.log are available: http://www.kilohotel.com/misc/install_4.0.log.gz http://www.kilohotel.com/misc/testlong_4.0.log.gz Well, something major has gone wrong, as both the new sage-4.0 and my previously working sage-4.0.rc1 fail with: ImportError: /opt/sage-4.0/local/lib/python2.5/site-packages/sage/rings/polynomial/polynomial_element.so: undefined symbol: PyObject_GetItePyIter_Next Error importing ipy_profile_sage - perhaps you should run %upgrade? WARNING: Loading of ipy_profile_sage failed. sage: I'll do some digging to see if I can sort out what has happened here. Well, I don't know what was going on there, but a reboot of the VM sorted it all out. Now both sage-4.0 and sage-4.0.rc1 are working, and make testlong failed no tests. Looking good. -- Kevin Horton --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: latex errors during docbuild
On May 30, 2:46 pm, John Cremona john.crem...@gmail.com wrote: I notice that during sage -docbuild all pdf there were a lot of latex errors flashing by, too fast to read -- is there a log kept of a docbuild run? John I don't think there is a log in general, but for pdf files, they are produced by running pdflatex on latex files, so you can look at the log files, such as $SAGE_ROOT/devel/sage/doc/output/latex/en/reference/reference.log In general, browse $SAGE_ROOT/devel/sage/doc/output/latex/en/ John --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage blog aggregation : planet.sagemath.org
Hi Serge, On Tue, May 26, 2009 at 1:56 PM, Serge A. Salamanka salsa-...@tut.by wrote: Great improvement ! It will be cool to make planet just the same design as sagemath and create the same logo Planet SAGE. I'm not sure what you mean there. Can you give an example illustrating your design idea? Visually divide posts a bit more. The horizontal borders used for dividing individual posts are now much thicker. Does that address the issue you raised? And place in the top right, in the background of the description, a sphere on the axis to resemble the Earth. I have no ideas how to draw the design you suggested. And I hope you can add my blog at http://sageworldmath.blogspot.com/ I've added your blog to Planet Sage's subscription. It will only aggregate blog posts that have been labelled sage. Regards, Serge -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage blog aggregation : planet.sagemath.org
Hi Harald, On Fri, May 29, 2009 at 10:25 AM, Harald Schilly harald.schi...@gmail.com wrote: On May 25, 5:58 am, Minh Nguyen nguyenmi...@gmail.com wrote: OK, I've tweaked planet sage a bit ... Small update, I've sticked my fingers into the templates and css code. Now the borders are better and things don't run into each other. Thanks for that. However, if the web browser is not maximized, the navigation bar on the right can still overlap the blog posts section. I've tried using the CSS option overflow: auto to no effect. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: What should happen if you type 'notebook()' ?
On Sat, May 30, 2009 at 11:39 AM, mark mcclure mcmcc...@unca.edu wrote: On May 30, 1:42 pm, Mike Hansen mhan...@gmail.com wrote: On Sat, May 30, 2009 at 10:28 AM, mark mcclure mcmcc...@unca.edu wrote: On my Mac, Firefox opens up automatically. How do you access the notebook on Windows, though? I haven't figured out how to do so, presumably since the browser is a native Windows application, while Sage is running in the VM. From Windows, the VM is just a web server likehttp://www.sagenb.org. The native browser talks with the virtual machine over HTTP. I'm saying that I tried this without success. That is, when I open the web browser to http://localhost:8000, I receive a server not found error. Are you using sage-vmware-x.y.z.zip? If so, just type notebook at the login prompt and go to the URL it displays using your native Windows browser. If you're using your own custom linux install, type sage: notebook(address=, open_viewer=False) then point your web browser in Windows to the IP address of your Linux install. You could find the IP address of your linux install by doing sage: !/sbin/ifconfig and looking at the ip address listed probably for eth0. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On Sat, May 30, 2009 at 9:34 AM, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. Sage 4.0 compiled cleanly from source on Fedora 8 x86_64 Linux, but I get a segfault with the following commands: theta1,theta2=var('theta1,theta2') g0=theta1 h0=g0.subs(theta1=1,theta2=0) Various perturbations of this seem to work (ie, not subbing theta2, using t1,t2 as the variable names). I assume that this is a consequence of the pynac switch. My version of gcc is gcc version 4.1.2 20070925 (Red Hat 4.1.2-33). The error message is: /data/shartke2/apps/sage-4.0/local/bin/sage-sage: line 198: 31674 Segmentation fault sage-ipython $@ -i I would submit this to trac, but the trac server seems to be down at the moment. Best wishes, Stephen --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: sage-4.0
On Sat, May 30, 2009 at 6:51 PM, Stephen Hartke har...@gmail.com wrote: On Sat, May 30, 2009 at 9:34 AM, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. Sage 4.0 compiled cleanly from source on Fedora 8 x86_64 Linux, but I get a segfault with the following commands: theta1,theta2=var('theta1,theta2') g0=theta1 h0=g0.subs(theta1=1,theta2=0) Various perturbations of this seem to work (ie, not subbing theta2, using t1,t2 as the variable names). I assume that this is a consequence of the pynac switch. My version of gcc is gcc version 4.1.2 20070925 (Red Hat 4.1.2-33). The error message is: /data/shartke2/apps/sage-4.0/local/bin/sage-sage: line 198: 31674 Segmentation fault sage-ipython $@ -i I would submit this to trac, but the trac server seems to be down at the moment. Please try again.Trac is unstable right now for unknown reasons, but I did setup a script so that if it doesn't respond for about 1-2 minutes, then it is autorestarted. Thus if you would have tried again it would have worked shortly. Note that nobody is actually working on fixing trac yet (I wish somebody would, since I likely won't have time to for at least 2 more weeks). Anyway, this is now trac #6163: http://trac.sagemath.org/sage_trac/ticket/6163 By the way, I can replicate this problem on sage.math, and you're right that it is caused by switching to pynac. wst...@sage:~/build/sage-4.0.rc1$ ./sage -gdb -- | Sage Version 4.0.rc1, Release Date: 2009-05-28 | | Type notebook() for the GUI, and license() for information.| -- /scratch/wstein/build/sage-4.0.rc1/local/bin/sage-ipython GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show copying and show warranty for details. This GDB was configured as x86_64-linux-gnu... [Thread debugging using libthread_db enabled] Python 2.5.4 (r254:67916, May 29 2009, 07:08:12) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2 Type help, copyright, credits or license for more information. [New Thread 0x7fe5414a06e0 (LWP 25611)] sage: theta1,theta2=var('theta1,theta2'); theta1.subs(theta1=1,theta2=0) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fe5414a06e0 (LWP 25611)] import_submodule (mod=0xbbcde0, subname=0x7fff48cb9fbb sage, fullname=0x7fff48cb9fb0 sage.rings.sage) at Python/import.c:2360 2360Python/import.c: No such file or directory. in Python/import.c (gdb) bt #0 import_submodule (mod=0xbbcde0, subname=0x7fff48cb9fbb sage, fullname=0x7fff48cb9fb0 sage.rings.sage) at Python/import.c:2360 #1 0x004a1a1b in load_next (mod=0xbbcde0, altmod=0x72bdc0, p_name=value optimized out, buf=0x7fff48cb9fb0 sage.rings.sage, p_buflen=0x7fff48cb9fa8) at Python/import.c:2220 #2 0x004a1c5a in import_module_level (name=0xb0b679 rings.qqbar, globals=0x75a010, locals=value optimized out, fromlist=0x4577998, level=value optimized out) at Python/import.c:2001 #3 0x004a2105 in PyImport_ImportModuleLevel (name=0xb0b674 sage.rings.qqbar, globals=0x1287f80, locals=0x898400, fromlist=0x4577998, level=-1) at Python/import.c:2072 #4 0x00481849 in builtin___import__ (self=value optimized out, args=value optimized out, kwds=value optimized out) at Python/bltinmodule.c:47 #5 0x0041abbd in PyObject_CallFunctionObjArgs (callable=0x7fe54146d5f0) at Objects/abstract.c:1861 #6 0x7fe52d05bac8 in __Pyx_Import (name=0xb0b650, from_list=0x4577998) at sage/rings/real_mpfi.c:20944 #7 0x7fe52d07dfcf in __pyx_pf_4sage_5rings_9real_mpfi_24RealIntervalFieldElement___init__ (__pyx_v_self=0x26320d8, __pyx_args=value optimized out, __pyx_kwds=value optimized out) at sage/rings/real_mpfi.c:6654 #8 0x0045cf81 in type_call (type=0x7fe52d29ed60, args=0x7fe5413aaf00, kwds=0x0) at Objects/typeobject.c:436 #9 0x00417eb3 in PyObject_Call (func=0xbbcde0, arg=0x7fff48cb9fbb, kw=0x7fff48cb9fb0) at Objects/abstract.c:1861 #10 0x7fe52d06e47e in __pyx_pf_4sage_5rings_9real_mpfi_23RealIntervalField_class___call__ (__pyx_v_self=0x120f450, __pyx_args=value optimized out, __pyx_kwds=0x7fe5413aaf00) at sage/rings/real_mpfi.c:4323 #11 0x00417eb3 in PyObject_Call (func=0xbbcde0, arg=0x7fff48cb9fbb, kw=0x7fff48cb9fb0) at Objects/abstract.c:1861 #12 0x7fe52b7c44ec in __pyx_pf_4sage_5rings_16complex_interval_27ComplexIntervalFieldElement___init__ (__pyx_v_self=value optimized out, __pyx_args=value optimized out, __pyx_kwds=value optimized out) at sage/rings/complex_interval.c:3059 #13 0x0045cf81
[sage-devel] Re: sage-4.0
On May 30, 2009, at 18:51 , Stephen Hartke wrote: On Sat, May 30, 2009 at 9:34 AM, William Stein wst...@gmail.com wrote: I have release sage-4.0. It's now available at http://sagemath.org/src/. Binaries will follow in a day. Sage 4.0 compiled cleanly from source on Fedora 8 x86_64 Linux, but I get a segfault with the following commands: theta1,theta2=var('theta1,theta2') g0=theta1 h0=g0.subs(theta1=1,theta2=0) Various perturbations of this seem to work (ie, not subbing theta2, using t1,t2 as the variable names). I assume that this is a consequence of the pynac switch. My version of gcc is gcc version 4.1.2 20070925 (Red Hat 4.1.2-33). The error message is: /data/shartke2/apps/sage-4.0/local/bin/sage-sage: line 198: 31674 Segmentation fault sage-ipython $@ -i I would submit this to trac, but the trac server seems to be down at the moment. FWIW, I can reproduce this on my system (Mac OS X, 10.5.7, Dual Quad Xeon). I have a crash log, in sage.math.washington.edu:logs/sage.bin.log The failure also occurs with sage-4.0.rc2, but not with 3.4.2. Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income The path of least resistance: it's not just for electricity any more. --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] a RuntimeError in coercion code
Hi folks, I encountered the following RuntimeError while testing a __cmp__ method in a class I'm writing: *** BEGIN TRANSCRIPT *** -- | Sage Version 4.0, Release Date: 2009-05-29 | | Type notebook() for the GUI, and license() for information.| -- sage: from sage.crypto.cython_RuntimeError import MiniAES sage: m = MiniAES() sage: m == loads(dumps(m)) --- RuntimeError Traceback (most recent call last) /home/mvngu/.sage/temp/sage.math.washington.edu/13930/_home_mvngu__sage_init_sage_0.py in module() /scratch/mvngu/sage-4.0/local/lib/python2.5/site-packages/sage/crypto/cython_RuntimeError.pyc in __cmp__(self, other) 111 cmp(self.s_box_D, other.s_box_D), 112 cmp(self.binary_to_GF, other.binary_to_GF), -- 113 cmp(self.GF_to_binary, other.GF_to_binary) ] 114 if sum(B) == 0: 115 return True /scratch/mvngu/sage-4.0/local/lib/python2.5/site-packages/sage/structure/element.so in sage.structure.element.Element.__richcmp__ (sage/structure/element.c:6023)() /scratch/mvngu/sage-4.0/local/lib/python2.5/site-packages/sage/structure/element.so in sage.structure.element.Element._richcmp (sage/structure/element.c:5387)() /scratch/mvngu/sage-4.0/local/lib/python2.5/site-packages/sage/structure/coerce.so in sage.structure.coerce.CoercionModel_cache_maps.canonical_coercion (sage/structure/coerce.c:7197)() /scratch/mvngu/sage-4.0/local/lib/python2.5/site-packages/sage/structure/coerce.so in sage.structure.coerce.CoercionModel_cache_maps._coercion_error (sage/structure/coerce.c:12906)() RuntimeError: There is a bug in the coercion code in SAGE. Both x (=) and y (=) are supposed to have identical parents but they don't. In fact, x has parent 'Free binary string monoid' whereas y has parent 'Free binary string monoid' Original elements (parent Free binary string monoid) and (parent Free binary string monoid) and maps type 'NoneType' None type 'sage.categories.morphism.CallMorphism' Call morphism: From: Free binary string monoid To: Free binary string monoid *** END TRANSCRIPT *** You can find a code example that produces the above error at http://sage.math.washington.edu/home/mvngu/patch/cython_RuntimeError.py Place the above Python module somewhere under the directory SAGE_ROOT/devel/sage-main/sage, and then import it as I did above. In the above example, I placed the module in SAGE_ROOT/devel/sage-main/sage/crypto/ and then did the following: sage: from sage.crypto.cython_RuntimeError import MiniAES sage: m = MiniAES() sage: m == loads(dumps(m)) to get the above error message. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] coercion of polynomials with integer coefficients
Hello, I would like to take a create a function that takes a polynomial over the integers and returns its roots in ZZ mod p for p a prime. I want to assume the polynomial is globally defined but the prime is the argument. Here is what I have in mind but can't quite get the types right. x = var('x') #necessary? poly=x^2+x+1 def myroots(p): R=IntegerModRing(p) RR.t=R[] f=poly.substitute(x=t) #coercion here return f.roots(R) How do I convert or coerce poly to be in R? Thanks in advance! Walter Kehowski --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-devel] Re: coercion issue?
This is now http://sagetrac.org/sage_trac/ticket/6168. david On May 30, 12:03 pm, Bill Hart goodwillh...@googlemail.com wrote: Regarding compilation with debug, zn_poly is passed the flag -DNEBUG for a couple of files, instead of -DNDEBUG. This is a sloppy typo on my part. Originally I think I took the output from the zn_poly configure script, but in the latest version there were some new files, and I guess I added the targets by hand to the FLINT makefile. At any rate, that is not the cause of our problems, and I will fix it in the next version of FLINT. As for something not being reduced before being passed to zn_poly, it is likely that someone assumed FLINT reduces coefficients mod p before doing anything with them, which it does not. I met at least one such person. It would be a performance issue to do this at any level. Instead, FLINT assumes all polynomials it is passed have reduced coefficients and it guarantees too return polynomials which respect this, except for I think one function (zmod_poly_add_nored I think) which would be specifically documented as not doing so. Sorry none of this actually helps find the bug. It is still possible of course that zn_poly is actually being passed garbage by FLINT, and that garbage just happens to not be reduced. At some point in Martin's wrapper of zmod_poly in Sage, there was an option you could switch on to compare the output from FLINT with that of Pari. Thus helped us track down the specific polynomial computation which caused the issue last time. Bill. On 30 May, 06:11, David Harvey dmhar...@cims.nyu.edu wrote: On May 29, 10:54 pm, David Harvey dmhar...@cims.nyu.edu wrote: Hmmm let me try again. Would appreciate help from people familiar with FLINT wrapper and/or coercion system. sage: R.x = PolynomialRing(Integers(121)) sage: S.y = PolynomialRing(Integers(11)) sage: S(50*x) 6*y sage: R(S(50*x)) 50*x # !! I think what's actually happening is that the underlying FLINT zmod_poly object is not getting coefficients reduced into [0, 10]. This causes other problems indirectly (e.g. #5817). I can't quite trace why this is happening. Any ideas? There is a also a performance issue. The following is in sage 3.4.2: sage: R.x = PolynomialRing(Integers(11^6)) sage: S.y = PolynomialRing(Integers(11^3)) sage: f = R([ZZ.random_element(11^6) for _ in range(100)]) sage: time g = f * f CPU times: user 0.96 s, sys: 0.01 s, total: 0.97 s Wall time: 0.96 s sage: f = S(f) sage: time g = f * f CPU times: user 0.93 s, sys: 0.00 s, total: 0.93 s Wall time: 0.93 s sage: f = S([ZZ.random_element(11^3) for _ in range(100)]) sage: time g = f * f CPU times: user 0.55 s, sys: 0.00 s, total: 0.55 s Wall time: 0.55 s What appears to be happening is that FLINT is using kronecker substitution for the multiplication (packing polynomials into an integer and then multiplying the integers), but in the second multiplication above it is *not* reducing mod 11^3 before doing this. Even better evidence is the following: if I install flint 1.2.5 (as per trac #5817) I get: sage: R.x = PolynomialRing(Integers(11^6)) sage: S.y = PolynomialRing(Integers(11^3)) sage: f = R([ZZ.random_element(11^6) for _ in range(100)]) sage: f = S(f) sage: time g = f * f sage.bin: zn_poly/src/zn_poly.h:185: zn_mod_add_slim: Assertion `x mod-m y mod-m' failed. /home/dmharvey/5817/sage-3.4.2-new/local/bin/sage-sage: line 198: 16421 Aborted (core dumped) sage-ipython $@ -i This means two things: (1) zn_poly is getting compiled with debug assertions, which it shouldn't, since this is a major performance loss, and (2) some zn_poly routine is getting called on a polynomial with non-normalised coefficients. But I still don't know exactly where the non-normalisation is happening. david --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~--~~~~--~~--~--~---