alire-project / GNAT-FSF-builds

Builds of the GNAT Ada compiler from FSF GCC releases
MIT License
32 stars 9 forks source link

arm-eabi-gdb depends on libncurses.so.5 #34

Open JeremyGrosser opened 2 years ago

JeremyGrosser commented 2 years ago

...but Debian stable (bullseye) installs libncurses6 by default. A libncurses5 package is available, but Alire does not install it automatically.

alr exec arm-eabi-gdb bin/hello_pico
/home/synack/.config/alire/cache/dependencies/gnat_arm_elf_11.2.4_ba16d45c/bin/arm-eabi-gdb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

sudo apt install libncurses5 fixes this error.

Fabien-Chouteau commented 2 years ago

We could add an external dependency on libncurses5 in the gnat_* crates.

JeremyGrosser commented 2 years ago

That would work, although I think it might be better if we could get ncurses statically linked so that we're less dependent on the host environment.

JeremyGrosser commented 2 years ago

I looked into this a little bit and learned a few things:

So, I think your suggestion of just adding a dependency on libncurses5 is the best option. Hopefully the distros maintain this compatibility package until gdb gets bumped up to libncurses6.