Unable to compile Libreelec or addons

  • I am trying to learn how to compile libreelec and so I am following the guide on the wiki.

    I started trying the download tool:

    Code
    PROJECT=Generic ARCH=x86_64 tools/download-tool

    but it kept giving me this error:

    Code
    Cant't get opengl-meson sources : http://sources.libreelec.tv/devel/opengl-meson-0.0invalid.tar.xz

    So I ran the command:

    Code
    PROJECT=Generic ARCH=x86_64 make image

    and then it ran for ages doing lots of stuff until eventually I got this:

    I have also tried just compiling an addon:

    Code
    PROJECT=Generic ARCH=x86_64 scripts/create_addon network-tools

    but after a load of compiling I get a load of errors like this:

    Code
    FAILURE: gcc:host.build.failed exists, a previous dependency process has failed (seq: 25)

    Have I missed some crucial step?