This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Arm GNU Toolchain issue with libncurses5 and libncursesw5 on Ubuntu 24.04

I recently upgraded a Linux machine to Ubuntu 24.04. When attempting to use arm-none-eabi-gdb, I encountered the following error:

./arm-none-eabi-gdb: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory

libncurses5 and libncursesw5 have been removed from Ubuntu 24.04 and can be installed by downloading a version not intended for Ubuntu 24.04.

Do you have any plans in the next releases to remove this dependency or upgrade to libncurses6?

Parents
  • Thanks for the feedback. However, I'm afraid this is quite dangerous: there is a reason why the SONAME of the library has changed: it's because its exposed API has changed. So just doing a symlink might work by chance if only the specific subset of the API that hasn't changed is used, but otherwise you might get funky crashes or weird behavior.

    The toolchain should be shipped with its copy of libncurses, so that users don't have to struggle finding a matching version.

Reply
  • Thanks for the feedback. However, I'm afraid this is quite dangerous: there is a reason why the SONAME of the library has changed: it's because its exposed API has changed. So just doing a symlink might work by chance if only the specific subset of the API that hasn't changed is used, but otherwise you might get funky crashes or weird behavior.

    The toolchain should be shipped with its copy of libncurses, so that users don't have to struggle finding a matching version.

Children