as building LibreOffice Online is nothing ownCloud specific i’m moving this to the Miscellaneous category. You might want to reach out the LibreOffice community for help with building their software. As an alternative just use the docker image provided by Collabora which should work out of the box.
I had also linked a build instruction in the following tutorial, maybe they are working for you: