SuiteSparse icon indicating copy to clipboard operation
SuiteSparse copied to clipboard

SuiteSparse compilation error

Open susanchacko opened this issue 2 years ago • 3 comments

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

susanchacko avatar Jun 30 '22 16:06 susanchacko

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

DrTimothyAldenDavis avatar Jun 30 '22 17:06 DrTimothyAldenDavis

We have MPFR v4.1.6 -- does SuiteSparse require specifically v4.0.*?

susanchacko avatar Jul 01 '22 14:07 susanchacko

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

susanchacko avatar Jul 01 '22 16:07 susanchacko