Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on a Mac #3331

Closed
vjpr opened this issue Jul 16, 2022 · 7 comments
Closed

Running on a Mac #3331

vjpr opened this issue Jul 16, 2022 · 7 comments

Comments

@vjpr
Copy link

vjpr commented Jul 16, 2022

The readme says:

rr currently requires either...Certain AArch64 microarchitectures (e.g. ARM Neoverse N1 or the Apple Silicon M-series)

It's not clear if there is a way to run on Apple hardware.

It would be great to clarify this, and to provide instructions on running from macOS. Is virtualization possible and how to setup the virtualization.

Related: #3234

Apple Intel with Windows Bootcamp via WSL 2: #2506

Summary

@yuyichao
Copy link
Contributor

It would be great to clarify this, and to provide instructions on running from macOS. Is virtualization possible and how to setup the virtualization.

There's no macOS or much of virtualization involved. It requires linux running on bare metal apple silicon.

We can probably add a link to the Asahi Linux wiki or front page. I don't think any more detailed instruction can/should be included since while it (asahi linux) is already very usable for end users, many details are still in flux and we should not host a potentially out-of-date document of another project.

@vjpr
Copy link
Author

vjpr commented Jul 16, 2022

Does it work on Apple Intel via virtualization?

EDIT: Seems not #2897 (comment)

And should it work on Intel Bootcamp with WSL 2?

@yuyichao
Copy link
Contributor

While those are Mac related questions, they are not related to apple silicon and I do not know the answers.

@khuey
Copy link
Collaborator

khuey commented Jul 16, 2022

Apple hardware is fine, Apple software is not. You'll need to be running Linux on the bare metal or a pre-Big Sur MacOS with a Linux VMWare guest and appropriate VMWare configuration. I don't think anyone has tried Bootcamp and WSL, WSL hasn't worked until quite recently.

@GitMensch
Copy link
Contributor

So ... "close as not planned"?

@rocallahan
Copy link
Collaborator

Yes, not planned.

@baiwfg2
Copy link

baiwfg2 commented Dec 6, 2023

I downloaded rr-5.7.0-Linux-aarch64 and try to run it on ubuntu on mac(M2 chip) qemu with -cpu=host enabled. But it shows:

$ ./rr-5.7.0-Linux-aarch64/bin/rr record ./a.out
[FATAL src/PerfCounters_aarch64.h:134:get_cpuinfo_sysfs()] Failed to read midr register from kernel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants