Alr symbol lookup error

Brand new ubuntu installation.

sudo apt install alire
alr --version

It says

alr: symbol lookup error: alr: undefined symbol: __gnat_timeval_to_duration

Alire already installs a whole bunch of gnat libraries so I tried

sudo apt install gnat-13
alr

Comes up with the same error message. ldd on alr shows

    linux-vdso.so.1 (0x000078de836ba000)
    libgnatcoll.so.22 => /lib/x86_64-linux-gnu/libgnatcoll.so.22 (0x000078de81e00000)
    libxmlezout.so.8 => /lib/x86_64-linux-gnu/libxmlezout.so.8 (0x000078de8367c000)
    libgnarl-13.so => /lib/x86_64-linux-gnu/libgnarl-13.so (0x000078de83631000)
    libgnat-13.so => /lib/x86_64-linux-gnu/libgnat-13.so (0x000078de81800000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000078de83603000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000078de81400000)
    libgnatprj.so.11 => /lib/x86_64-linux-gnu/libgnatprj.so.11 (0x000078de80a00000)
    libxmlada_schema.so.8 => /lib/x86_64-linux-gnu/libxmlada_schema.so.8 (0x000078de82518000)
    libxmlada_dom.so.9 => /lib/x86_64-linux-gnu/libxmlada_dom.so.9 (0x000078de835dd000)
    libxmlada_sax.so.8 => /lib/x86_64-linux-gnu/libxmlada_sax.so.8 (0x000078de83583000)
    libxmlada_input.so.8 => /lib/x86_64-linux-gnu/libxmlada_input.so.8 (0x000078de83573000)
    libxmlada_unicode.so.8 => /lib/x86_64-linux-gnu/libxmlada_unicode.so.8 (0x000078de80600000)
    /lib64/ld-linux-x86-64.so.2 (0x000078de836bc000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000078de81d13000)

Questions:

  1. Which library should timeval_to_duration be defined in?
  2. Is this a bug in the ubuntu (24.10) release?
  3. How do I fix this problem?

Instead of apt, can you try installing Alire through GetAda? That should bring in the latest version; here’s the command, no sudo:

curl --proto '=https' -sSf https://www.getada.dev/init.sh | sh

(You may have to uninstall alire vi apt first)

I don’t recommend using the one in the repository, I could be wrong, but I think it’s a very old version.

Yes, it is a very old version 1.2.1.1b1. I’ll try it when my VM finishes installing

  • libgnat should provide that
  • I’d say so
  • Try with sudo apt install libgnat-*, but I’m not sure if that will make alr to change the used library at runtime.

That’s fixed the problem. How do I mark this as solved.

Unfortunately this didn’t fix the problem.