SuiteSparse
SuiteSparse copied to clipboard
SuiteSparse compilation error
On a Rocky8 system, gcc 8.5.0 with LAPACK 3.10.1, the compile goes to 100% and then at the end gives:
ranlib libsliplu.a
SLIP_gmp.o: In function SLIP_mpfr_get_q': SLIP_gmp.c:(.text+0x28bc): undefined reference to
mpfr_get_q'
collect2: error: ld returned 1 exit status
SLIP_LU requires MPFR v4.0. You must have an older mpfr library
On Thu, Jun 30, 2022 at 11:17 AM susanchacko @.***> wrote:
On a Rocky8 system, gcc 8.5.0 with LAPACK 3.10.1, the compile goes to 100% and then at the end gives:
ranlib libsliplu.a SLIP_gmp.o: In function SLIP_mpfr_get_q': SLIP_gmp.c:(.text+0x28bc): undefined reference to mpfr_get_q' collect2: error: ld returned 1 exit status
— Reply to this email directly, view it on GitHub https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/132, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYIIONHG55IVTVRYN5UOBDVRXCDLANCNFSM52J5RUWQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Sent from Gmail Mobile
We have MPFR v4.1.6 -- does SuiteSparse require specifically v4.0.*?
it appears that the MPFR libraries have an unusual versioning: mpfr-3.1.6-1.el8.x86_64 produces libmpfr.so.4.1.6, and https://www.mpfr.org/mpfr-4.0.2/ produces libmpfr.so.6.0.2. Rebuilding SuiteSparse with mpfr-4.0.2 (libmpfr.so.6.0.2) worked. Thanks for putting me on the right track