Compilation FAILS with Docker in LibreELEC

  • I've been making my LibreELEC 11 for RPI4 testing compilations using a Ubuntu VM in Windows.

    Have also successfully compiled in Ubuntu for Raspberry Pi - takes hours .... but it compiles 😁


    New test:

    Inside LibreELEC.

    Pulled an Ubuntu docker image into LibreELEC

    prepared the compilation environment, created a specific user in the docker container (libreelec does not compile as root)

    As usual, started compilation with:

    PROJECT=RPi DEVICE=RPi4 ARCH=arm make image


    But is stops with error:

    crypto/aes/aesv8-armx.S:4: Error: unknown architecture `armv8-a+crypto'


    Any suggestions to turn-around this ?


    Thanks

  • https://wiki.libreelec.tv/development-1/building-windows-wsl

    works and is similar fast compared to native building

    That's great !

    Thanks' I will definitively try it.


    Anyway it would be great to use the RPi I have with LE.

    Afterall I have it turned on 24/7 and available most of the time.

    I usually compile overnight (But I need to insert the SD with UBUNTU).

    The ability to compile inside a docker container running inside LE itself would be fantastic.

    Is there a way of solving the error I get in the container ?

    crypto/aes/aesv8-armx.S:4: Error: unknown architecture `armv8-a+crypto'

    Thank you very much

  • I've made some new tests with debian buster image in a docker container running within libreelec RPI.

    followed instructions from libreelec github:

    LibreELEC.tv/tools/docker at master · LibreELEC/LibreELEC.tv
    Just enough OS for KODI. Contribute to LibreELEC/LibreELEC.tv development by creating an account on GitHub.
    github.com

    but the same:

    Error: unknown architecture `armv8-a+crypto'


    It seems that libelec project forces:

    FLOAT: hard


    But docker container is running with software float.

    Is it possible to force the compilation with FLOAT: soft ?

    or any trick in "docker run" to allow FLOAT_hard within running containers ?


    thanks