Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules
@ 2023-06-23 17:46 camthesaxman
  2023-06-26  5:11 ` CabrioletDiskette
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: camthesaxman @ 2023-06-23 17:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2992 bytes --]

New issue by camthesaxman on void-packages repository

https://github.com/void-linux/void-packages/issues/44594

Description:
### Is this a new report?

Yes

### System Info

Void 6.1.25_1 x86_64 GenuineIntel uptodate hold rrrmFFFFFF

### Package(s) Affected

cross-arm-none-eabi-gdb-12.1_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

The `arm-none-eabi-gdb` command should work correctly without warnings.

### Actual behaviour

arm-none-eabi-gdb throws numerous warnings about Python modules not being found. Most debugging features still work, though there are annoying warnings with every command. The native x86-64 gdb does not exhibit this behavior, but the arm gdb does. Sample output from debugging an ARM kernel in qemu:
```
Python Exception <class 'ModuleNotFoundError'>: No module named '_gdbevents'
arm-none-eabi-gdb: warning:
Could not load the Python gdb module from `/usr/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
GNU gdb (GDB) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kernel.elf...
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
0x00008000 in bootstrap ()
(gdb) stepi
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
0x00008004 in bootstrap ()
(gdb)
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
0x00008008 in bootstrap ()
(gdb) q
A debugging session is active.

        Inferior 1 [process 1] will be detached.

Quit anyway? (y or n) y
Detaching from program: /home/void/rpi-baremetal/kernel.elf, process 1
Ending remote debugging.
```

### Steps to reproduce

1. Install cross-arm-none-eabi-gdb.
2. Run arm-none-eabi-gdb.
3. Run some commands in gdb and get spammed with Python errors.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cross-arm-none-eabi-gdb appears to be missing some Python modules
  2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
@ 2023-06-26  5:11 ` CabrioletDiskette
  2023-06-26  5:12 ` CabrioletDiskette
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CabrioletDiskette @ 2023-06-26  5:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

New comment by CabrioletDiskette on void-packages repository

https://github.com/void-linux/void-packages/issues/44594#issuecomment-1606660909

Comment:
Could you try to build it on your system with the latest copy of void-packages? I tried to build on my system and it wouldn't even compile. 

