FS#69939 - arm-none-eabi-gdb is not compiled against python3.9
Attached to Project:
Community Packages
Opened by Johnny Halfmoon (jhalfmoon) - Wednesday, 10 March 2021, 21:52 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 11 March 2021, 07:49 GMT
Opened by Johnny Halfmoon (jhalfmoon) - Wednesday, 10 March 2021, 21:52 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 11 March 2021, 07:49 GMT
|
Details
Description:
arm-none-eabi-gdb throws the following error: arm-none-eabi-gdb: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory ...when using the integrated python. For example when the following code is in .gdbinit: python import os,subprocess,sys # Execute a Python using the user's shell and pull out the sys.path (for site-packages) paths = subprocess.check_output('python -c "import os,sys;print(os.linesep.join(sys.path).strip())"',shell=True).decode("utf-8").split() # Extend GDB's Python's search path sys.path.extend(paths) end Additional info: arm-none-eabi-gdb needs to have the python version available against/with which it was compiled. Now that 3.9 is the most recent version in arch Linux, python integration stopped working in gdb. It needs to be recompiled against this newer major version. * package version(s) local/python 3.9.2-1 local/arm-none-eabi-gdb 10.1-2 * config and/or log files etc. My .gdbinit: set history save on set history size 10000 set history filename ~/.gdb_history set confirm off set mi-async on set mem inaccessible-by-default off set disassemble-next-line on python import os,subprocess,sys # Execute a Python using the user's shell and pull out the sys.path (for site-packages) paths = subprocess.check_output('python -c "import os,sys;print(os.linesep.join(sys.path).strip())"',shell=True).decode("utf-8").split() # Extend GDB's Python's search path sys.path.extend(paths) end Steps to reproduce: pacman -Syu pacman -S arm-none-eabi-gdb arm-none-eabi-gdb |
This task depends upon
Closed by Antonio Rojas (arojas)
Thursday, 11 March 2021, 07:49 GMT
Reason for closing: Not a bug
Additional comments about closing: It is
Thursday, 11 March 2021, 07:49 GMT
Reason for closing: Not a bug
Additional comments about closing: It is
Comment by
Johnny Halfmoon (jhalfmoon) -
Wednesday, 10 March 2021, 22:32 GMT
Note: installing python3.8 from the AUR fixes the issue. But that
should be considered a work around IMHO.