Hello, I spent the last five days trying to get sage --gdb to work on Arch Linux, but I couldn't get it to work. Here is what I tried:
git clone https://github.com/sagemath/sage.git cd sage export SAGE_DEBUG=yes make -j4 ./sage -i gdb when the last command prompted > =========================== WARNING =========================== > You are about to download and install the experimental package > gdb-8.2. This probably won't work at all for you! There > is no guarantee that it will build correctly, or behave as > expected. Use at your own risk! > =============================================================== > I confirmed it. After that, I tried executing ./sage --gdb which resulted in $ ./sage --gdb > GNU gdb (GDB) 8.2 > ... > > Reading symbols from python...(no debugging symbols found)...done.Install > pygments for colorized source code. > Python was not compiled with debug symbols (or it was stripped). Some > functionality may not work (properly). > warning: .cygdbinit: No such file or directory > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/usr/lib/libthread_db.so.1". > ┌────────────────────────────────────────────────────────────────────┐ > │ SageMath version 9.1.beta9, Release Date: 2020-03-29 │ > │ Using Python 3.7.3. Type "help()" for help. │ > └────────────────────────────────────────────────────────────────────┘ > ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ > ┃ Warning: this is a prerelease version, and it may be unstable. ┃ > ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ > /home/volker/Sync/git/sage/local/lib/python3.7/site-packages/prompt_toolkit/styles/from_dict.py:9: > > DeprecationWarning: Using or importing the ABCs from 'collections' instead > of from 'collections.abc' is deprecated, and in 3.8 it will st > op working > > > > from collections import Mapping > /home/volker/Sync/git/sage/local/lib/python3.7/site-packages/IPython/utils/module_paths.py:29: > > DeprecationWarning: the imp module is deprecated in favour of importlib; > see the module's documentation for alternative uses > import imp > [Detaching after fork from child process 2694021] > sage: exit() > Exiting Sage (CPU time 0m0.07s, Wall time 0m12.10s). > [Inferior 1 (process 2694015) exited normally] > (gdb) cy break expression:123 > Python Exception <class 'KeyError'> ('expression',): > Error occurred in Python command: ('expression',) > > (gdb) > As you can see, there is the "Python was not compiled with debug symbols (or it was stripped). Some functionality may not work (properly)." warning and cy break expression:123 does not work. Does anyone know how to fix this? Is is possible that sage doesn't like my cython installation, or does sage use it's own cython verrsion? -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/20f537cb-97db-4dde-9dc1-501020bbf034%40googlegroups.com.