Kodi 18a2 build fails on Arch Linux. How to fix?
#1
Hello,

I try to compile Kodi on Arch Linux using this build script:

https://aur.archlinux.org/packages/kodi-pre-release/

My problem is, that this always fails exactly after (successfully?) building ffmpeg.

I can't see the full build history and also can't see any error.

So my first question would be: How can I get a build log to attach here?
Reply
#2
Thread moved to Linux
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
Please ask @graysky  he is the maintainer of this build script
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#4
I actually don't think the reason is the build script. I've found out why my "get output into file" attempt failed. I have to do the "forward" last (>>logfile 2>&1). Now my build runs again with all going to a log file. I'll update this post with a pastebin link as soon as my build finishes.

Edit: Here the log
https://paste.ubuntu.com/p/DWx7Bm6YDG/

Code:

 /home/build/builddir/kodi-pre-release/src/xbmc-18.0a2-Leia/xbmc/utils/StringUtils.h:41:10: fatal error: fmt/format.h: No such file or directory
#include <fmt/format.h>
^~~~~~~~~~~~~~ compilation terminated.

Where does this come from...
Reply
#5
fritsch@L380:~$ dpkg -S format.h |grep -i libfmt
libfmt-dev: /usr/include/fmt/format.h

your dependencies don't match -> therefore: ask the owner of the build script
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#6
That's a start. Thanks for pointing this out.

"fmt" is not an official Arch Linux package. Has to be build manually, too:

https://aur.archlinux.org/packages/fmt/

Build runs again, now. I've added a comment to the kodi-pre-release PKGBUILD page:
https://aur.archlinux.org/pkgbase/kodi-p...ent-655122

Aaaand.... Fails again. Build log follows.

After a quick look it seems like Kodi doesn't link to the "libfmt.a" file. I have no idea how to fix this. Will still post the build log in a few minutes, but I tend to give up on this. Way too difficult to build Kodi 18.
Reply
#7
Oh. And now I see the following in the build script:

https://aur.archlinux.org/cgit/aur.git/t...elease#n98

What's going wrong here? Why does kodi still want me to have this "fmt" packageHuh
Reply
#8
Build log:
https://paste.ubuntu.com/p/PvSxCbKqvh/

This seems to be a failure while linking but "fmt" should not be needed as the usage of the internal FMT is configured.

I have no idea what's going wrong here...
Reply
#9
As I mentioned in the AUR to other users, one must build the package in a clean chroot to avoid cmake getting confused by packages you may have installed on your host system.  I can build kodi-pre-release 18.0a2-4 just fine as I described.
Need help programming a Streamzap remote?
Reply
#10
looks like libfmt is not linked.

pastebin CMakeCache.txt
also, run make V=1 VERBOSE=1 after your build fails
Reply
#11
Again, build in a clean chroot.  The AUR package is using the internal fmt:

Code:
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DENABLE_EVENTCLIENTS=ON \
    -Dlibdvdcss_URL="$srcdir/libdvdcss-$_libdvdcss_version.tar.gz" \
    -Dlibdvdnav_URL="$srcdir/libdvdnav-$_libdvdnav_version.tar.gz" \
    -Dlibdvdread_URL="$srcdir/libdvdread-$_libdvdread_version.tar.gz" \
    -DFFMPEG_URL="$srcdir/ffmpeg-$_ffmpeg_version.tar.gz" \
    -DENABLE_INTERNAL_FMT=ON \
    ../"xbmc-$pkgver-$_codename"

I am guessing that cmake is finding some external one on your system and causing a problem.
Need help programming a Streamzap remote?
Reply
#12
I'm building on a virtual machine which is dedicated to package building. Before starting the build I uninstalled everything back to "base/base-devel" state. There can't be an external "fmt" on this system.

I know about the "clean chroot" stuff the Arch team propagates and IMHO this is the worst idea they ever had. With my VM solution I can do auto-builds completely without interaction. We do this for our "vdr4arch" repo: https://github.com/VDR4Arch/vdr4arch

One command and the whole repo is auto-built. I've tried to get the same with their chroot stuff for hours without any success.

I've started a new build. After that I did a manual make V=1 VERBOSE=1

This is the result:

https://paste.ubuntu.com/p/ZRzY7FTYBc/

This time I uninstalled "fmt" again. This is actually what I want to achieve. I don't want the external package.

It also is funny that the build fails long before "ffmpeg" is built but the Kodi build process still proceeds just to fail after some more minutes.
Reply
#13
CMakeCache.txt please. And the cmake output before running make
Reply
#14
Please post the CMakeCache.txt as asked for.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#15
(2018-07-21, 17:22)wsnipex Wrote: CMakeCache.txt please. And the cmake output before running make
This was a full build log: https://paste.ubuntu.com/p/DWx7Bm6YDG/

Also containing the cmake output.

I'll post "CMakeCache.txt" later. I'm still trying something and my build is still running.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 18a2 build fails on Arch Linux. How to fix?0