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

extra/rust: Add fix for Apple M1 #1925

Closed
wants to merge 1 commit into from
Closed

extra/rust: Add fix for Apple M1 #1925

wants to merge 1 commit into from

Conversation

mipimipi
Copy link

@mipimipi mipimipi commented Jun 9, 2022

On Apple M1, the rust package does not build.

This PR sets the page size for jemalloc to 16K (as originally suggested by @marcan). With that fix, the rust package can be built and used on Apple M1. Apart from Apple M1, I tested the fix for "standard" aarch64 and for armv7h successfully.

mipimipi referenced this pull request in AsahiLinux/alarm-PKGBUILDs Jun 9, 2022
jemalloc is broken by default on architectures like aarch64, where the
page size is not a constant (it requires compile-time page size >=
run-time page size). Force it to build for 64K pages, which should work
for all possible ARM systems.
@workingjubilee
Copy link

Hello! This is a current problem that people are encountering in the wild at rapidly increasing frequencies, as it seems Asahi + Arch is a strongly preferred combination.

rust-lang/rust#100180

@kmihelich kmihelich closed this in 19a1393 Aug 8, 2022
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

Successfully merging this pull request may close these issues.

2 participants