Building LO from source on macos 11.x apple silicon

Hi,

Trying to build LibreOffice from source code (7.1.0.3) on MacOS on an m1 apple mac mini.

Following the steps here https://wiki.documentfoundation.org/Development/lode

I get to “./setup” and get the below error.

Prereqs:
MacOS version: MacOS Big Sur 11.2.1
Xcode 12.4

Error:
Cloning into bare repository ‘core.git’… remote: Counting objects: 2616407, done remote: Finding sources: 100% (2615246/2615246) error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed Error Cloning mirror /Users/PATH/TO/LO_src/lode/mirrors/core.git

increasing git buffer did not work:
git config http.postBuffer 524288000

Try cloning from GitHub - it is much faster, and that could help if the issue is because of some time-out. Note that that is a read-only mirror, so to submit your changes, you would need to edit the origin URL in the config.

thanks will try that

Did you manage to compile an apple silicon build? I was trying to compile it myself but I have a bad internet. And LODE seems to redownload build dependencies every ./setup so it takes a long time.

Surprisingly after about 20+ hours of downloading dependencies opt/bin/make runs only about an hour I think. The Apple Silicon build successfully compiles but I accidentally compiled the 7.2 upstream version not the 7.1.x one. But at least I got an apple silicon build without paying haha