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

build: upgrade gmp to 6.3.0 #735

Merged
merged 7 commits into from
Oct 17, 2024
Merged

build: upgrade gmp to 6.3.0 #735

merged 7 commits into from
Oct 17, 2024

Conversation

pkova
Copy link
Collaborator

@pkova pkova commented Oct 17, 2024

The advent of the zig build system on edge introduced a bug on macos-aarch64 and possibly linux-aarch64 as well. This bug presented as random loom corruption after heavy workloads such as booting from a pill or recompiling arvo several times. The root cause ended up being buggy assembly in GMP 6.2.1. We had disabled assembly altogether for macos-aarch64 in Bazel:

# See https://gmplib.org/list-archives/gmp-bugs/2023-January/005228.html.
"@//:macos_aarch64": ["--disable-assembly"],

The buggy assembly can be reproduced in isolation by downloading GMP 6.2.1 on a macos-aarch64 machine, running ./configure --disable-share --with-pic, and then running make check and looking at all the failing tests. This issue has been fixed in 6.3.0 and the random loom corruption does not happen with these changes.

cc @ripperi

@pkova pkova requested a review from a team as a code owner October 17, 2024 14:07
@pkova pkova merged commit a537c85 into develop Oct 17, 2024
2 checks passed
@pkova pkova deleted the pkova/gmp-6.3 branch October 17, 2024 14:43
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