Bug 572797 - Mac AArch64 root bug
Summary: Mac AArch64 root bug
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.18   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 573309 575696 572696 572697 572795 572817 572844 573238 574855 574931 574932 576766 577055
Blocks:
  Show dependency tree
 
Reported: 2021-04-13 05:06 EDT by Lakshmi P Shanmugam CLA
Modified: 2022-03-21 10:14 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lakshmi P Shanmugam CLA 2021-04-13 05:06:00 EDT
Support for Mac Arm64 was added by Bug 565690.

This is the top level bug to track the issues with the Eclipse and SWT on Mac Arm64.
Comment 1 Dennis Logemann CLA 2021-05-01 13:35:43 EDT
I have successfully installed eclipse on a new Mac mini and it worked fine, could install some plugins and was able to restart eclipse.

But: after restarting the Mac when I try to open eclipse again, I always get an error:  

"The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10826 "kLSNoLaunchPermissionErr: User doesn't have permission to launch the app (managed networks)" UserInfo={_LSFunction=_LSLaunchWithRunningboard, _LSLine=2508, NSUnderlyingError=0x15400af30 {Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x154007090 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed with error: 153}}}}}"

I already tried some tipps from StackExchange, but none of these work for me:
- sudo chown -R 0755 /Applications/Eclipse.app/
- sudo xattr -dr com.apple.quarantine /Applications/Eclipse.app/
- sudo upx -d sudo upx -d /Applications/Eclipse.app/Contents/MacOS/eclipse

This is reproducible for me. I deleted eclipse, reinstalled it (and unfortunately had to reinstall my plugins), but after restarting the computer I get the same error message again.
Comment 2 Dennis Logemann CLA 2021-05-03 02:08:31 EDT
Sorry I did this wrong: I have now filed a separate Bug 573309. Can someone please delete my comment above and link this bug - thanks and please apologize.
Comment 3 Phil Beauvoir CLA 2021-06-02 11:41:45 EDT
Testing RCP product export using Tycho to create aarch64 builds for Mac.

Two plugin folders are created:

org.eclipse.equinox.launcher.cocoa.macosx.aarch64_1.2.200.v20210429-1609
org.eclipse.equinox.launcher.cocoa.macosx_1.2.200.v20210429-1609

They seem to have exactly the same contents. Seems that only the first folder is needed?

Same in Eclipse.app itself.
Comment 4 Sravan Kumar Lakkimsetti CLA 2021-06-08 01:09:10 EDT
(In reply to Phil Beauvoir from comment #3)
> Testing RCP product export using Tycho to create aarch64 builds for Mac.
> 
> Two plugin folders are created:
> 
> org.eclipse.equinox.launcher.cocoa.macosx.aarch64_1.2.200.v20210429-1609
> org.eclipse.equinox.launcher.cocoa.macosx_1.2.200.v20210429-1609
> 
> They seem to have exactly the same contents. Seems that only the first
> folder is needed?
> 
> Same in Eclipse.app itself.

This is a workaround for Bug 570960 - Generate IU of launcher with machine architecture for Mac. You are right in saying only org.eclipse.equinox.launcher.cocoa.macosx.aarch64_1.2.200.v20210429-1609. But the build won't succeed if we don't have both folders.
Comment 6 Phil Beauvoir CLA 2021-10-01 15:40:53 EDT
Pleas add Bug 575696
Comment 7 Gayan Perera CLA 2021-10-09 13:13:55 EDT
Is there a plan to fix this for next release ? Do we have contributors who has access to M1 machines to debug and test fixes ?
Comment 8 Phil Beauvoir CLA 2021-10-13 05:48:02 EDT
Please add https://bugs.eclipse.org/bugs/show_bug.cgi?id=575114
Comment 9 Thomas Singer CLA 2021-10-13 07:36:06 EDT
(In reply to Thomas Singer from comment #5)
> Please add these 2 bugs:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=575259
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=575260

Please add bug 575260. The other one occurs also on x86 systems as I now have found out.
Comment 10 Thomas Singer CLA 2021-10-20 10:12:19 EDT
Please add bug 576766.