Building LE 12.2.1 Fails at busybox

  • I'm trying to build LE 12.2.1. It runs for a few hours and then I get:

    Quote

    FAILURE: scripts/build busybox:init has failed!

    Looking back through the console history, I see that a file is not found.

    It seems that busybox.net came back online just before I pressed 'Submit' on this post.

    It's clear that LibreELEC planned for this contingency in the design of their build system, it just looks like the mirror is not up-to-date on this occasion.

  • UPDATE

    It turned out that busybox.net is still not stable. Even when it was available, by the time I started the LE build process and got through all 83 build steps leading up to busybox, busybox.net was unavailable again.

    During intermittent periods of availability, I managed to manually download the required files.

    I copied those files into the source directory for busybox, but when I rebuilt LE, it just deleted those files and tried to download them from scratch.

    I then hacked the package.mk file to point to file:///path/to/file for the files that I had manually downloaded, but the LE build system did not recognise the 'file:' protocol.

    Next I started a small local http server, copied the files there and updated the package.mk to point to my local http server. Success!

    I hope that this helps anyone in a similar situation.