[sage-support] Re: again problem with plotting
I tried to compile Sage from source, but it ran out of memory compiling linbox. Is there a workaround? Martin --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
On Oct 23, 1:24 am, Martin Rubey [EMAIL PROTECTED] wrote: Hi Martin, I tried to compile Sage from source, but it ran out of memory compiling linbox. Is there a workaround? Unfortunately not. gcc is an absolute pig when instantiating templates and with LinBox you need anywhere from 350 to 700MB memory. You can add swap space which will make the compilation work, but slow it down by quiet a lot, i.e. I have build LinBox on a G4 with 256 MB physical RAM, it just took a while. Which hardware are you using? Martin Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
On 21 Oct 2008 18:57:12 +0200, Martin Rubey [EMAIL PROTECTED] wrote: As advised, I removed the broken installation I obtained via sage -upgrade and installed sage 3.1.2. Plotting worked nicely, until roughly 5 minutes ago. Now I get: --- [EMAIL PROTECTED]:~$ sage -- | SAGE Version 3.1.2, Release Date: 2008-09-19 | | Type notebook() for the GUI, and license() for information.| -- sage: plot(sin(x), (x,-1,1)) /home/martin/sage-3.1.2-ubuntu32bit-i686-intel-i686-Linux/local/bin/sage-sage: line 215: 21171 Illegal instruction sage-ipython $@ -c $SAGE_STARTUP_COMMAND; The error message Illegal instruction means that you are using a binary install of Sage that was built on a computer whose processor has instructions that your computer's processor doesn't have. You will likely have to build from source, or wait for somebody to provide a binary for you that works on your hardware. A few days ago I got an older Pentium M thinkpad fix, and once I install Ubuntu Linux on it, I could likely use it to build a binary that will work for you. Last time I tried to build Sage on it, the fan in the laptop died! So I had to get that fixed, which I've now done. William --- Note: the only thing I did before was to try SymPy, since I wanted to try out it's plotting capabilities. Now, I'm lucky and have the complete history still on my screen, find it below. Help would be very much appreciated. Is it a no no to import SymPy? Martin -- | SAGE Version 3.1.2, Release Date: 2008-09-19 | | Type notebook() for the GUI, and license() for information.| -- max(x,5)sage: max(x,5) x Parent: Symbolic Ring sage: max(pi,e) pi Parent: Symbolic Ring sage: max(x,y) --- NameError Traceback (most recent call last) /home/martin/ipython console in module() NameError: name 'y' is not defined sage: var('y') y Parent: Symbolic Ring sage: max(x,y) x Parent: Symbolic Ring sage: -4 65 True sage: x File ipython console, line 1 x ^ SyntaxError: invalid syntax sage: x y x y sage: bool(x y) False sage: bool(y x) False sage: bool(y x) bool sage: bool bool sage: te test.fri test.fri~texPatchDiscussion texput.dvi text.html test.fri.axh teststexPatchDiscussion~ texput.log text3d test.fri.input tetrahedron texput.aux text text_control sage: tes test.fritest.fri.axhtest.fri.input test.fri~ tests sage: test? Object `test` not found. sage: tests? Type: module Base Class: type 'module' String Form:module 'sage.tests.all' from '/home/martin/sage-3.1.2-ubuntu32bit-i686-intel-i686-Linux/local/lib/python2.5/site-packages/sage/tests/all.pyc' Namespace: Interactive File: /home/martin/sage-3.1.2-ubuntu32bit-i686-intel-i686-Linux/local/lib/python2.5/site-packages/sage/tests/all.py Docstring: nodoctest sage: bool(y y^2) False sage: bool(y y+1) True sage: bool(y -y) False sage: ?bool Type: type Base Class: type 'type' String Form:type 'bool' Namespace: Python builtin Docstring: bool(x) - bool Returns True when the argument x is true, False otherwise. The builtins True and False are the only two instances of the class bool. The class bool is a subclass of the class int, and cannot be subclassed. sage: ? File ipython console, line 1 ? ^ SyntaxError: invalid syntax sage: ? Object `` not found. sage: bool(y -y) False sage: bool(y^2 (y+1)^2) False sage: max(y^2, (y+1)^2) y^2 Parent: Symbolic Ring sage: max(0, (y-1)^2) 0 Parent: Integer Ring sage: max(0, (y+1)^2) 0 Parent: Integer Ring sage: max(0, y) 0 Parent: Integer Ring sage: max(y, (y+1)^2) y Parent: Symbolic Ring sage: -y+ (y+1)^2 (y + 1)^2 - y Parent: Symbolic Ring sage: expand(-y+ (y+1)^2) y^2 + y + 1 Parent: Symbolic Ring sage: expand(-2*y+ (y+1)^2) y^2 + 1 Parent: Symbolic Ring sage: max(2*y, (y+1)^2) 2*y Parent: Symbolic Ring sage: {max(min(sin(1/x)*exp(-1/x),0.5),-0.5) : ) File ipython console, line 2 ) ^ SyntaxError: invalid syntax sage:
[sage-support] Re: again problem with plotting
William Stein [EMAIL PROTECTED] writes: On 21 Oct 2008 18:57:12 +0200, Martin Rubey [EMAIL PROTECTED] wrote: As advised, I removed the broken installation I obtained via sage -upgrade and installed sage 3.1.2. Plotting worked nicely, until roughly 5 minutes ago. Now I get: --- [EMAIL PROTECTED]:~$ sage -- | SAGE Version 3.1.2, Release Date: 2008-09-19 | | Type notebook() for the GUI, and license() for information.| -- sage: plot(sin(x), (x,-1,1)) /home/martin/sage-3.1.2-ubuntu32bit-i686-intel-i686-Linux/local/bin/sage-sage: line 215: 21171 Illegal instruction sage-ipython $@ -c $SAGE_STARTUP_COMMAND; The error message Illegal instruction means that you are using a binary install of Sage that was built on a computer whose processor has instructions that your computer's processor doesn't have. You will likely have to build from source, or wait for somebody to provide a binary for you that works on your hardware. But how come that plotting worked before? I cannot quite believe this. Martin --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
On Tue, Oct 21, 2008 at 12:47 PM, Martin Rubey [EMAIL PROTECTED] wrote: William Stein [EMAIL PROTECTED] writes: On 21 Oct 2008 18:57:12 +0200, Martin Rubey [EMAIL PROTECTED] wrote: As advised, I removed the broken installation I obtained via sage -upgrade and installed sage 3.1.2. Plotting worked nicely, until roughly 5 minutes ago. Now I get: --- [EMAIL PROTECTED]:~$ sage -- | SAGE Version 3.1.2, Release Date: 2008-09-19 | | Type notebook() for the GUI, and license() for information.| -- sage: plot(sin(x), (x,-1,1)) /home/martin/sage-3.1.2-ubuntu32bit-i686-intel-i686-Linux/local/bin/sage-sage: line 215: 21171 Illegal instruction sage-ipython $@ -c $SAGE_STARTUP_COMMAND; The error message Illegal instruction means that you are using a binary install of Sage that was built on a computer whose processor has instructions that your computer's processor doesn't have. You will likely have to build from source, or wait for somebody to provide a binary for you that works on your hardware. But how come that plotting worked before? I cannot quite believe this. Martin Please paste the output of cat /proc/cpuinfo into an email response.This will contain a list of instruction sets supported by your computer's processor. I'll then compare it with the list of instruction sets supported by the machine on which that binary was built... Thanks, -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
William Stein [EMAIL PROTECTED] writes: Please paste the output of cat /proc/cpuinfo into an email response. [EMAIL PROTECTED]:/tmp$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 11 model name : Mobile Intel(R) Pentium(R) III CPU - M 1000MHz stepping: 4 cpu MHz : 731.500 cache size : 512 KB fdiv_bug: no hlt_bug : no f00f_bug: no coma_bug: no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up bogomips: 1463.24 clflush size: 32 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
On Tue, Oct 21, 2008 at 1:11 PM, Martin Rubey [EMAIL PROTECTED] wrote: William Stein [EMAIL PROTECTED] writes: Please paste the output of cat /proc/cpuinfo into an email response. [EMAIL PROTECTED]:/tmp$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 11 model name : Mobile Intel(R) Pentium(R) III CPU - M 1000MHz stepping: 4 cpu MHz : 731.500 cache size : 512 KB fdiv_bug: no hlt_bug : no f00f_bug: no coma_bug: no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up Thanks. Here's are the flags for the cpu where the binary was built: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm constant_tsc up pni ds_cpl ssse3 cx16 lahf_lm Notice that your Pentium M is missing several of these, for example, it is missing sse2.Thus the binary won't work. (I haven't written code to detect missing instructions sets and make Sage not run, which is on trac, but hasn't been included in Sage yet, due to some differences in opinion about how prohibitive we should be.) When I have Pentium M binaries, you'll be set to use those, and this will be soon, given my new hardware. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
William Stein [EMAIL PROTECTED] writes: Thanks. Here's are the flags for the cpu where the binary was built: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm constant_tsc up pni ds_cpl ssse3 cx16 lahf_lm Notice that your Pentium M is missing several of these, for example, it is missing sse2.Thus the binary won't work. (I haven't written code to detect missing instructions sets and make Sage not run, which is on trac, but hasn't been included in Sage yet, due to some differences in opinion about how prohibitive we should be.) This is very strange. How come I was able to plot before? So, maybe I should just reinstall? (compiling is not an option, since course is tomorrow at 12:00 and compiling took roughly a day last time I did it.) Martin --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
Martin Rubey wrote: William Stein [EMAIL PROTECTED] writes: Thanks. Here's are the flags for the cpu where the binary was built: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm constant_tsc up pni ds_cpl ssse3 cx16 lahf_lm Notice that your Pentium M is missing several of these, for example, it is missing sse2.Thus the binary won't work. (I haven't written code to detect missing instructions sets and make Sage not run, which is on trac, but hasn't been included in Sage yet, due to some differences in opinion about how prohibitive we should be.) This is very strange. How come I was able to plot before? So, maybe I should just reinstall? (compiling is not an option, since course is tomorrow at 12:00 and compiling took roughly a day last time I did it.) Maybe someone is willing to send you a binary that is compatible with your computer? I just checked my laptop and I have SSE2 on it, so I'm afraid I may not be able to help. You could always run the vmware image. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
William Stein wrote: On Tue, Oct 21, 2008 at 1:11 PM, Martin Rubey [EMAIL PROTECTED] wrote: William Stein [EMAIL PROTECTED] writes: Please paste the output of cat /proc/cpuinfo into an email response. [EMAIL PROTECTED]:/tmp$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 11 model name : Mobile Intel(R) Pentium(R) III CPU - M 1000MHz stepping: 4 cpu MHz : 731.500 cache size : 512 KB fdiv_bug: no hlt_bug : no f00f_bug: no coma_bug: no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse up Thanks. Here's are the flags for the cpu where the binary was built: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm constant_tsc up pni ds_cpl ssse3 cx16 lahf_lm Notice that your Pentium M is missing several of these, for example, it is missing sse2.Thus the binary won't work. (I haven't written code to detect missing instructions sets and make Sage not run, which is on trac, but hasn't been included in Sage yet, due to some differences in opinion about how prohibitive we should be.) When I have Pentium M binaries, you'll be set to use those, and this will be soon, given my new hardware. Wow, what sort of new hardware are you getting that are Pentium M's? Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
On Oct 21, 2:14 pm, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: SNIP When I have Pentium M binaries, you'll be set to use those, and this will be soon, given my new hardware. Wow, what sort of new hardware are you getting that are Pentium M's? It isn't new, it is an old laptop that William used to build Sage binaries with until one day compiling ATLAS killed it :) Jason Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
On Tue, Oct 21, 2008 at 3:14 PM, mabshoff [EMAIL PROTECTED] wrote: On Oct 21, 2:14 pm, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: SNIP When I have Pentium M binaries, you'll be set to use those, and this will be soon, given my new hardware. Wow, what sort of new hardware are you getting that are Pentium M's? It isn't new, it is an old laptop that William used to build Sage binaries with until one day compiling ATLAS killed it :) Yep. It's a laptop I bought at Harvard in 2004, which broke (building Sage), and which sat on my shelf for a year, but which I newly fixed. It's a Thinkpad T40. -- William Jason Cheers, Michael -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
William Stein wrote: On Tue, Oct 21, 2008 at 3:14 PM, mabshoff [EMAIL PROTECTED] wrote: On Oct 21, 2:14 pm, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: SNIP When I have Pentium M binaries, you'll be set to use those, and this will be soon, given my new hardware. Wow, what sort of new hardware are you getting that are Pentium M's? It isn't new, it is an old laptop that William used to build Sage binaries with until one day compiling ATLAS killed it :) Yep. It's a laptop I bought at Harvard in 2004, which broke (building Sage), and which sat on my shelf for a year, but which I newly fixed. It's a Thinkpad T40. Ah. Mine is an A31, which has a Pentium M, but apparently a newer one that has SSE2, according to /proc/cpuinfo. According to http://www.thinkwiki.org/wiki/Category:T40, the T40 also has SSE2 (in fact, has a newer chip than my laptop). So your binaries may not help after all in this case, since apparently SSE2 could be a problem. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
On Tue, Oct 21, 2008 at 5:26 PM, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: On Tue, Oct 21, 2008 at 3:14 PM, mabshoff [EMAIL PROTECTED] wrote: On Oct 21, 2:14 pm, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: SNIP When I have Pentium M binaries, you'll be set to use those, and this will be soon, given my new hardware. Wow, what sort of new hardware are you getting that are Pentium M's? It isn't new, it is an old laptop that William used to build Sage binaries with until one day compiling ATLAS killed it :) Yep. It's a laptop I bought at Harvard in 2004, which broke (building Sage), and which sat on my shelf for a year, but which I newly fixed. It's a Thinkpad T40. Ah. Mine is an A31, which has a Pentium M, but apparently a newer one that has SSE2, according to /proc/cpuinfo. According to http://www.thinkwiki.org/wiki/Category:T40, the T40 also has SSE2 (in fact, has a newer chip than my laptop). So your binaries may not help after all in this case, since apparently SSE2 could be a problem. Thanks for looking this up; you're no doubt right. I guess the original posted will absolutely have to build Sage from binary to get something that is 100% solid. Note that using the vmware image (as somebody suggested) won't help by the way, since it also has sse2, etc., as I just checked. It says: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm constant_tsc up pni ds_cpl cx16 lahf_lm -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: again problem with plotting
William Stein wrote: On Tue, Oct 21, 2008 at 5:26 PM, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: On Tue, Oct 21, 2008 at 3:14 PM, mabshoff [EMAIL PROTECTED] wrote: On Oct 21, 2:14 pm, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: SNIP When I have Pentium M binaries, you'll be set to use those, and this will be soon, given my new hardware. Wow, what sort of new hardware are you getting that are Pentium M's? It isn't new, it is an old laptop that William used to build Sage binaries with until one day compiling ATLAS killed it :) Yep. It's a laptop I bought at Harvard in 2004, which broke (building Sage), and which sat on my shelf for a year, but which I newly fixed. It's a Thinkpad T40. Ah. Mine is an A31, which has a Pentium M, but apparently a newer one that has SSE2, according to /proc/cpuinfo. According to http://www.thinkwiki.org/wiki/Category:T40, the T40 also has SSE2 (in fact, has a newer chip than my laptop). So your binaries may not help after all in this case, since apparently SSE2 could be a problem. Thanks for looking this up; you're no doubt right. I guess the original posted will absolutely have to build Sage from binary to get something that is 100% solid. Note that using the vmware image (as somebody suggested) won't help by the way, since it also has sse2, etc., as I just checked. It says: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm constant_tsc up pni ds_cpl cx16 lahf_lm Huh, based on the /proc/cpuinfo on my virtualbox image, it seems that the image identifies the processor as the actual processor on the box (so I have sse2 in my virtualbox image as well). Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---