Otherwise I caught this in a brief google search: https://github.com/riscv-software-src/homebrew-riscv/issues/61
So it may be related to python directory's. 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cross-arm-none-eabi-gdb appears to be missing some Python modules
  2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
  2023-06-26  5:11 ` CabrioletDiskette
@ 2023-06-26  5:12 ` CabrioletDiskette
  2023-06-26  5:21 ` CabrioletDiskette
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CabrioletDiskette @ 2023-06-26  5:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

New comment by CabrioletDiskette on void-packages repository

https://github.com/void-linux/void-packages/issues/44594#issuecomment-1606660909

Comment:
Could you try to build it on your system with the latest copy of void-packages? I tried to build on my system and it wouldn't even compile. It may fix next version but this is kinda weird. 

Otherwise I caught this in a brief google search for a different gdb arch: https://github.com/riscv-software-src/homebrew-riscv/issues/61
So it may be related to python directory's. 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cross-arm-none-eabi-gdb appears to be missing some Python modules
  2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
  2023-06-26  5:11 ` CabrioletDiskette
  2023-06-26  5:12 ` CabrioletDiskette
@ 2023-06-26  5:21 ` CabrioletDiskette
  2023-06-26  5:22 ` CabrioletDiskette
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CabrioletDiskette @ 2023-06-26  5:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

New comment by CabrioletDiskette on void-packages repository

https://github.com/void-linux/void-packages/issues/44594#issuecomment-1606660909

Comment:
Reproducible.

Could you try to build it on your system with the latest copy of void-packages? I tried to build on my system and it wouldn't even compile. It may fix next version but this is kinda weird. 

Otherwise I caught this in a brief google search for a different gdb arch: https://github.com/riscv-software-src/homebrew-riscv/issues/61
So it may be related to python directory's as stated with "Suggest passing --data-directory=/path/to/gdb/data-directory" as well. 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cross-arm-none-eabi-gdb appears to be missing some Python modules
  2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
                   ` (2 preceding siblings ...)
  2023-06-26  5:21 ` CabrioletDiskette
@ 2023-06-26  5:22 ` CabrioletDiskette
  2023-06-26  5:24 ` CabrioletDiskette
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CabrioletDiskette @ 2023-06-26  5:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

New comment by CabrioletDiskette on void-packages repository

https://github.com/void-linux/void-packages/issues/44594#issuecomment-1606660909

Comment:
Reproducible.

Could you try to build it on your system with the latest copy of void-packages? I tried to build on my system and it wouldn't even compile. It may fix next version but this is kinda weird. 

Otherwise I caught this in a brief google search for a different gdb arch: https://github.com/riscv-software-src/homebrew-riscv/issues/61
So it may be related to python directory's as stated with "Suggest passing --data-directory=/path/to/gdb/data-directory" as well. Hard to debug though if it won't compile on my system.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cross-arm-none-eabi-gdb appears to be missing some Python modules
  2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
                   ` (3 preceding siblings ...)
  2023-06-26  5:22 ` CabrioletDiskette
@ 2023-06-26  5:24 ` CabrioletDiskette
  2023-07-09 15:29 ` CtrlC-Root
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CabrioletDiskette @ 2023-06-26  5:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 808 bytes --]

New comment by CabrioletDiskette on void-packages repository

https://github.com/void-linux/void-packages/issues/44594#issuecomment-1606660909

Comment:
Partially Reproducible. I could not get the errors after the command but I do get warnings about not loading the gdb python lmodules. 

Could you try to build it on your system with the latest copy of void-packages? I tried to build on my system and it wouldn't even compile. It may fix next version but this is kinda weird. 

Otherwise I caught this in a brief google search for a different gdb arch: https://github.com/riscv-software-src/homebrew-riscv/issues/61
So it may be related to python directory's as stated with "Suggest passing --data-directory=/path/to/gdb/data-directory" as well. Hard to debug though if it won't compile on my system.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cross-arm-none-eabi-gdb appears to be missing some Python modules
  2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
                   ` (4 preceding siblings ...)
  2023-06-26  5:24 ` CabrioletDiskette
@ 2023-07-09 15:29 ` CtrlC-Root
  2023-07-09 15:29 ` CtrlC-Root
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CtrlC-Root @ 2023-07-09 15:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

New comment by CtrlC-Root on void-packages repository

https://github.com/void-linux/void-packages/issues/44594#issuecomment-1627748317

Comment:
I have run into this as well and here's my understanding of the situation. If the `cross-arm-none-eabi-gdb` and `gdb-common` packages have matching versions then the former will use the Python libraries shipped with the latter at `/usr/share/gdb/python/`. However at the moment on Void Linux the former is 12.X and the latter is 13.X which apparently are incompatible hence the errors above. This prevents you from using most of the Python-based GDB tools with the `cross-arm-none-eabi-gdb` package (ex. [gef](https://github.com/hugsy/gef) ).

I'm not sure the best way to fix this but off the top of my head:

* Build the GDB 12 Python libraries, install them at a separate path than the default, and point GDB to them explicitly using configuration settings.
* Update `cross-arm-none-eabi-gdb` to the same major version as `gdb-common` and `gdb`. Now they can both use the same Python libraries.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cross-arm-none-eabi-gdb appears to be missing some Python modules
  2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
                   ` (5 preceding siblings ...)
  2023-07-09 15:29 ` CtrlC-Root
@ 2023-07-09 15:29 ` CtrlC-Root
  2023-07-09 15:30 ` CtrlC-Root
  2023-07-10  9:19 ` [ISSUE] [CLOSED] " classabbyamp
  8 siblings, 0 replies; 10+ messages in thread
From: CtrlC-Root @ 2023-07-09 15:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]

New comment by CtrlC-Root on void-packages repository

https://github.com/void-linux/void-packages/issues/44594#issuecomment-1627748317

Comment:
I have run into this as well and here's my understanding of the situation. If the `cross-arm-none-eabi-gdb` and `gdb-common` packages have matching versions then the former will use the Python libraries shipped with the latter at `/usr/share/gdb/python/`. However at the moment on Void Linux the former is 12.X and the latter is 13.X which apparently are incompatible hence the errors above. This prevents you from using most of the Python-based GDB tools with the `cross-arm-none-eabi-gdb` package (ex. [gef](https://github.com/hugsy/gef)).

I'm not sure the best way to fix this but off the top of my head:

