I think I am close to have the first binaries. You can look at a full build log at http://kenobi.mandriva.com/~pcpa/sagemath.log.gz
The initial sagemath.spec does not build documentation, but shortly should do so, as building documentation is also a way to check it is working.
The current build fails like this:
+ '[' '%{buildarch}' = noarch ']' + QA_CHECK_RPATHS=1 + case "${QA_CHECK_RPATHS:-}" in + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/check-buildroot Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/matrix/matrix_mpolynomial_dense.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/libs/singular/ring.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/libs/singular/polynomial.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/libs/singular/function.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/libs/singular/singular.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/libs/singular/option.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/libs/singular/groebner_strategy.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/libs/lcalc/lcalc_Lfunction.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/fraction_field_FpT.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/polynomial/multi_polynomial_ideal_libsingular.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/polynomial/polynomial_zmod_flint.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/polynomial/plural.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/polynomial/multi_polynomial_libsingular.so matches Binary file /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/polynomial/polynomial_rational_flint.so matches Found '/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64' in installed files; aborting error: Bad exit status from /var/tmp/rpm-tmp.14lRTk (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.14lRTk (%install)
I think it may be caused because I had a $HOME/.rpmmacros that had:
%_enable_debug_packages %{nil} %debug_package %{nil}
I will remove it and rebuild/reinstall singular, local and flint, and retry...
But there are some optional components missing, that at first I just commented out, most notably should be http://www.coin-or.org/ that I do not know if is packaged with another name in fedora...
Thanks, Paulo
2012/5/6 Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com:
I think I am close to have the first binaries.
This is awesome. Keep up the great work.
Vedran
2012/5/6 Vedran Miletić rivanvx@gmail.com:
2012/5/6 Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com:
I think I am close to have the first binaries.
This is awesome. Keep up the great work.
It should still take significant time to have it working. I corrected the buildroot in binaries by updating some paths because for some reason it was not expanding symlinks so I just hardcoded it to search in %_includedir.
I also updated some extra patches, as sage needs to be run in the buildroot environment, to generate documentation, but it failed. Need to check what every gap package provides. Sample of startup:
+ python common/builder.py all html Setting permissions of DOT_SAGE directory so only you can read and write it. Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299950>> ignored ** Gap crashed or quit executing 'LoadPackage("ctbllib");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299ab8>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299ab8>> ignored ** Gap crashed or quit executing 'LoadPackage("sonata");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299ab8>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299b90>> ignored ** Gap crashed or quit executing 'LoadPackage("guava");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299b90>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299d88>> ignored ** Gap crashed or quit executing 'LoadPackage("factint");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299d88>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299ab8>> ignored ** Gap crashed or quit executing 'LoadPackage("gapdoc");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299ab8>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x22999e0>> ignored ** Gap crashed or quit executing 'LoadPackage("grape");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x22999e0>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299d88>> ignored ** Gap crashed or quit executing 'LoadPackage("design");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299d88>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299e60>> ignored ** Gap crashed or quit executing 'LoadPackage("toric");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299e60>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x22999e0>> ignored ** Gap crashed or quit executing 'LoadPackage("laguna");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x22999e0>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299b90>> ignored ** Gap crashed or quit executing 'LoadPackage("braid");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299b90>> ignored Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299e60>> ignored ** Gap crashed or quit executing 'SaveWorkspace("/tmp/sage6675/gap/workspace-3286394836701090534");' ** Restarting Gap and trying again Exception AttributeError: "spawn instance has no attribute 'closed'" in <bound method spawn.__del__ of <pexpect.spawn instance at 0x2299e18>> ignored Traceback (most recent call last): File "common/builder.py", line 1095, in <module> getattr(get_builder(name), type)() File "common/builder.py", line 243, in _wrapper getattr(get_builder(document), name)(*args, **kwds) File "common/builder.py", line 363, in _wrapper self.write_auto_rest_file(module_name) File "common/builder.py", line 622, in write_auto_rest_file title = self.get_module_docstring_title(module_name) File "common/builder.py", line 579, in get_module_docstring_title import sage.all File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/all.py", line 68, in <module> from sage.misc.all import * # takes a while File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/misc/all.py", line 81, in <module> from functional import (additive_order, File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/misc/functional.py", line 36, in <module> from sage.rings.complex_double import CDF File "complex_double.pyx", line 92, in init sage.rings.complex_double (sage/rings/complex_double.c:15189) File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/complex_field.py", line 87, in ComplexField C = ComplexField_class(prec) File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/complex_field.py", line 187, in __init__ self._populate_coercion_lists_(coerce_list=[complex_number.RRtoCC(self._real_field(), self)]) File "complex_number.pyx", line 2265, in sage.rings.complex_number.RRtoCC.__init__ (sage/rings/complex_number.c:14470) File "map.pyx", line 124, in sage.categories.map.Map.__init__ (sage/categories/map.c:2265) File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/categories/homset.py", line 201, in Hom H = category.hom_category().parent_class(X, Y, category = category) File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/categories/rings.py", line 578, in __new__ from sage.rings.homset import RingHomset File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/homset.py", line 18, in <module> import quotient_ring File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/quotient_ring.py", line 95, in <module> import sage.rings.polynomial.multi_polynomial_ideal File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/rings/polynomial/multi_polynomial_ideal.py", line 235, in <module> from sage.interfaces.all import (singular as singular_default, File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/interfaces/all.py", line 8, in <module> from gap import gap, gap_reset_workspace, gap_console, gap_version, is_GapElement, Gap File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line 1247, in <module> gap_reset_workspace(verbose=False) File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line 1238, in gap_reset_workspace g.save_workspace() File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line 1042, in save_workspace self.eval('SaveWorkspace("%s");'%WORKSPACE, allow_use_file=False) File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line 376, in eval result = Expect.eval(self, input_line, **kwds) File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/interfaces/expect.py", line 1246, in eval for L in code.split('\n') if L != '']) File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line 571, in _eval_line self._start() File "/home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/lib64/python2.7/site-packages/sage/interfaces/gap.py", line 972, in _start raise RuntimeError, msg RuntimeError: __init__() got an unexpected keyword argument 'env' error: Bad exit status from /var/tmp/rpm-tmp.45l3V7 (%install)
But this is the first actual run...
Vedran
Paulo
On Sun, May 6, 2012 at 2:30 PM, Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com wrote:
I also updated some extra patches, as sage needs to be run in the buildroot environment, to generate documentation, but it failed. Need to check what every gap package provides.
Fedora only has GAP itself, the table-of-marks package, and xgap so far. I've got a few more baking here:
http://jjames.fedorapeople.org/
but more and more GAP packages have newer versions that only work with GAP 4.5. Even though that version is still in beta, I'm starting to think about building it for Rawhide, so we can move ahead on some of the other GAP packages.
2012/5/7 Jerry James loganjerry@gmail.com:
On Sun, May 6, 2012 at 2:30 PM, Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com wrote:
I also updated some extra patches, as sage needs to be run in the buildroot environment, to generate documentation, but it failed. Need to check what every gap package provides.
Fedora only has GAP itself, the table-of-marks package, and xgap so far. I've got a few more baking here:
I will build the ones from there. Should resolve gapdoc and sonata missing gap modules required by sagemath.
but more and more GAP packages have newer versions that only work with GAP 4.5. Even though that version is still in beta, I'm starting to think about building it for Rawhide, so we can move ahead on some of the other GAP packages.
In Mandriva I packaged gap packages from the ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages-2009_02_18-11_42_UTC.tar.bz2 tarball and did not update it anymore...
You may consider packaging contents from the latest packages tarball, e.g. ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages-2012_02_03-16_59_UTC.tar.bz2
But should be better to follow the model you are using, and at least at first, package only what sagemath "absolutely" needs, that should be these packages (the missing ones that cause sage to fail to start):
ctbllib sonata guava factint gapdoc grape design toric laguna braid
these should also be well maintained packages, and should all be in the "approved" list of gap packages.
-- Jerry James http://www.jamezone.org/
Paulo
On Mon, May 7, 2012 at 9:08 PM, Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com wrote:
In Mandriva I packaged gap packages from the ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages-2009_02_18-11_42_UTC.tar.bz2 tarball and did not update it anymore...
You may consider packaging contents from the latest packages tarball, e.g. ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages-2012_02_03-16_59_UTC.tar.bz2
We can't do that. Some of the packages in that tarball have license issues, or depend on external software with license issues. We have to take them one by one for auditing purposes.
But should be better to follow the model you are using, and at least at first, package only what sagemath "absolutely" needs, that should be these packages (the missing ones that cause sage to fail to start):
Good, we agree. :-)
ctbllib sonata guava factint gapdoc grape design toric laguna braid
these should also be well maintained packages, and should all be in the "approved" list of gap packages.
That looks like a good initial list to me.
2012/5/8 Jerry James loganjerry@gmail.com:
On Mon, May 7, 2012 at 9:08 PM, Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com wrote:
In Mandriva I packaged gap packages from the ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages-2009_02_18-11_42_UTC.tar.bz2 tarball and did not update it anymore...
You may consider packaging contents from the latest packages tarball, e.g. ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages-2012_02_03-16_59_UTC.tar.bz2
We can't do that. Some of the packages in that tarball have license issues, or depend on external software with license issues. We have to take them one by one for auditing purposes.
But should be better to follow the model you are using, and at least at first, package only what sagemath "absolutely" needs, that should be these packages (the missing ones that cause sage to fail to start):
Good, we agree. :-)
ctbllib sonata guava factint gapdoc grape design toric laguna braid
these should also be well maintained packages, and should all be in the "approved" list of gap packages.
That looks like a good initial list to me.
After installing your packages, it should be missing guava grape design toric laguna braid
But I got yet another flint problem:
File "polynomial_integer_dense_flint.pxd", line 11, in init sage.rings.polynom ial.polynomial_rational_flint (sage/rings/polynomial/polynomial_rational_flint.c pp:14423) ImportError: /home/pcpa/rpmbuild/BUILDROOT/sagemath-5.0.rc0-1.fc16.x86_64/usr/li b64/python2.7/site-packages/sage/rings/polynomial/polynomial_integer_dense_flint .so: undefined symbol: ZZ_limbs
You may consider a variant of this patch:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/flint/current/SOU...
-- Jerry James http://www.jamezone.org/
Paulo
2012/5/9 Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com: [...]
Jerry, in case you want to test the current sagemath build, I think I did not forgot anything, but currently hacked rpms are:
kenobi.mandriva.com/~pcpa/cliquer-1.21-1.fc16.src.rpm
the champion in hacking. This really needs a better integration with upstream and sagemath. Need to rename the sage_* symbols and provide the functionality in the library.
http://kenobi.mandriva.com/~pcpa/flint-1.6-3.fc16.src.rpm
quick hack to add NTL support.
http://kenobi.mandriva.com/~pcpa/linbox-1.2.2-4.fc16.src.rpm
linbox side patches in my work to get sagemath 5.0rc0 to work with linbox 1.2.2.
http://kenobi.mandriva.com/~pcpa/symmetrica-2.0-7.fc16.src.rpm
symmetrica built without -DLOCALTRUE to avoid unresolved symbols.
http://kenobi.mandriva.com/~pcpa/sagemath.tar.bz2
rpm tree with the latest log, but without the tarball, just get it from http://boxen.math.washington.edu/home/release/sage-5.0.rc0/sage-5.0.rc0.tar
In the sagemath.log in sagemath.tar.bz2 you should notice that it should be required to create a maxima-runtime-ecl package.
Paulo
2012/5/9 Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com:
2012/5/9 Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com: [...]
Jerry, in case you want to test the current sagemath build, I think I did not forgot anything, but currently hacked rpms are:
kenobi.mandriva.com/~pcpa/cliquer-1.21-1.fc16.src.rpm
the champion in hacking. This really needs a better integration with upstream and sagemath. Need to rename the sage_* symbols and provide the functionality in the library.
http://kenobi.mandriva.com/~pcpa/flint-1.6-3.fc16.src.rpm
quick hack to add NTL support.
http://kenobi.mandriva.com/~pcpa/linbox-1.2.2-4.fc16.src.rpm
linbox side patches in my work to get sagemath 5.0rc0 to work with linbox 1.2.2.
http://kenobi.mandriva.com/~pcpa/symmetrica-2.0-7.fc16.src.rpm
symmetrica built without -DLOCALTRUE to avoid unresolved symbols.
http://kenobi.mandriva.com/~pcpa/sagemath.tar.bz2
rpm tree with the latest log, but without the tarball, just get it from http://boxen.math.washington.edu/home/release/sage-5.0.rc0/sage-5.0.rc0.tar
In the sagemath.log in sagemath.tar.bz2 you should notice that it should be required to create a maxima-runtime-ecl package.
I made two RFE bugzilla reports to ecl and maxima to have maxima-runtime-ecl, and in the meantime built it locally.
First test of the generated package:
-%<- $ sage ---------------------------------------------------------------------- | Sage Version 5.0.rc0, Release Date: 2012-05-01 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- ********************************************************************** * * * Warning: this is a prerelease version, and it may be unstable. * * * ********************************************************************** sage: 1+1 2 sage: Exiting Sage (CPU time 0m0.03s, Wall time 0m4.25s). Exiting spawned Gap process. -%<-
can load and unload without a crash! :-) Trying a few examples from the tutorial...
-%<- $ sage ---------------------------------------------------------------------- | Sage Version 5.0.rc0, Release Date: 2012-05-01 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- ********************************************************************** * * * Warning: this is a prerelease version, and it may be unstable. * * * ********************************************************************** sage: x = var('x') sage: solve(x^2 + 3*x + 2, x)
Condition of type: SIMPLE-TYPE-ERROR In function MAKE-FOREIGN-DATA-FROM-ARRAY, the value of argument is ""[x = -2,x = -1]"" which is not of expected type BASE-STRING Available restarts:
1. (USE-VALUE) Supply a new value of type BASE-STRING.
Top level in: #<process TOP-LEVEL>.
Internal or unrecoverable error in: GO found an inexistent tag [2: No such file or directory]
;;; ECL C Backtrace ;;; /usr/lib64/libecl.so.12.2(si_dump_c_backtrace+0x2f) [0x7f404cb841cf] ;;; /usr/lib64/libecl.so.12.2(ecl_internal_error+0x44) [0x7f404cb6c134] ;;; /usr/lib64/libecl.so.12.2(+0x78f2d) [0x7f404ca97f2d] ;;; /usr/lib64/libecl.so.12.2(cl_funcall+0x83) [0x7f404cb4bb23] ;;; /usr/lib64/libecl.so.12.2(ecl_check_cl_type+0x2c) [0x7f404cb8a9ec] ;;; /usr/lib64/libecl.so.12.2(ecl_base_string_pointer_safe+0x1f) [0x7f404cbaa9bf] ;;; /usr/lib64/python2.7/site-packages/sage/libs/ecl.so(+0x6416) [0x7f404cea8416] ;;; /usr/lib64/python2.7/site-packages/sage/libs/ecl.so(+0x675d) [0x7f404cea875d] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x50d3) [0x32afadfb13] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5b40) [0x32afae0580] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5b40) [0x32afae0580] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5] ;;; /usr/lib64/libpython2.7.so.1.0() [0x32afa6dc2c] ;;; /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53) [0x32afa49193] ;;; /usr/lib64/libpython2.7.so.1.0() [0x32afa57dff] ;;; /usr/lib64/libpython2.7.so.1.0(PyObject_Call+0x53) [0x32afa49193] ;;; /usr/lib64/python2.7/site-packages/sage/symbolic/expression.so(+0x3bc8d) [0x7f405a962c8d] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x567d) [0x32afae00bd] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCode+0x32) [0x32afae16d2] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5547) [0x32afadff87] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x5b40) [0x32afae0580] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x855) [0x32afae15a5] ;;; /usr/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x509b) [0x32afadfadb]
/usr/share/sagemath/local/bin/sage: line 197: 26472 Aborted (core dumped) sage-ipython "$@" -i
trying others:
-%<- $ sage ---------------------------------------------------------------------- | Sage Version 5.0.rc0, Release Date: 2012-05-01 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- ********************************************************************** * * * Warning: this is a prerelease version, and it may be unstable. * * * ********************************************************************** sage: gp('znprimroot(10007)') --------------------------------------------------------------------------- TypeError Traceback (most recent call last)
/home/pcpa/rpmbuild/<ipython console> in <module>()
/usr/lib64/python2.7/site-packages/sage/interfaces/interface.pyc in __call__(self, x, name) 196 197 if isinstance(x, basestring): --> 198 return cls(self, x, name=name) 199 try: 200 return self._coerce_from_special_method(x)
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in __init__(self, parent, value, is_name, name) 1332 except (TypeError, KeyboardInterrupt, RuntimeError, ValueError), x: 1333 self._session_number = -1 -> 1334 raise TypeError, x 1335 self._session_number = parent._session_number 1336
TypeError: Unable to start pari because the command 'gp --emacs --quiet --stacksize 10000000' failed.
sage: G = gap('Group((1,2,3)(4,5), (3,4))'); G Group( [ (1,2,3)(4,5), (3,4) ] ) sage: R1 = singular.ring(0, '(x,y)', 'dp'); R1 // characteristic : 0 // number of vars : 2 // block 1 : ordering dp // : names x y // block 2 : ordering C sage: f = maxima.eval('ij_entry[i,j] := i/j') --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last)
/home/pcpa/rpmbuild/<ipython console> in <module>()
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in eval(self, code, strip, synchronize, locals, allow_use_file, split_lines, **kwds) 1244 elif split_lines: 1245 return '\n'.join([self._eval_line(L, allow_use_file=allow_use_file, **kwds) -> 1246 for L in code.split('\n') if L != '']) 1247 else: 1248 return self._eval_line(code, allow_use_file=allow_use_file, **kwds)
/usr/lib64/python2.7/site-packages/sage/interfaces/maxima.pyc in _eval_line(self, line, allow_use_file, wait_for_prompt, reformat, error_check, restart_if_needed) 749 return repr(a) 750 else: --> 751 self._sendline(line) 752 753 line_echo = self._expect.readline()
/usr/lib64/python2.7/site-packages/sage/interfaces/maxima.pyc in _sendline(self, str) 615 '9' 616 """ --> 617 self._sendstr(str) 618 os.write(self._expect.child_fd, os.linesep) 619
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in _sendstr(self, str) 1113 """ 1114 if self._expect is None: -> 1115 self._start() 1116 try: 1117 os.write(self._expect.child_fd, str)
/usr/lib64/python2.7/site-packages/sage/interfaces/maxima.pyc in _start(self) 586 587 """ --> 588 Expect._start(self) 589 self._sendline(r":lisp (defun tex-derivative (x l r) (tex (if $derivabbrev (tex-dabbrev x) (tex-d x '\partial)) l r lop rop ))") 590
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in _start(self, alt_message, block_during_init) 477 failed_to_start.append(self.name()) 478 raise RuntimeError, "Unable to start %s because the command '%s' failed.\n%s"%( --> 479 self.name(), cmd, self._install_hints()) 480 481 os.chdir(current_path)
RuntimeError: Unable to start maxima because the command 'maxima-noreadline --userdir="/home/pcpa/.sage/maxima" -p "/usr/share/sagemath/local/bin/sage-maxima.lisp"' failed.
sage: A = maxima('genmatrix(ij_entry,4,4)'); A --------------------------------------------------------------------------- TypeError Traceback (most recent call last)
/home/pcpa/rpmbuild/<ipython console> in <module>()
/usr/lib64/python2.7/site-packages/sage/interfaces/interface.pyc in __call__(self, x, name) 196 197 if isinstance(x, basestring): --> 198 return cls(self, x, name=name) 199 try: 200 return self._coerce_from_special_method(x)
/usr/lib64/python2.7/site-packages/sage/interfaces/maxima.pyc in __init__(self, parent, value, is_name, name) 1153 True 1154 """ -> 1155 ExpectElement.__init__(self, parent, value, is_name=False, name=None) 1156 1157 def display2d(self, onscreen=True):
/usr/lib64/python2.7/site-packages/sage/interfaces/expect.pyc in __init__(self, parent, value, is_name, name) 1332 except (TypeError, KeyboardInterrupt, RuntimeError, ValueError), x: 1333 self._session_number = -1 -> 1334 raise TypeError, x 1335 self._session_number = parent._session_number 1336
TypeError: Unable to start maxima because the command 'maxima-noreadline --userdir="/home/pcpa/.sage/maxima" -p "/usr/share/sagemath/local/bin/sage-maxima.lisp"' failed.
sage: quit Exiting Sage (CPU time 0m0.24s, Wall time 1m36.57s). Exiting spawned Singular process. Exiting spawned Gap process. -%<-
gap and singular appear to have worked at least for a very basic test. The notebook starts correctly, but cannot do much more than evaluate 1+1 without it going "forever thinking"; it also does not provide "interactive" inputs to test the tutorial examples, so, something is wrong there. I also did a quick check of sage -testall, and it appears there is plenty of debug to do in my patch to use linbox 1.2.2.
Paulo
2012/5/12 Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com:
sage: x = var('x') sage: solve(x^2 + 3*x + 2, x)
Condition of type: SIMPLE-TYPE-ERROR In function MAKE-FOREIGN-DATA-FROM-ARRAY, the value of argument is ""[x = -2,x = -1]"" which is not of expected type BASE-STRING Available restarts:
- (USE-VALUE) Supply a new value of type BASE-STRING.
Top level in: #<process TOP-LEVEL>.
Sage uses ecl-11.1.2, that defaults to --enable-unicode=no, and fedora has ecl-12.2.1 (actually, fedora 16 has ecl-11.1.1 that should just work, but I am building rawhide packages, as goal is to have sagemath for fedora 18...)... So, attempting a test ecl build with --enable-unicode=no fails in make check, like this:
Condition of type: SIMPLE-ERROR Unknown or unsupported external format: UTF-8 No restarts available.
I will try to debug the conditions that lead to either to see if I can make it agree on features of the string object.
[...]
gap and singular appear to have worked at least for a very basic test.
pari-gp also works, I just had not installed back the pari-gp package I built.
Paulo
On Sun, May 6, 2012 at 12:18 PM, Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com wrote:
But there are some optional components missing, that at first I just commented out, most notably should be http://www.coin-or.org/ that I do not know if is packaged with another name in fedora...
Which coin-or.org project in particular are you looking for? If you mean cbc, I don't think anybody has packaged it yet.
2012/5/7 Jerry James loganjerry@gmail.com:
On Sun, May 6, 2012 at 12:18 PM, Paulo César Pereira de Andrade paulo.cesar.pereira.de.andrade@gmail.com wrote:
But there are some optional components missing, that at first I just commented out, most notably should be http://www.coin-or.org/ that I do not know if is packaged with another name in fedora...
Which coin-or.org project in particular are you looking for? If you mean cbc, I don't think anybody has packaged it yet.
Almost missed replying to this email :-) Initially I packaged only cbc in Mandriva, but later an user requested full packaging, so I did it. Spec at:
http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/coin-or/current/S...
Sage build checks for existence of some headers, I think at least cplex.h if I recall correctly, but that is closed source AFAIK, and need a license to have the header and library.
-- Jerry James http://www.jamezone.org/
Paulo
scitech@lists.fedoraproject.org