Skip to content

build: upgrade gmp to 6.3.0#735

Merged
pkova merged 7 commits intodevelopfrom
pkova/gmp-6.3
Oct 17, 2024
Merged

build: upgrade gmp to 6.3.0#735
pkova merged 7 commits intodevelopfrom
pkova/gmp-6.3

Conversation

@pkova
Copy link
Copy Markdown
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
@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