* Build the GDB 12 Python libraries, install them at a separate path than the default, and point GDB to them explicitly using configuration settings.
* Update `cross-arm-none-eabi-gdb` to the same major version as `gdb-common` and `gdb`. Now they can both use the same Python libraries.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cross-arm-none-eabi-gdb appears to be missing some Python modules
  2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
                   ` (6 preceding siblings ...)
  2023-07-09 15:29 ` CtrlC-Root
@ 2023-07-09 15:30 ` CtrlC-Root
  2023-07-10  9:19 ` [ISSUE] [CLOSED] " classabbyamp
  8 siblings, 0 replies; 10+ messages in thread
From: CtrlC-Root @ 2023-07-09 15:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]

New comment by CtrlC-Root on void-packages repository

https://github.com/void-linux/void-packages/issues/44594#issuecomment-1627748317

Comment:
I have run into this as well and here's my understanding of the situation. If the `cross-arm-none-eabi-gdb` and `gdb-common` packages have matching versions then the former will use the Python libraries shipped with the latter at `/usr/share/gdb/python/`. However at the moment on Void Linux the former is 12.X and the latter is 13.X which apparently are incompatible hence the errors above. This prevents you from using most of the Python-based GDB tools with the `cross-arm-none-eabi-gdb` package (ex. [gef](https://github.com/hugsy/gef)).

I'm not sure the best way to fix this but off the top of my head:

* Build the GDB 12 Python libraries, install them at a separate path than the default, and point `cross-arm-none-eabi-gdb` to them explicitly using configuration settings.
* Update `cross-arm-none-eabi-gdb` to the same major version as `gdb-common` and `gdb`. Now they can both use the same Python libraries.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ISSUE] [CLOSED] cross-arm-none-eabi-gdb appears to be missing some Python modules
  2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
                   ` (7 preceding siblings ...)
  2023-07-09 15:30 ` CtrlC-Root
@ 2023-07-10  9:19 ` classabbyamp
  8 siblings, 0 replies; 10+ messages in thread
From: classabbyamp @ 2023-07-10  9:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2995 bytes --]

Closed issue by camthesaxman on void-packages repository

https://github.com/void-linux/void-packages/issues/44594

Description:
### Is this a new report?

Yes

### System Info

Void 6.1.25_1 x86_64 GenuineIntel uptodate hold rrrmFFFFFF

### Package(s) Affected

cross-arm-none-eabi-gdb-12.1_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

The `arm-none-eabi-gdb` command should work correctly without warnings.

### Actual behaviour

arm-none-eabi-gdb throws numerous warnings about Python modules not being found. Most debugging features still work, though there are annoying warnings with every command. The native x86-64 gdb does not exhibit this behavior, but the arm gdb does. Sample output from debugging an ARM kernel in qemu:
```
Python Exception <class 'ModuleNotFoundError'>: No module named '_gdbevents'
arm-none-eabi-gdb: warning:
Could not load the Python gdb module from `/usr/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
GNU gdb (GDB) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kernel.elf...
(gdb) target remote localhost:1234
Remote debugging using localhost:1234
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
0x00008000 in bootstrap ()
(gdb) stepi
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
0x00008004 in bootstrap ()
(gdb)
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
Python Exception <class 'NameError'>: Installation error: gdb._execute_unwinders function is missing
0x00008008 in bootstrap ()
(gdb) q
A debugging session is active.

        Inferior 1 [process 1] will be detached.

Quit anyway? (y or n) y
Detaching from program: /home/void/rpi-baremetal/kernel.elf, process 1
Ending remote debugging.
```

### Steps to reproduce

1. Install cross-arm-none-eabi-gdb.
2. Run arm-none-eabi-gdb.
3. Run some commands in gdb and get spammed with Python errors.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-07-10  9:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-23 17:46 [ISSUE] cross-arm-none-eabi-gdb appears to be missing some Python modules camthesaxman
2023-06-26  5:11 ` CabrioletDiskette
2023-06-26  5:12 ` CabrioletDiskette
2023-06-26  5:21 ` CabrioletDiskette
2023-06-26  5:22 ` CabrioletDiskette
2023-06-26  5:24 ` CabrioletDiskette
2023-07-09 15:29 ` CtrlC-Root
2023-07-09 15:29 ` CtrlC-Root
2023-07-09 15:30 ` CtrlC-Root
2023-07-10  9:19 ` [ISSUE] [CLOSED] " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).