Skip to content

Optional package deformation fails to build: mpir.h not found #30325

@mkoeppe

Description

@mkoeppe

On homebrew-macos-maximal (https://github.com/mkoeppe/sage/runs/959683064) - which uses gmp from the system, not mpir...

 [deformation-d05941b.p0] error installing, exit status 1. End of log file:
  [deformation-d05941b.p0]   /Users/runner/work/sage/sage/.tox/local-homebrew-macos-maximal/local/var/tmp/sage/build/deformation-d05941b.p0/src/generics.h:12:10: fatal error: 'mpir.h' file not found
  [deformation-d05941b.p0]   #include <mpir.h>
  [deformation-d05941b.p0]            ^~~~~~~~
  [deformation-d05941b.p0]   In file included from zero.c:1:
  [deformation-d05941b.p0]   In file included from /Users/runner/work/sage/sage/.tox/local-homebrew-macos-maximal/local/var/tmp/sage/build/deformation-d05941b.p0/src/vec.h:8:
  [deformation-d05941b.p0]   /Users/runner/work/sage/sage/.tox/local-homebrew-macos-maximal/local/var/tmp/sage/build/deformation-d05941b.p0/src/generics.h:12:10: fatal error: 'mpir.h' file not found

Is this package still maintained?

Also on debian-bullseye:

 [deformation-d05941b.p0]       CC   ../build/perm/../perm.lo
  [deformation-d05941b.p0]   /usr/bin/ld: -r and -pie may not be used together
  [deformation-d05941b.p0]   collect2: error: ld returned 1 exit status

a straightforward modification of using GMP in place MPIR seems to work just fine, at least on 64-bit linux. Please review.

Depends on #31525

CC: @jpflori @videlec @kiwifb @slel @sagetrac-spancratz

Component: packages: experimental

Work Issues: fix C code on clang

Author: Matthias Koeppe, Dima Pasechnik

Branch/Commit: 44b1d0a

Reviewer: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/30325

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions