Yes, I do believe too. I had the exact same problem, and only figured it out a few days ago. By the way, -march obsoletes -mtune.
CFLAGS="-march=core2 -O2 -pipe -mfpmath=sse" would work better :) On Mon, Dec 28, 2009 at 2:57 AM, Nareto <renn...@gmail.com> wrote: > wow, *thank you*! finally i built successfully. > > I think this would be well worth mentioning in the documentation, as > on Gentoo and Arch (for example) CFLAGS and CXXFLAGS are set system > wide, and it's very common (and usually secure to) to have something > like > > CFLAGS="-march=i686 -mtune=core2 -O2 -pipe" > CXXFLAGS="${CFLAGS}" > > > Renato > > > On Dec 27, 6:01 am, Tim Joseph Dumol <t...@timdumol.com> wrote: > > Hello, > > > > Sage must be compiled with -O1 or -O0, any higher causes hangs/problems. > > Hopefully that works for you. > > > > On Sun, Dec 27, 2009 at 5:46 AM, Renato <renn...@gmail.com> wrote: > > > Hello, I'm trying to compile sage 4.3 but I'm not having success. The > > > build completed but I'm getting errors when running ./sage: > > > > > sage-4.3$ ./sage > > > ---------------------------------------------------------------------- > > > | Sage Version 4.3, Release Date: 2009-12-24 | > > > | Type notebook() for the GUI, and license() for information. | > > > ---------------------------------------------------------------------- > > > > --------------------------------------------------------------------------- > > > NotImplementedError Traceback (most recent call > > > last) > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/IPython/ipmaker.pyc > > > in force_import(modname) 64 reload(sys.modules[modname]) > > > 65 else: > > > ---> 66 __import__(modname) > > > 67 > > > 68 > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/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 > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/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) > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/all.py > > > in <module>() 70 get_sigs() > > > 71 > > > ---> 72 from sage.rings.all import * > > > 73 from sage.matrix.all import * > > > 74 > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/all.py > > > in <module>() 92 > > > 93 # Algebraic numbers > > > > > ---> 94 from qqbar import (AlgebraicRealField, is_AlgebraicRealField, > > > AA, 95 AlgebraicReal, is_AlgebraicReal, > > > 96 AlgebraicField, is_AlgebraicField, QQbar, > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/qqbar.py > > > in <module>() 1414 QQy = QQ['y'] > > > 1415 QQy_y = QQy.gen() > > > -> 1416 QQxy = QQ['x', 'y'] > > > 1417 QQxy_x = QQxy.gen(0) > > > 1418 QQxy_y = QQxy.gen(1) > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/ring.so > > > in sage.rings.ring.Ring.__getitem__ (sage/rings/ring.c:2685)() > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc > > > in PolynomialRing(base_ring, arg1, arg2, sparse, order, names, name, > > > implementation) 353 names = arg1 354 n = > > > len(names) --> 355 R = _multi_variate(base_ring, names, n, > > > sparse, order) 356 > > > 357 if arg1 is None and arg2 is None: > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_constructor.pyc > > > in _multi_variate(base_ring, names, n, sparse, order) 451 > > > return R 452 > > > --> 453 from sage.rings.polynomial.multi_polynomial_libsingular > > > import MPolynomialRing_libsingular 454 if > > > m.integral_domain.is_IntegralDomain(base_ring): 455 if n < 1: > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/bin/multi_polynomial_libsingular.pyx > > > in init sage.rings.polynomial.multi_polynomial_libsingular > > > (sage/rings/polynomial/multi_polynomial_libsingular.cpp:29460)() > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/libs/singular/__init__.py > > > in <module>() 6 > > > 7 ## We predefine a couple of often used functions here to avoid > > > the fetch overhead ## > > > > > ----> 8 groebner = singular_function('groebner') > > > 9 > > > 10 > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/libs/singular/function.so > > > in sage.libs.singular.function.singular_function > > > (sage/libs/singular/function.cpp:11103)() > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/libs/singular/function.so > > > in sage.libs.singular.function.SingularKernelFunction.__init__ > > > (sage/libs/singular/function.cpp:10853)() > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/libs/singular/function.so > > > in sage.libs.singular.function.SingularFunction.get_call_handler > > > (sage/libs/singular/function.cpp:9141)() > > > > > NotImplementedError: > > > Error importing ipy_profile_sage - perhaps you should run %upgrade? > > > WARNING: Loading of ipy_profile_sage failed. > > > > > sage: 2+2 > > > > --------------------------------------------------------------------------- > > > NameError Traceback (most recent call > > > last) > > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/bin/<ipython > > > console> in <module>() > > > > > NameError: name 'Integer' is not defined > > > sage: > > > > > ------------------------- > > > > > I'm running Archlinux > > > $ uname -a > > > Linux tosharch 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:48:17 CET 2009 > > > i686 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz GenuineIntel GNU/Linux > > > > > here's the last part of my install.log (the whole thing has 22mb). I > > > can't wait for having a working sage. thanks for any help > > > > > [...] > > > copying dsage/web/static/jquery.form.js > > > -> /home/renato/src/sage-matematica/src/sage-4.3/local/dsage/web/static > > > copying dsage/web/static/asc.gif > > > -> /home/renato/src/sage-matematica/src/sage-4.3/local/dsage/web/static > > > copying dsage/web/static/desc.gif > > > -> /home/renato/src/sage-matematica/src/sage-4.3/local/dsage/web/static > > > copying dsage/web/static/bg.gif > > > -> /home/renato/src/sage-matematica/src/sage-4.3/local/dsage/web/static > > > copying dsage/README.html > > > -> /home/renato/src/sage-matematica/src/sage-4.3/local/dsage/web/static > > > copying dsage/web/index.html > > > -> /home/renato/src/sage-matematica/src/sage-4.3/local/dsage/web/ > > > running install_egg_info > > > Writing > > > > /home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/dsage-1.0-py2.6.egg-info > > > > > real 0m0.227s > > > user 0m0.143s > > > sys 0m0.063s > > > Successfully installed dsage-1.0.1.p0 > > > Now cleaning up tmp files. > > > Making Sage/Python scripts relocatable... > > > Making script relocatable > > > Finished installing dsage-1.0.1.p0.spkg > > > cd /home/renato/src/sage-matematica/src/sage-4.3 && . > > > local/bin/sage-env && cd local/bin/ && ./sage-make_relative Making > > > script relocatable make[1]: Leaving directory > > > `/home/renato/src/sage-matematica/src/sage-4.3/spkg' > > > > > real 130m25.230s > > > user 116m5.989s > > > sys 10m31.862s > > > sphinx-build -b html > > > -d > > > > /home/renato/src/sage-matematica/src/sage-4.3/devel/sage/doc/output/doctrees/en/website > > > > /home/renato/src/sage-matematica/src/sage-4.3/devel/sage/doc/en/website > > > > /home/renato/src/sage-matematica/src/sage-4.3/devel/sage/doc/output/html/en/website > > > Setting permissions of DOT_SAGE directory so only you can read and > > > write it. [?1034hTraceback (most recent call last): File > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/bin/sphinx-build", > > > line 6, in <module> import sage.all File > > > > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/all.py", > > > line 72, in <module> from sage.rings.all import * File > > > > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/all.py", > > > line 94, in <module> from qqbar import (AlgebraicRealField, > > > is_AlgebraicRealField, AA, File > > > > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/qqbar.py", > > > line 1416, in <module> QQxy = QQ['x', 'y'] File "ring.pyx", line 205, > > > in sage.rings.ring.Ring.__getitem__ (sage/rings/ring.c:2685) File > > > > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_constructor.py", > > > line 355, in PolynomialRing R = _multi_variate(base_ring, names, n, > > > sparse, order) File > > > > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_constructor.py", > > > line 453, in _multi_variate from > > > sage.rings.polynomial.multi_polynomial_libsingular import > > > MPolynomialRing_libsingular File "multi_polynomial_libsingular.pyx", > > > line 1, in init sage.rings.polynomial.multi_polynomial_libsingular > > > (sage/rings/polynomial/multi_polynomial_libsingular.cpp:29460) File > > > > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/libs/singular/__init__.py", > > > line 8, in <module> groebner = singular_function('groebner') File > > > "function.pyx", line 1273, in > > > sage.libs.singular.function.singular_function > > > (sage/libs/singular/function.cpp:11103) File "function.pyx", line 1141, > > > in sage.libs.singular.function.SingularKernelFunction.__init__ > > > (sage/libs/singular/function.cpp:10853) File "function.pyx", line 878, > > > in sage.libs.singular.function.SingularFunction.get_call_handler > > > (sage/libs/singular/function.cpp:9141) NotImplementedError Build > > > finished. The built documents can be found > > > in > > > > /home/renato/src/sage-matematica/src/sage-4.3/devel/sage/doc/output/html/en/website > > > sphinx-build -b html > > > -d > > > > /home/renato/src/sage-matematica/src/sage-4.3/devel/sage/doc/output/doctrees/en/numerical_sage > > > > > > > /home/renato/src/sage-matematica/src/sage-4.3/devel/sage/doc/en/numerical_sage > > > > /home/renato/src/sage-matematica/src/sage-4.3/devel/sage/doc/output/html/en/numerical_sage > > > [?1034hTraceback > > > (most recent call last): File > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/bin/sphinx-build", > > > line 6, in <module> import sage.all File > > > > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/all.py", > > > line 72, in <module> from sage.rings.all import * File > > > > > > "/home/renato/src/sage-matematica/src/sage-4.3/local/lib/python2.6/site-packages/sage/rings/all.py", > > > > ... > > > > read more ยป > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com<sage-support%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- Tim Joseph Dumol <tim (at) timdumol (dot) com> http://timdumol.com -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org