I can confirm reverting: https://cgit.freedesktop.org/libreoffice/core/commit/?id=8b8fb4ac Fixes this issue, allowing the build to succeed.