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

osx-arm64 needs to be built from source #13

Open
1 task done
msarahan opened this issue Aug 10, 2022 · 4 comments
Open
1 task done

osx-arm64 needs to be built from source #13

msarahan opened this issue Aug 10, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@msarahan
Copy link
Member

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

I gave up on cross-compiling in #10 and used a binary repack. It would be better to build from source somehow - either fix the cross-compiling or build on native Apple Silicon if/when it is available.

Installed packages

not relevant

Environment info

not relevant
@msarahan msarahan added the bug Something isn't working label Aug 10, 2022
@msarahan
Copy link
Member Author

linux-aarch64 added in #49

@mdekstrand
Copy link
Contributor

linux-aarch64 cross-compile added in #68 so we can actually publish packages (since Travis keeps tipping over).

This does require disabling V8 snapshotting, which doesn't work in a cross-build (although there is a modified version of Cargo that can turn it back on, at least for Linux targets). This comes with a small performance hit at startup (imperceptible in my tests).

@mdekstrand
Copy link
Contributor

mdekstrand commented Jan 5, 2024

Cross-building is even harder than it looks — the initial cross-build produced binaries with a couple of problems in the build architecture baked in to the binary.

I fixed this in #82, but it won't work on OSX. Deno really doesn't support cross-compilation, and I'm pretty sure the cargo-cross-build hack won't work on OSX since Rosetta only translates x86_64 to ARM, not the other way around. denoland/deno#13948 and comments document some of the things needed to support cross-compilation.

@mdekstrand
Copy link
Contributor

I've opened another issue (denoland/deno#27496) on cross-compilation support for Deno, which will help the linux-aarch64 situation but still not osx-arm64. I think the bet there is to wait until Conda-Forge supports native Apple Silicon build runners (I think they are in experimental support, I have seen some feedstocks using Github Actions for builds, but it is not officially supported).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants