Re: [sage-devel] Re: Build system changes in 6.8.beta7
Thank you! Le mercredi 8 juillet 2015 12:41:03 UTC+2, Jeroen Demeyer a écrit : On 2015-07-08 12:37, Han Frederic wrote: with the make method, is there something analogous to ./sage -i -c pkgname ? env SAGE_CHECK=yes make pkgname (in bash, you can drop the env) -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
Hi, I'm struggling to build on Arch Linux. I've downloaded sage 6.7, then applied the patch http://trac.sagemath.org/ticket/18580 to fix the error reported there (I believe the fix will be incorporated in sage-6.8). conway_polynomials fails to build, the log file logs/pkgs/conway_polynomials-0.4.p0.log says: Found local metadata for conway_polynomials-0.4.p0 Found local sources at /home/joshua/build/sage-6.7/upstream/conway_polynomials-0.4.tar.bz2 Checksum: 25b7abe5c935d20c3ebcde943308652c412d14dc vs 25b7abe5c935d20c3ebcde943308652c412d14dc conway_polynomials-0.4.p0 Setting up build directory for conway_polynomials-0.4.p0 Finished set up Host system: Linux marvin 4.0.7-2-ARCH #1 SMP PREEMPT Tue Jun 30 07:50:21 UTC 2015 x86_64 GNU/Linux C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /build/gcc/src/gcc-5-20150623/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=c++98 Thread model: posix gcc version 5.1.0 (GCC) Setting permissions of DOT_SAGE directory so only you can read and write it. Traceback (most recent call last): File ./spkg-install, line 4, in module from sage.all import save File /home/joshua/build/sage-6.7/local/lib/python2.7/site-packages/sage/all.py, line 84, in module from sage.misc.all import * # takes a while File /home/joshua/build/sage-6.7/local/lib/python2.7/site-packages/sage/misc/all.py, line 87, in module from functional import (additive_order, File /home/joshua/build/sage-6.7/local/lib/python2.7/site-packages/sage/misc/functional.py, line 30, in module from sage.rings.complex_double import CDF File sage/libs/pari/gen.pxd, line 7, in init sage.rings.complex_double (build/cythonized/sage/rings/complex_double.c:21771) File sage/libs/pari/gen.pyx, line 8133, in init sage.libs.pari.gen (build/cythonized/sage/libs/pari/gen.c:49150) AttributeError: type object 'sage.libs.pari.gen.gen_auto' has no attribute 'polsturm' real0m1.974s user0m0.387s sys 0m0.117s Error installing package conway_polynomials-0.4.p0 Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the relevant part of the log file [etc. etc.] Any ideas? Is there any more information I can give? Many thanks, Josh -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
On 2015-07-08 14:05, Joshua Hunt wrote: then applied the patch http://trac.sagemath.org/ticket/18580 What *exactly* do you mean with this? -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] a MemoryAllocator object for easier Cython memory management
Heloo everybody! I just created a ticket which might be of interest to whoever here is allocating pointers in Cython. It is a very simple thing, which appears as an example in Cython's documentation, and gives an easy way to allocate pointers without having to free them in many different places (for each return, or when the code is interrupted by exceptions) using Cython's garbage collector. http://trac.sagemath.org/ticket/18868 You will see that it removes a lot of code in the graph folder already. Have fuuun, Nathann -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Build system changes in 6.8.beta7
Le vendredi 3 juillet 2015 09:41:02 UTC+2, Jeroen Demeyer a écrit : Hello all, There were some important changes to the Sage build system in 6.8.beta7: * All logs of running make will appear in install.log, including the logs of the documentation and the Sage library build. Nothing changed for the individual log files. * The documentation can now be built in parallel with packages: if you run make, then all packages will be built and the documentation will be built. Packages which are not required for the documentation might be built at the same time as the documentation. Note that the documentation has a lot of dependencies, so in practice, the documentation will usually be the last thing to finish building anyway. * New-style packages can now be installed with dependency checking by running make pkgname. This applies to all types (standard, optional, experimental). I remind that new-style packages should define dependencies in a build/pkgs/pkgname/dependencies file, this information will be used by make pkgname. I think this should become the recommended way to install packages, while ./sage -i (which does NOT use dependencies) is a more low-level interface, analogous to ./sage -b Hello, with the make method, is there something analogous to ./sage -i -c pkgname ? -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Build system changes in 6.8.beta7
On 2015-07-08 12:37, Han Frederic wrote: with the make method, is there something analogous to ./sage -i -c pkgname ? env SAGE_CHECK=yes make pkgname (in bash, you can drop the env) -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
On Wednesday, July 8, 2015 at 1:39:06 PM UTC+1, Jeroen Demeyer wrote: On 2015-07-08 14:05, Joshua Hunt wrote: then applied the patch http://trac.sagemath.org/ticket/18580 http://www.google.com/url?q=http%3A%2F%2Ftrac.sagemath.org%2Fticket%2F18580sa=Dsntz=1usg=AFQjCNHwmcoD-kWiUweaRhqWAzv_Mi5Sxw What *exactly* do you mean with this? Apologies: what I meant was I applied the change in the commit that you linked to in the log for the bug, i.e. http://git.sagemath.org/sage.git/commit/?id=317056e59d125e704e25d3573737219be9b66b13 . So I edited spkg-install by hand to add the 3 lines added in the commit above. Best wishes, Josh -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
Can you send me the file src/sage/libs/pari/auto_gen.pxi -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
Can you please submit the file logs/pkgs/sage-6.7.log -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
On Wednesday, July 8, 2015 at 4:06:10 PM UTC+1, Jeroen Demeyer wrote: Can you send me the file src/sage/libs/pari/auto_gen.pxi Sure, it just contains # This file is auto-generated by sage_setup/autogen/pari/generator.py cdef class gen_auto(RingElement): Part of the :class:`gen` class containing auto-generated functions. This class is not meant to be used directly, use the derived class :class:`gen` instead. Best wishes, Josh -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
This is probably a problem, which version of Perl do you have? On 2015-07-08 17:22, Joshua Hunt wrote: Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\b{ -- HERE (.)}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 383. -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
This is also strange, make just continues after an error. Did you pass any funny flags to make (apart from -j4)? Can you please try following and send me the output? echo garbage local/share/pari/pari.desc ./sage -ba On 2015-07-08 17:22, Joshua Hunt wrote: Makefile:29: recipe for target 'sage/libs/pari/auto_gen.pxi' failed make[3]: *** [sage/libs/pari/auto_gen.pxi] Error 1 make[3]: *** Waiting for unfinished jobs Building interpreters for fast_callable make[3]: Leaving directory '/home/joshua/build/sage-6.7/src' make[3]: Entering directory '/home/joshua/build/sage-6.7/src' make[3]: warning: -jN forced in submake: disabling jobserver mode. make[3]: Leaving directory '/home/joshua/build/sage-6.7/src' make[3]: Entering directory '/home/joshua/build/sage-6.7/src' make[3]: warning: -jN forced in submake: disabling jobserver mode. python setup.py install -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
Hi, Perl is v5.22.0. Did you pass any funny flags to make (apart from -j4)? Nope, only -j4. Can you please try following and send me the output? echo garbage local/share/pari/pari.desc ./sage -ba I get the following: Deleting Sage library build artifacts... rm -f c_lib/.sconsign.dblite find c_lib -name '*.os' | xargs rm -f find c_lib -name '*.so' | xargs rm -f find c_lib -name '*.dylib' | xargs rm -f rm -rf build find . -name '*.pyc' | xargs rm -f rm -f sage/libs/pari/auto_* rm -rf sage/ext/interpreters This looks like the first time you are running Sage. Updating various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done updating paths. make csage make[1]: Entering directory '/home/joshua/build/sage-6.7/src' cd c_lib scons -Q install Install file: include/interrupt.h as /home/joshua/build/sage-6.7/local/include/csage/interrupt.h Install file: include/ntl_wrap.h as /home/joshua/build/sage-6.7/local/include/csage/ntl_wrap.h gcc -o src/interrupt.os -c -fPIC -I/home/joshua/build/sage-6.7/local/include -I/home/joshua/build/sage-6.7/local/include/python2.7 -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude src/interrupt.c In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/interrupt.h:58, from src/interrupt.c:43: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0: warning: _POSIX_C_SOURCE redefined #define _POSIX_C_SOURCE 200112L ^ In file included from /usr/include/stdio.h:27:0, from src/interrupt.c:29: /usr/include/features.h:225:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^ src/interrupt.c: In function ‘print_enhanced_backtrace’: src/interrupt.c:411:5: warning: implicit declaration of function ‘waitpid’ [-Wimplicit-function-declaration] waitpid(pid, NULL, 0); ^ g++ -o src/ntl_wrap.os -c -fPIC -I/home/joshua/build/sage-6.7/local/include -I/home/joshua/build/sage-6.7/local/include/python2.7 -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude src/ntl_wrap.cpp In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/ntl_wrap.h:33, from src/ntl_wrap.cpp:5: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0: warning: _POSIX_C_SOURCE redefined #define _POSIX_C_SOURCE 200112L ^ In file included from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0, from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482, from /usr/include/c++/5.1.0/iostream:38, from src/ntl_wrap.cpp:1: /usr/include/features.h:225:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^ In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/ntl_wrap.h:33, from src/ntl_wrap.cpp:5: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1204:0: warning: _XOPEN_SOURCE redefined #define _XOPEN_SOURCE 600 ^ In file included from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0, from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482, from /usr/include/c++/5.1.0/iostream:38, from src/ntl_wrap.cpp:1: /usr/include/features.h:166:0: note: this is the location of the previous definition # define _XOPEN_SOURCE 700 ^ g++ -o libcsage.so -shared src/interrupt.os src/ntl_wrap.os -L/home/joshua/build/sage-6.7/local/lib -L/home/joshua/build/sage-6.7/local/lib/python2.7/config -lntl -lpari -lgmp -lpython2.7 Install file: libcsage.so as /home/joshua/build/sage-6.7/local/lib/libcsage.so make[1]: Leaving directory '/home/joshua/build/sage-6.7/src' make sage make[1]: Entering directory '/home/joshua/build/sage-6.7/src' python -c from sage_setup.autogen.pari import rebuild; rebuild() Traceback (most recent call last): File string, line 1, in module File sage_setup/autogen/pari/__init__.py, line 5, in rebuild G() File sage_setup/autogen/pari/generator.py, line 232, in __call__ D = read_pari_desc() File sage_setup/autogen/pari/parser.py, line 87, in read_pari_desc while lines[n].startswith( ): IndexError: list index out of range Makefile:29: recipe for target 'sage/libs/pari/auto_gen.pxi' failed make[1]: *** [sage/libs/pari/auto_gen.pxi] Error 1 make[1]: Leaving directory '/home/joshua/build/sage-6.7/src' Makefile:5: recipe for target 'all' failed make: *** [all] Error 2 -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to
[sage-devel] Announcing $0M in new funding for the SageMathCloud over the next 3 years
Hi, There have been several recent announcements of funding for Sage/Python related projects: - IPython -- Announcing $6M in new funding for the project over the next 3 years (from Sloane, etc.) - OpenDreamKit -- 8.4M A group of Sage developers applied to NSF for $1.7M for open textbooks and a lot of SageMathCloud related development. Today we found out that this proposal was denied (again). I now have absolutely no NSF funding at all to support any Sage-related (or other) activities anymore. This is the third Sage-related NSF grant proposal I've been on that was rejected in a row. Anyway, for me personally and SageMathCloud development, and also support of Sage development at UW, this is a major blow. -- William (http://wstein.org) -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-combinat-devel] bug in free module construction?
The exponential shortcut for free module construction, such as {{{ QQ^3 }}} does not work for rings with slightly more complicated constructions. For example, it does not work for group algebras, symmetric function rings, etc. Is there a ticket on this? -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-combinat-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-combinat-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-combinat-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Build failure on Arch Linux: conway_polynomials fails to build
Perl 5.22 throws warnings for unescaped '{', and pari treats warnings as errors by default. I'm using this patch for system-wide pari: https://projects.archlinux.org/svntogit/community.git/tree/trunk/no_warnings_fatal.patch?h=packages/pari-sage Joshua Hunt wrote: Hi, Perl is v5.22.0. Did you pass any funny flags to make (apart from -j4)? Nope, only -j4. Can you please try following and send me the output? echo garbage local/share/pari/pari.desc ./sage -ba I get the following: Deleting Sage library build artifacts... rm -f c_lib/.sconsign.dblite find c_lib -name '*.os' | xargs rm -f find c_lib -name '*.so' | xargs rm -f find c_lib -name '*.dylib' | xargs rm -f rm -rf build find . -name '*.pyc' | xargs rm -f rm -f sage/libs/pari/auto_* rm -rf sage/ext/interpreters This looks like the first time you are running Sage. Updating various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done updating paths. make csage make[1]: Entering directory '/home/joshua/build/sage-6.7/src' cd c_lib scons -Q install Install file: include/interrupt.h as /home/joshua/build/sage-6.7/local/include/csage/interrupt.h Install file: include/ntl_wrap.h as /home/joshua/build/sage-6.7/local/include/csage/ntl_wrap.h gcc -o src/interrupt.os -c -fPIC -I/home/joshua/build/sage-6.7/local/include -I/home/joshua/build/sage-6.7/local/include/python2.7 -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude src/interrupt.c In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/interrupt.h:58, from src/interrupt.c:43: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0: warning: _POSIX_C_SOURCE redefined #define _POSIX_C_SOURCE 200112L ^ In file included from /usr/include/stdio.h:27:0, from src/interrupt.c:29: /usr/include/features.h:225:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^ src/interrupt.c: In function ‘print_enhanced_backtrace’: src/interrupt.c:411:5: warning: implicit declaration of function ‘waitpid’ [-Wimplicit-function-declaration] waitpid(pid, NULL, 0); ^ g++ -o src/ntl_wrap.os -c -fPIC -I/home/joshua/build/sage-6.7/local/include -I/home/joshua/build/sage-6.7/local/include/python2.7 -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude src/ntl_wrap.cpp In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/ntl_wrap.h:33, from src/ntl_wrap.cpp:5: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0: warning: _POSIX_C_SOURCE redefined #define _POSIX_C_SOURCE 200112L ^ In file included from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0, from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482, from /usr/include/c++/5.1.0/iostream:38, from src/ntl_wrap.cpp:1: /usr/include/features.h:225:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^ In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/ntl_wrap.h:33, from src/ntl_wrap.cpp:5: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1204:0: warning: _XOPEN_SOURCE redefined #define _XOPEN_SOURCE 600 ^ In file included from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0, from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482, from /usr/include/c++/5.1.0/iostream:38, from src/ntl_wrap.cpp:1: /usr/include/features.h:166:0: note: this is the location of the previous definition # define _XOPEN_SOURCE 700 ^ g++ -o libcsage.so -shared src/interrupt.os src/ntl_wrap.os -L/home/joshua/build/sage-6.7/local/lib -L/home/joshua/build/sage-6.7/local/lib/python2.7/config -lntl -lpari -lgmp -lpython2.7 Install file: libcsage.so as /home/joshua/build/sage-6.7/local/lib/libcsage.so make[1]: Leaving directory '/home/joshua/build/sage-6.7/src' make sage make[1]: Entering directory '/home/joshua/build/sage-6.7/src' python -c from sage_setup.autogen.pari import rebuild; rebuild() Traceback (most recent call last): File string, line 1, in module File sage_setup/autogen/pari/__init__.py, line 5, in rebuild G() File sage_setup/autogen/pari/generator.py, line 232, in __call__ D = read_pari_desc() File sage_setup/autogen/pari/parser.py, line 87, in read_pari_desc while lines[n].startswith( ): IndexError: list index out of range Makefile:29: recipe for target 'sage/libs/pari/auto_gen.pxi' failed make[1]: *** [sage/libs/pari/auto_gen.pxi] Error 1 make[1]: Leaving directory '/home/joshua/build/sage-6.7/src' Makefile:5: recipe for target
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
What happens if you instead do MAKE=make -j4 ./sage -ba I get: Deleting Sage library build artifacts... rm -f c_lib/.sconsign.dblite find c_lib -name '*.os' | xargs rm -f find c_lib -name '*.so' | xargs rm -f find c_lib -name '*.dylib' | xargs rm -f rm -rf build find . -name '*.pyc' | xargs rm -f rm -f sage/libs/pari/auto_* rm -rf sage/ext/interpreters make -j4 csage make[1]: warning: -jN forced in submake: disabling jobserver mode. make[1]: Entering directory '/home/joshua/build/sage-6.7/src' cd c_lib scons -Q install Install file: include/interrupt.h as /home/joshua/build/sage-6.7/local/include/csage/interrupt.h Install file: include/ntl_wrap.h as /home/joshua/build/sage-6.7/local/include/csage/ntl_wrap.h gcc -o src/interrupt.os -c -fPIC -I/home/joshua/build/sage-6.7/local/include -I/home/joshua/build/sage-6.7/local/include/python2.7 -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude src/interrupt.c In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/interrupt.h:58, from src/interrupt.c:43: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0: warning: _POSIX_C_SOURCE redefined #define _POSIX_C_SOURCE 200112L ^ In file included from /usr/include/stdio.h:27:0, from src/interrupt.c:29: /usr/include/features.h:225:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^ src/interrupt.c: In function ‘print_enhanced_backtrace’: src/interrupt.c:411:5: warning: implicit declaration of function ‘waitpid’ [-Wimplicit-function-declaration] waitpid(pid, NULL, 0); ^ g++ -o src/ntl_wrap.os -c -fPIC -I/home/joshua/build/sage-6.7/local/include -I/home/joshua/build/sage-6.7/local/include/python2.7 -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude src/ntl_wrap.cpp In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/ntl_wrap.h:33, from src/ntl_wrap.cpp:5: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0: warning: _POSIX_C_SOURCE redefined #define _POSIX_C_SOURCE 200112L ^ In file included from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0, from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482, from /usr/include/c++/5.1.0/iostream:38, from src/ntl_wrap.cpp:1: /usr/include/features.h:225:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^ In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/ntl_wrap.h:33, from src/ntl_wrap.cpp:5: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1204:0: warning: _XOPEN_SOURCE redefined #define _XOPEN_SOURCE 600 ^ In file included from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0, from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482, from /usr/include/c++/5.1.0/iostream:38, from src/ntl_wrap.cpp:1: /usr/include/features.h:166:0: note: this is the location of the previous definition # define _XOPEN_SOURCE 700 ^ g++ -o libcsage.so -shared src/interrupt.os src/ntl_wrap.os -L/home/joshua/build/sage-6.7/local/lib -L/home/joshua/build/sage-6.7/local/lib/python2.7/config -lntl -lpari -lgmp -lpython2.7 Install file: libcsage.so as /home/joshua/build/sage-6.7/local/lib/libcsage.so make[1]: Leaving directory '/home/joshua/build/sage-6.7/src' make -j4 sage make[1]: warning: -jN forced in submake: disabling jobserver mode. make[1]: Entering directory '/home/joshua/build/sage-6.7/src' python -c from sage_setup.autogen.pari import rebuild; rebuild() python -c from sage_setup.autogen.interpreters import rebuild; rebuild('sage/ext/interpreters') Traceback (most recent call last): File string, line 1, in module File sage_setup/autogen/pari/__init__.py, line 5, in rebuild G() File sage_setup/autogen/pari/generator.py, line 232, in __call__ D = read_pari_desc() File sage_setup/autogen/pari/parser.py, line 87, in read_pari_desc while lines[n].startswith( ): IndexError: list index out of range Makefile:29: recipe for target 'sage/libs/pari/auto_gen.pxi' failed make[1]: *** [sage/libs/pari/auto_gen.pxi] Error 1 make[1]: *** Waiting for unfinished jobs Building interpreters for fast_callable make[1]: Leaving directory '/home/joshua/build/sage-6.7/src' Makefile:5: recipe for target 'all' failed make: *** [all] Error 2 -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
I would like to see if the help is also broken within GP. For that, run ./sage --gp and then (at the GP prompt): ??polsturm Similarly to before: GP/PARI CALCULATOR Version 2.8.0 (development git-deac36e) amd64 running linux (x86-64/GMP-5.1.3 kernel) 64-bit version compiled: Jul 8 2015, gcc version 5.1.0 (GCC) threading engine: single (readline v6.3 enabled, extended help enabled) Copyright (C) 2000-2015 The PARI Group PARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER. Type ? for help, \q to quit. Type ?14 for how to get moral (and possibly technical) support. parisize = 800, primelimit = 50 ? ??polsturm Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\b{ -- HERE (.)}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 383. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\b{ -- HERE }\\b{}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 751. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\b{}\\b{ -- HERE }/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 751. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\`{ -- HERE a}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 763. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\{ -- HERE o}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 764. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\{ -- HERE u}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 765. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\'{ -- HERE e}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 766. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\kbd{ -- HERE \n\s*/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 772. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\d?frac{ -- HERE \s*((?:[^{}]|\{[^{}]*\})*)}{\s*((?:[^{}]|\{[^{}]*\})*)}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 782. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\d?frac{\s*((?:[^{}]|\{[^{}]*\})*)}{ -- HERE \s*((?:[^{}]|\{[^{}]*\})*)}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 782. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\b{ -- HERE ([^}]*)}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 899. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/{\\text{ -- HERE (st|nd|th)}}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 903. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\^\\text{ -- HERE th}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 904. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/1\^\\text{ -- HERE st}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 905. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/2\^\\text{ -- HERE nd}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 906. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\emph{ -- HERE */ at /home/joshua/build/sage-6.7/local/bin/gphelp line 913. Unescaped left brace in regex is deprecated, passed through in regex; marked by -- HERE in m/\\var\s*{f{ -- HERE }lag}/ at /home/joshua/build/sage-6.7/local/bin/gphelp line 1108. 'polsturm' not found ! ? It is sounding like it's the braces, as Antonio suggested... -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
On 2015-07-08 18:03, Joshua Hunt wrote: Hi, Perl is v5.22.0. Did you pass any funny flags to make (apart from -j4)? Nope, only -j4. Can you please try following and send me the output? echo garbage local/share/pari/pari.desc ./sage -ba I get the following: That's good. What happens if you instead do MAKE=make -j4 ./sage -ba -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Build failure on Arch Linux: conway_polynomials fails to build
I've added the patch at http://trac.sagemath.org/ticket/18872, please give it a try! -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Build failure on Arch Linux: conway_polynomials fails to build
Since Perl v5.21.1 according to https://metacpan.org/pod/release/PCM/perl-5.21.3/pod/perl5211delta.pod#A-literal-should-now-be-escaped-in-a-pattern On Wednesday, July 8, 2015 at 7:48:10 PM UTC+2, Antonio Rojas wrote: Perl 5.22 throws warnings for unescaped '{', and pari treats warnings as errors by default. I'm using this patch for system-wide pari: https://projects.archlinux.org/svntogit/community.git/tree/trunk/no_warnings_fatal.patch?h=packages/pari-sage Joshua Hunt wrote: Hi, Perl is v5.22.0. Did you pass any funny flags to make (apart from -j4)? Nope, only -j4. Can you please try following and send me the output? echo garbage local/share/pari/pari.desc ./sage -ba I get the following: Deleting Sage library build artifacts... rm -f c_lib/.sconsign.dblite find c_lib -name '*.os' | xargs rm -f find c_lib -name '*.so' | xargs rm -f find c_lib -name '*.dylib' | xargs rm -f rm -rf build find . -name '*.pyc' | xargs rm -f rm -f sage/libs/pari/auto_* rm -rf sage/ext/interpreters This looks like the first time you are running Sage. Updating various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done updating paths. make csage make[1]: Entering directory '/home/joshua/build/sage-6.7/src' cd c_lib scons -Q install Install file: include/interrupt.h as /home/joshua/build/sage-6.7/local/include/csage/interrupt.h Install file: include/ntl_wrap.h as /home/joshua/build/sage-6.7/local/include/csage/ntl_wrap.h gcc -o src/interrupt.os -c -fPIC -I/home/joshua/build/sage-6.7/local/include -I/home/joshua/build/sage-6.7/local/include/python2.7 -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude src/interrupt.c In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/interrupt.h:58, from src/interrupt.c:43: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0: warning: _POSIX_C_SOURCE redefined #define _POSIX_C_SOURCE 200112L ^ In file included from /usr/include/stdio.h:27:0, from src/interrupt.c:29: /usr/include/features.h:225:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^ src/interrupt.c: In function ‘print_enhanced_backtrace’: src/interrupt.c:411:5: warning: implicit declaration of function ‘waitpid’ [-Wimplicit-function-declaration] waitpid(pid, NULL, 0); ^ g++ -o src/ntl_wrap.os -c -fPIC -I/home/joshua/build/sage-6.7/local/include -I/home/joshua/build/sage-6.7/local/include/python2.7 -I/home/joshua/build/sage-6.7/local/include/NTL -Iinclude src/ntl_wrap.cpp In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/ntl_wrap.h:33, from src/ntl_wrap.cpp:5: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1182:0: warning: _POSIX_C_SOURCE redefined #define _POSIX_C_SOURCE 200112L ^ In file included from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0, from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482, from /usr/include/c++/5.1.0/iostream:38, from src/ntl_wrap.cpp:1: /usr/include/features.h:225:0: note: this is the location of the previous definition # define _POSIX_C_SOURCE 200809L ^ In file included from /home/joshua/build/sage-6.7/local/include/python2.7/Python.h:8:0, from include/ntl_wrap.h:33, from src/ntl_wrap.cpp:5: /home/joshua/build/sage-6.7/local/include/python2.7/pyconfig.h:1204:0: warning: _XOPEN_SOURCE redefined #define _XOPEN_SOURCE 600 ^ In file included from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39:0, from /usr/include/c++/5.1.0/x86_64-unknown-linux-gnu/bits/c++config.h:482, from /usr/include/c++/5.1.0/iostream:38, from src/ntl_wrap.cpp:1: /usr/include/features.h:166:0: note: this is the location of the previous definition # define _XOPEN_SOURCE 700 ^ g++ -o libcsage.so -shared src/interrupt.os src/ntl_wrap.os -L/home/joshua/build/sage-6.7/local/lib -L/home/joshua/build/sage-6.7/local/lib/python2.7/config -lntl -lpari -lgmp -lpython2.7 Install file: libcsage.so as /home/joshua/build/sage-6.7/local/lib/libcsage.so make[1]: Leaving directory '/home/joshua/build/sage-6.7/src' make sage make[1]: Entering directory '/home/joshua/build/sage-6.7/src' python -c from sage_setup.autogen.pari import rebuild; rebuild() Traceback (most recent call last): File string, line 1, in module File sage_setup/autogen/pari/__init__.py, line 5, in
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
This is again correct. I give up on the make issue, I cannot debug it from here... Now you first need to reinstall PARI (the echo garbage line broke it intentionally): run ./sage -f pari I would like to see if the help is also broken within GP. For that, run ./sage --gp and then (at the GP prompt): ??polsturm Please report what happens. -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Build failure on Arch Linux: conway_polynomials fails to build
On 2015-07-08 23:18, Joshua Hunt wrote: I would like to see if the help is also broken within GP. For that, run ./sage --gp and then (at the GP prompt): ??polsturm Similarly to before: Good, as expected. Can you also send me the log file logs/pkgs/pari.log -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.