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

Starting a vz with Rosetta does not work on macOS13 (the binary was built with __MAC_OS_X_VERSION_MAX_ALLOWED=130300; needs recompilation) #3160

Open
nonononoka opened this issue Jan 27, 2025 · 2 comments

Comments

@nonononoka
Copy link

nonononoka commented Jan 27, 2025

Description

I think lima built on macOS13 has a bug.

Expectation

It should start the VM with Rosetta enabled without any warning or error

Current state

Unable to configure Rosetta: failed to create a new rosetta directory share caching option: unsupported build target macOS version for 14.0 (the binary was built with __MAC_OS_X_VERSION_MAX_ALLOWED=130300; needs recompilation)

I looked into the code which emits the error.
Maybe the cause is that vz is included when OS is 13 or newer, however NewLinuxRosettaAbstractSocketCachingOptions works only on macOS 14 and newer.

So, I think the above error occurs on macOS13.

Could anyone look into the problem and fix it?

@AkihiroSuda AkihiroSuda changed the title Starting a vz with Rosetta does not work on macOS13 Starting a vz with Rosetta does not work on macOS13 (the binary was built with __MAC_OS_X_VERSION_MAX_ALLOWED=130300; needs recompilation) Jan 28, 2025
@AkihiroSuda
Copy link
Member

Can you try recompilation? (make && sudo make install)

@nonononoka
Copy link
Author

nonononoka commented Jan 28, 2025

Thank you for your reply.
Yes, it's working now because I updated OS to 15.
I'm just curious about the cause of this error.

I think the cause is vz is included when OS is 13 or newer, however NewLinuxRosettaAbstractSocketCachingOptions works only on macOS 14 and newer. is it correct?

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

No branches or pull requests

2 participants