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

x86_64-linux builder for darwin is slow; no Rosetta #262941

Open
roberth opened this issue Oct 23, 2023 · 2 comments
Open

x86_64-linux builder for darwin is slow; no Rosetta #262941

roberth opened this issue Oct 23, 2023 · 2 comments
Assignees
Labels
6.topic: darwin Running or building packages on Darwin

Comments

@roberth
Copy link
Member

roberth commented Oct 23, 2023

          > I'm concerned that this might lock mac users into a solution with [worse](https://stackoverflow.com/questions/73605175/why-cant-qemu-get-even-close-to-rosetta-2s-performance-when-translating-x86-to) performance, only some people knowing that it's slower than necessary and even fewer people knowing how to fix it.

What I recall from @sandydoo is that Rosetta 2 can run in Apple Virtualization Framework but not QEMU. See virtualisation.rosetta.enable.

What if we could launch UTM instead of qemu? It seems to have gained a CLI recently.

As the linux-builder is ephemeral, my preference would be to merge this despite being slow and leaving it as future work to speed it up which could be done without changing the interface.

Another way we could speed this up in the future is building QEMU with Virtualization support and using Rosetta (currently the patchset isn’t mainlined and don’t yet have the correct entitlements necessary to run Rosetta).

Originally posted by @Enzime in #262021 (comment)

@roberth roberth added the 6.topic: darwin Running or building packages on Darwin label Oct 23, 2023
@arianvp
Copy link
Member

arianvp commented Dec 15, 2023

I've been working on a lightweight CLI for running NixOS VMs using Rosetta and use this actively as my builder:

The blocker for upstreaming is that nixpkgs doesn't have a modern enough MacOS SDK for it to compile.

@roberth
Copy link
Member Author

roberth commented Dec 15, 2023

MacOS SDKs have been a subject of the macOS collective.
Also there's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

3 participants