NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.14k stars 13.42k forks source link

gcc-arm-embedded: broken dependency on python38 #299754

Open lukaslihotzki opened 5 months ago

lukaslihotzki commented 5 months ago

Describe the bug

arm-none-eabi-gdb from gcc-arm-embedded is broken. arm-none-eabi-gdb-unwrapped directly refers to the unavailable libpython3.8.so.1.0, which was replaced by python39 in #285779.

Steps To Reproduce

  1. nix-shell -p gcc-arm-embedded
  2. arm-none-eabi-gdb

Screenshots

$ nix-shell -p gcc-arm-embedded

[nix-shell:~]$ arm-none-eabi-gdb
/nix/store/mfgpwysw0490yk7bcwa8gkwbh128hm5j-gcc-arm-embedded-12.3.rel1/bin/arm-none-eabi-gdb-unwrapped: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

[nix-shell:~]$ 
exit

$ nix-shell -p gcc-arm-embedded-13

[nix-shell:~]$ arm-none-eabi-gdb
/nix/store/xg7l59p507nldhs959xw66kdi6qhf5nx-gcc-arm-embedded-13.2.rel1/bin/arm-none-eabi-gdb-unwrapped: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

[nix-shell:~]$ 
exit

Additional context

Maybe it would make sense to add tests for prebuilt binaries that these binaries can at least output their version or something like that.

Notify maintainers

@mweinelt @prusnak


Add a :+1: reaction to issues you find important.

lukaslihotzki commented 5 months ago

As a workaround, you can use pkgsCross.arm-embedded.buildPackages.gdb instead of gcc-arm-embedded.