Bug 150279

Summary: Libre office 7.2.7 will not install on Macbook Air M2
Product: LibreOffice Reporter: bob.belmarroofing
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ilmari.lauhakangas, vsfoote
Priority: medium    
Version: unspecified   
Hardware: All   
OS: macOS (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description bob.belmarroofing 2022-08-05 23:31:14 UTC
Hello,

I recently purchased a MacBook Air M2.
I downloaded the 7.2.7 several times. It will simply not install
(I used a previous version on my older MacBook Air, no problem.
Comment 1 V Stuart Foote 2022-08-06 06:17:32 UTC
7.2.7 is rather dated. Current is 7.3.5.2, though 7.4.0 is in the gate.

Also, you'll need to select the aarch64 build for your Silicon M2; the Intel builds won't install.

Let us know if still issues with 7.3.5.2 ARM build on your M2 MacBook Air.

TDF project builds are available here:
http://downloadarchive.documentfoundation.org/libreoffice/old/
Comment 2 Julien Nabet 2022-08-06 11:22:21 UTC
(In reply to V Stuart Foote from comment #1)
> 7.2.7 is rather dated. Current is 7.3.5.2, though 7.4.0 is in the gate.
> 
> Also, you'll need to select the aarch64 build for your Silicon M2; the Intel
> builds won't install.
> ...
Even if it's better to use aarch64 build on M1/M2, I thought there was some internal application in macOS machine with M1/M2 so x86-64 applications could run.

As always, considering https://bugs.documentfoundation.org/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=NEEDINFO&list_id=1485939&op_sys=macOS%20%28All%29&product=LibreOffice&query_format=advanced, it seems we really need macOS dev experts to tackle macOS specific bugs (Carbon->Cocoa conversion, security policy/packaging/signature and now M1/M2 arrival).
(So bad TDF fundation doesn't put more money on it)
Comment 3 bob.belmarroofing 2022-08-07 15:00:18 UTC Comment hidden (obsolete)
Comment 4 bob.belmarroofing 2022-08-07 15:00:51 UTC Comment hidden (obsolete)
Comment 5 V Stuart Foote 2022-08-07 17:11:13 UTC
(In reply to bob.belmarroofing from comment #4)
> Is there a tutorial on doing a "aarch64 build?
> I am not a software programmer and this is kind of "greek to me". I go to
> the link provided but I am at a loss as to what to do next.
> 

You don't need to unless you have an interest to "roll your own". Guide is here:

https://wiki.documentfoundation.org/Development/BuildingOnMac

@Ilmari, anything to add?

> I did download the 7.3.5 which appears as the latest on Libreoffice.

That is fine, but advantageous to be on the 7.4 or master branch, especially with Silicon M2 as issue are more likely to be corrected in those than in the current "fresh" 7.3 release.

The link provided in comment 1 will get you to project built releases. 7.4.0.2 is in pre-release but is available to use (and has most recent adjustments for macOS). Install the .dmg packages as any normal program, should not have any signature issues.

Needinfo is still to you to expound on status of your install onto macOS on Silicon M2--either the ARM build aarch64, or the x86 based x86_64 that would make use of Rosetta2 emulation.
Comment 6 Buovjaga 2022-08-07 17:29:04 UTC
(In reply to V Stuart Foote from comment #5)
> (In reply to bob.belmarroofing from comment #4)
> > Is there a tutorial on doing a "aarch64 build?
> > I am not a software programmer and this is kind of "greek to me". I go to
> > the link provided but I am at a loss as to what to do next.
> > 
> 
> You don't need to unless you have an interest to "roll your own". Guide is
> here:
> 
> https://wiki.documentfoundation.org/Development/BuildingOnMac
> 
> @Ilmari, anything to add?

Nothing to add, it should just work per the LODE method.
Comment 7 bob.belmarroofing 2022-08-07 17:31:32 UTC
I downloaded the 7.4.0.2 as instructed.

It works!!!

Thank you for all your support.  Donation coming
Comment 8 V Stuart Foote 2022-08-07 17:54:56 UTC
Great, but now check your Java configuration. Beleive you will need a JDK built for aarm64 to go with the TDF built aarm64 LibreOffice. Maybe Java 17 flavor of adoptium's Temurin [1] or Microsoft's Azul Zulu [2]

Done from LO's Tools -> Options -> Advanced in the 'Java Options' section of the panel. Checkbox to enable Java runtime, and listbox to select which ever JRE/JDK are visible to LO.

You'll need the JRE for a few elements of LO still, and for running some of the extensions, e.g. LanguageTool


=-ref-=
[1] https://adoptium.net/temurin/releases/?version=17
[2] https://www.azul.com/downloads/?os=macos&architecture=arm-64-bit&package=jdk#download-openjdk
Comment 9 Alex Thurgood 2022-08-23 14:28:09 UTC
(In reply to V Stuart Foote from comment #8)
> Great, but now check your Java configuration. Beleive you will need a JDK
> built for aarm64 to go with the TDF built aarm64 LibreOffice. Maybe Java 17
> flavor of adoptium's Temurin [1] or Microsoft's Azul Zulu [2]
> 

Temurin aarch64 JDK (18.0.1) works for me on Apple M1 with LO aarch64 7.3.5.2.