On Ubuntu 18.04, I managed to make build and doc ok with cython capabilities:
$ sage ┌────────────────────────────────────────────────────────────────────┐ │ SageMath version 9.8.beta6, Release Date: 2022-12-21 │ │ Using Python 3.10.8. Type "help()" for help. │ └────────────────────────────────────────────────────────────────────┘ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Warning: this is a prerelease version, and it may be unstable. ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ sage: sage: %%cython ....: def f(int n): ....: cdef int i=1 ....: return n+i ....: sage: f(4) 5 But then running tests fails from the start with a (ModuleNotFoundError: No module named 'Cython') $ sage -tp -all too many failed tests, not using stored timings Running doctests with ID 2023-01-13-11-37-48-e4557df6. Git branch: develop Git ref: 9.7.beta3-4518-g2114066f877 Running with SAGE_LOCAL='/home/slabbe/GitBox/sage/local' and SAGE_VENV='/home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8' Using --optional=debian,dot2tex,glucose,pip,sage,sage_spkg Features to be detected: 4ti2,benzene,bliss,buckygen,conway_polynomials,csdp,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_cubic_hecke,database_jones_numfield,database_knotinfo,dvipng,gfan,graphviz,imagemagick,jupymake,kenzo,latte_int,lrslib,mcqd,meataxe,msolve,nauty,palp,pandoc,pdf2svg,pdftocairo,phitigra,plantri,polytopes_db,polytopes_db_4d,pynormaliz,python_igraph,rubiks,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.misc.cython,sage.plot,sage.rings.number_field,sage.rings.padics,sage.rings.real_double,sage.symbolic,sage_numerical_backends_coin,sagemath_doc_html,sphinx,tdlib Doctesting entire Sage library. Doctesting all documentation sources. Sorting sources by runtime so that slower doctests are run first.... Doctesting 4441 files using 8 threads. sage -t --long --random-seed=197918385925031171534325084253204174054 src/sage/rings/polynomial/pbori/pbori.pxd [0 tests, 0.00 s] sage -t --long --random-seed=197918385925031171534325084253204174054 src/sage/rings/polynomial/pbori/PyPolyBoRi.py Killed due to abort ********************************************************************** Tests run before process (pid=28301) failed: sage: from sage.rings.polynomial.pbori.pbori import * ## line 13 ## sage: from sage.rings.polynomial.pbori.blocks import declare_ring ## line 14 ## sage: r=declare_ring(["x0","x1","x2","y0","y1","y2"], globals()) ## line 15 ## sage: x0>x1 ## line 16 ## True sage: x0>x1*x2 ## line 18 ## True sage: y0>y1 ## line 20 ## True sage: y0>y1*y2 ## line 22 ## True sage: r = r.clone(ordering=dlex) ## line 25 ## sage: r(x0) > r(x1) ## line 26 ## terminate called after throwing an instance of 'std::length_error' what(): deque::_M_new_elements_at_front ------------------------------------------------------------------------ /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/python3.10/site-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so(+0x68bb)[0x7f1fba4228bb] /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/python3.10/site-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so(+0x6a89)[0x7f1fba422a89] /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/python3.10/site-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so(+0x8da1)[0x7f1fba424da1] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef10)[0x7f1fc1d90f10] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f1fc1d90e87] /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f1fc1d927f1] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x9d0a9)[0x7f1fad7830a9] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xa8506)[0x7f1fad78e506] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xa8571)[0x7f1fad78e571] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xa87f5)[0x7f1fad78e7f5] /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZSt20__throw_length_errorPKc+0x3d)[0x7f1fad7858cd] /home/slabbe/GitBox/sage/src/sage/rings/polynomial/pbori/pbori.cpython-310-x86_64-linux-gnu.so(_ZNSt5dequeIN8polybori14CCuddNavigatorESaIS1_EE24_M_new_elements_at_frontEm+0xd6)[0x7f1f34403496] /home/slabbe/GitBox/sage/src/sage/rings/polynomial/pbori/pbori.cpython-310-x86_64-linux-gnu.so(_ZNSt5dequeIN8polybori14CCuddNavigatorESaIS1_EE19_M_range_insert_auxISt15_Deque_iteratorIS1_RKS1_PS6_EEEvS5_IS1_RS1_PS1_ET_SD_St20forward_iterator_tag+0x334)[0x7f1f34404764] /home/slabbe/GitBox/sage/local/lib/libbrial.so.3(_ZN8polybori13CDegTermStackINS_14CCuddNavigatorENS_9valid_tagENS_11invalid_tagENS_18CAbstractStackBaseIS1_EEE8findTermEm+0x6a7)[0x7f1f34107a27] /home/slabbe/GitBox/sage/local/lib/libbrial.so.3(_ZN8polybori13CDegTermStackINS_14CCuddNavigatorENS_9valid_tagENS_11invalid_tagENS_18CAbstractStackBaseIS1_EEE9incrementEv+0x191)[0x7f1f34107e91] /home/slabbe/GitBox/sage/src/sage/rings/polynomial/pbori/pbori.cpython-310-x86_64-linux-gnu.so(+0xab3aa)[0x7f1f343df3aa] /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/libpython3.10.so.1.0(+0x17a9fc)[0x7f1fc22bd9fc] /home/slabbe/GitBox/sage/src/sage/rings/polynomial/pbori/pbori.cpython-310-x86_64-linux-gnu.so(+0x3a3e5)[0x7f1f3436e3e5] /home/slabbe/GitBox/sage/src/sage/structure/element.cpython-310-x86_64-linux-gnu.so(+0x28692)[0x7f1fbeabb692] /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/libpython3.10.so.1.0(PyObject_RichCompare+0x8e)[0x7f1fc2241e5e] /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/libpython3.10.so.1.0(_PyEval_EvalFrameDefault+0x1cc6)[0x7f1fc21a9976] /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/libpython3.10.so.1.0(+0x182114)[0x7f1fc22c5114] /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/libpython3.10.so.1.0(PyEval_EvalCode+0x92)[0x7f1fc22c52d2] /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/libpython3.10.so.1.0(+0x17c8dd)[0x7f1fc22bf8dd] /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/lib/libpython3.10.so.1.0(+0xf9aef)[0x7f1fc223caef] [...] #177 0x00007f1fc1d73c87 in __libc_start_main (main=0x559beab96760 <main>, argc=4, argv=0x7ffd2635acd8, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7ffd2635acc8) at ../csu/libc-start.c:310 self = <optimised out> __self = <optimised out> result = <optimised out> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 1194170473532653556, 94128146311024, 140725244505296, 0, 0, 4926677057861877748, 5015564588080594932}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x7f1fc26be8d3 <_dl_init+259>, 0x7f1fc266eb98}, data = {prev = 0x0, cleanup = 0x0, canceltype = -1033115437}}} not_first_call = <optimised out> #178 0x0000559beab9679a in _start () No symbol table info available. Detaching from program: /home/slabbe/GitBox/sage/local/var/lib/sage/venv-python3.10.8/bin/python3.10, process 28306 [Inferior 1 (process 28306) detached] 30 ../sysdeps/unix/sysv/linux/waitpid.c: Aucun fichier ou dossier de ce type. Python Exception <class 'gdb.error'> value has been optimised out: Python Exception <class 'gdb.error'> value has been optimised out: Python Exception <class 'gdb.error'> value has been optimised out: Traceback (most recent call last): File "<string>", line 25, in <module> ModuleNotFoundError: No module named 'Cython' Error while executing Python code. Saved trace to /home/slabbe/.sage/crash_logs/crash_alt04btk.log ------------------------------------------------------------------------ Unhandled SIGABRT: An abort() occurred. This probably occurred because a *compiled* module has a bug in it and is not properly wrapped with sig_on(), sig_off(). Python will now terminate. ------------------------------------------------------------------------ ********************************************************************** ^CKilling test src/doc/en/reference/sat/index.rst Killing test src/sage/crypto/mq/sr.py Killing test src/sage/rings/polynomial/multi_polynomial_sequence.py Killing test src/sage/rings/polynomial/pbori/fglm.py Killing test src/sage/rings/polynomial/pbori/pbori.pyx Killing test src/sage/sat/boolean_polynomials.py Killing test src/sage/sat/solvers/dimacs.py Killing test src/sage/combinat/tiling.py ---------------------------------------------------------------------- sage -t --long --random-seed=197918385925031171534325084253204174054 src/sage/rings/polynomial/pbori/PyPolyBoRi.py # Killed due to abort sage -t --long --random-seed=197918385925031171534325084253204174054 src/sage/rings/polynomial/polynomial_ring_constructor.py # Killed due to abort Doctests interrupted: 3/4441 files tested ---------------------------------------------------------------------- Total time for all tests: 10.5 seconds cpu time: 0.0 seconds cumulative wall time: 0.0 seconds Features detected for doctesting: imagemagick pytest is not installed in the venv, skip checking tests that rely on it -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-release+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/67c6270a-c934-4822-9ff8-fea205e0e7adn%40googlegroups.com.