Build error with latest GitHub sources

I’m getting this error in the Kodi build phase (I need to clean and build Kodi to apply a custom patch). Any tips, or is it something coming from upstream and will be resolved eventually?

autoreconf: running: /home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/toolchain/bin/aclocal -I /home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/toolchain/aarch64-libreelec-linux-gnu/sysroot/usr/share/aclocal -I /home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/toolchain/aarch64-libreelec-linux-gnu/sysroot/usr/share/aclocal --force -I m4
autoreconf: running: /home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/toolchain/bin/autoconf --include=/home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/toolchain/aarch64-libreelec-linux-gnu/sysroot/usr/share/aclocal --force
autoreconf: running: /home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/toolchain/bin/autoheader --include=/home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/toolchain/aarch64-libreelec-linux-gnu/sysroot/usr/share/aclocal --force
autoreconf: running: /home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/toolchain/bin/automake --add-missing --copy --force-missing
automake: error: cannot open < libltdl/ltdl.mk: No such file or directory
autoreconf: error: /home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/toolchain/bin/automake failed with exit status: 1

No issues building here.

Maybe you need

sudo apt install libltdl-dev

With such vague descriptions don’t expect much help.

Unfortunately that one didn’t fix the issue.

Looks like it’s trying to build libtool.

BUILD      libtool (host)
    TOOLCHAIN      autotools
    AUTORECONF      libtool
autoreconf: export WARNINGS=
autoreconf: Entering directory '/home/sam/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/build/libtool-2.5.4'

I tried sudo apt install libtool, but it detects 2.4.7-7build1 as the latest version. I’m running Ubuntu 24.04.2 LTS in WSL.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
libtool is already the newest version (2.4.7-7build1).
libtool set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

The patch file I have is just a small fix to whitelisting, namely to Resolution.cpp to prevent downscaling. Without that one, 1440p sources may be downscaled to 1080p (if that is whitelisted) and then upscaled to 4K by the TV. I’d rather just upscale directly to 4K by the box. I’ve been using it for a long time without any issues.

libtool was updated, you need a new clean build.

1 Like

I though this is number 1 thing to do when some issue happen :grimacing:

I did run ./scripts/clean kodi first, as I always do :innocent:
I’m now testing a fresh cloned repo to see if it works.

clean, not clean kodi

or just rm -fr build.CoreELEC-Amlogic-no.aarch64-22

1 Like

Thanks, I missed that one. I kind of expected Kodi cleanup to be enough since the problem occurred during that phase. I’m sure it will work now, still progressing.