From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OHYsQ-000543-F3 for garchives@archives.gentoo.org; Thu, 27 May 2010 08:55:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2012E0B07; Thu, 27 May 2010 08:55:30 +0000 (UTC) Received: from mxi2.callplus.net.nz (mx194.callplus.net.nz [202.180.66.194]) by pigeon.gentoo.org (Postfix) with ESMTP id EB3BAE0B07 for ; Thu, 27 May 2010 08:55:29 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAAfQ/Ut34DCL/2dsb2JhbACeF3LAMYUTBA Received: from 119-224-48-139.callplus.net.nz (HELO vrooom.localnet) ([119.224.48.139]) by ismtp02.callplus.net.nz with ESMTP; 27 May 2010 20:55:28 +1200 From: =?iso-8859-1?q?Fran=E7ois_Bissey?= To: gentoo-science@lists.gentoo.org Subject: Re: [gentoo-science] [sage-on-gentoo](python-2.6.5-r99) Date: Thu, 27 May 2010 20:55:27 +1200 User-Agent: KMail/1.13.3 (Linux/2.6.32-gentoo-r1; KDE/4.4.3; i686; ; ) References: <1274916413.31651.0@ledaig> In-Reply-To: <1274916413.31651.0@ledaig> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201005272055.27353.f.r.bissey@massey.ac.nz> X-Archives-Salt: d2120e1a-3812-4d32-ba04-ab4838a7ea85 X-Archives-Hash: c4a31cfbd1f458b443782e94a4576676 > To those using amd64: > > I first encountered the following when revising sage-core-4.3.5-r1 to > allow backporting from sage-4.4.2 to sage-4.3.5 and it appears with > sage-4.4.2. If I upgrade python to 2.6.5-r99 and rebuild sage-core, > sage will not start. I get: > > ImportError Traceback (most recent call > last) > > /usr/lib64/python2.6/site-packages/IPython/ipmaker.pyc in > force_import(modname, force_reloa > d) > 61 reload(sys.modules[modname]) > 62 else: > ---> 63 __import__(modname) > 64 > 65 > > /opt/sage/local/bin/ipy_profile_sage.py in () > 5 preparser(True) > 6 > ----> 7 import sage.all_cmdline > 8 sage.all_cmdline._init_cmdline(globals()) > 9 > > /usr/lib64/python2.6/site-packages/sage/all_cmdline.py in () > 12 try: > 13 > ---> 14 from sage.all import * > 15 from sage.calculus.predefined import x > 16 preparser(on=True) > > /usr/lib64/python2.6/site-packages/sage/all.py in () > 70 get_sigs() > 71 > ---> 72 from sage.rings.all import * > 73 from sage.matrix.all import * > 74 > > /usr/lib64/python2.6/site-packages/sage/rings/all.py in () > 92 > 93 # Algebraic numbers > ---> 94 from qqbar import (AlgebraicRealField, is_AlgebraicRealField, > AA, > 95 AlgebraicReal, is_AlgebraicReal, > 96 AlgebraicField, is_AlgebraicField, QQbar, > > /usr/lib64/python2.6/site-packages/sage/rings/qqbar.py in () > 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) > > /usr/lib64/python2.6/site-packages/sage/rings/ring.so in > sage.rings.ring.Ring.__getitem__ ( > sage/rings/ring.c:2711)() > 203 > 204 > --> 205 > 206 > 207 > > /usr/lib64/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_co > nstructor.py 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: > > /usr/lib64/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_co > nstructor.py 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: > > ImportError: > /usr/lib64/python2.6/site-packages/sage/rings/polynomial/multi_polynomial_l > ibs ingular.so: undefined symbol: _Z7_p_TestP8spolyrecP9sip_sringi > Error importing ipy_profile_sage - perhaps you should run %upgrade? > WARNING: Loading of ipy_profile_sage failed. > > and if I re-emerge sage I get: > > Setting permissions of DOT_SAGE directory so only you can read and > write it. > Traceback (most recent call last): > File "/opt/sage/local/bin/sage-eval", line 4, in > from sage.all import * > File "/usr/lib64/python2.6/site-packages/sage/all.py", line 72, in > > from sage.rings.all import * > File "/usr/lib64/python2.6/site-packages/sage/rings/all.py", line > 90, in > from qqbar import (AlgebraicRealField, is_AlgebraicRealField, AA, > File "/usr/lib64/python2.6/site-packages/sage/rings/qqbar.py", line > 1412, in e> > QQxy = QQ['x', 'y'] > File "ring.pyx", line 205, in sage.rings.ring.Ring.__getitem__ > (sage/rings/ring.c:2 > 550) > File > "/usr/lib64/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_c > ons tructor.py", line 355, in PolynomialRing > R = _multi_variate(base_ring, names, n, sparse, order) > File > "/usr/lib64/python2.6/site-packages/sage/rings/polynomial/polynomial_ring_c > ons tructor.py", line 453, in _multi_variate > from sage.rings.polynomial.multi_polynomial_libsingular import > MPolynomialRing_li > bsingular > ImportError: > /usr/lib64/python2.6/site-packages/sage/rings/polynomial/multi_polynomia > l_libsingular.so: undefined symbol: _Z7_p_TestP8spolyrecP9sip_sringi > > > I could have overlooked something. I rebuilt cython with no effect. > This is somewhat similar to a problem that was solved by appending > "-fno-strict-aliasing" to the flags in sage-core; which is still there. > None of this is present with python-2.6.4-r99. > Hi Steve, I hit that myself a few hours ago with 4.4.2 on ppc. Not quite sure what to do about it yet. Python-2.6.5-r2 has gone stable on ppc and it is coming very fast to other arch so we better find what happens. I probably need to do one more syncing with 2.6.5-r2 but I don't think that's related. Francois