Building gmp-mpfr-sys fails on Arch because of "long long reliability test"

โš“ rust    ๐Ÿ“… 2025-05-24    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 3      

surdeus

Warning

This post was published 36 days ago. The information described in this article may have changed.

I'm using the crate rug, which uses gmp-mpfr-sys. When doing cargo check with my project, I get the error

  checking build system type... zen3-pc-linux-gnu
  checking host system type... zen3-pc-linux-gnu
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
  checking for gawk... gawk
  checking whether make sets $(MAKE)... yes
  checking whether make supports nested variables... yes
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking ABI=64
  checking compiler gcc -O2 -pedantic -fomit-frame-pointer -m64 ... no, long long reliability test 1
  checking whether cc is gcc... yes
  checking compiler cc -O2 -pedantic -fomit-frame-pointer -m64 ... no, long long reliability test 1
  checking ABI=x32
  checking compiler gcc -O2 -pedantic -fomit-frame-pointer -mx32 ... no
  checking whether cc is gcc... yes
  checking compiler cc -O2 -pedantic -fomit-frame-pointer -mx32 ... no
  checking ABI=32
  checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no, long long reliability test 1
  checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no, long long reliability test 1
  checking compiler icc -no-gcc ... no
  checking whether cc is gcc... yes
  checking compiler cc -m32 -O2 -pedantic -fomit-frame-pointer ... no, long long reliability test 1
  checking compiler cc -O2 -pedantic -fomit-frame-pointer ... no, long long reliability test 1

while building gmp-mpfr-sys. A pure C project that uses gmp compiles successfully.

How do I fix this? gcc and clang are installed.

Relevant seems Fix building with GCC 15 by c2h5oh ยท Pull Request #9643 ยท SoftFever/OrcaSlicer ยท GitHub Does that mean that I just have to wait for an updated gcc?

1 post - 1 participant

Read full topic

๐Ÿท๏ธ rust_feed