#9858: FLINT 1.5.0.p5's test suite fails to build with new GMP/MPIR
------------------------+---------------------------------------------------
Reporter: leif | Owner: leif
Type: defect | Status: new
Priority: blocker | Milestone: sage-4.7.2
Component: packages | Keywords: SAGE_CHECK mpz_random
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Old description:
> Due to the use of deprecated/obsolete GMP functions, the test suite of
> flint-1.5.0.p5 fails to build since merging the new MPIR 2.1.3 (#8664).
> This means that the package's installation fails if
> {{{SAGE_CHECK=yes}}}):
>
> {{{
> Successfully installed flint-1.5.0.p5
> Running the test suite.
> *************************************************
> Running test suite. This should take 6-20 minutes
> Please report all failures to sage-devel
> *************************************************
> gcc -std=c99
> -I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include/
> -I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baselin
> e/local/include -mtune=opteron -march=opteron -fPIC -funroll-loops -O2
> -c F_mpz-test.c -o F_mpz-test.o
> [...]
> gcc -std=c99
> -I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include/
> -I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include
> -mtune=opteron -march=opteron -fPIC -funroll-loops -O2 -c fmpz-test.c -o
> fmpz-test.o
> fmpz-test.c: In function âtest___fmpz_normaliseâ:
> fmpz-test.c:1379:8: warning: implicit declaration of function
> âmpz_randomâ
> g++
> -I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include/
> -I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include
> -mtune=opteron -march=opteron -fPIC -funroll-loops -O2 fmpz-test.o test-
> support.o -o fmpz-test zn_mod.o misc.o mul_ks.o pack.o mul.o mulmid.o
> mulmid_ks.o ks_support.o mpn_mulmid.o nuss.o pmf.o pmfvec_fft.o tuning.o
> mul_fft.o mul_fft_dft.o array.o invert.o mpn_extras.o mpz_extras.o
> memory-manager.o ZmodF.o ZmodF_mul.o ZmodF_mul-tuning.o fmpz.o
> fmpz_poly.o mpz_poly-tuning.o mpz_poly.o ZmodF_poly.o long_extras.o
> zmod_poly.o theta.o zmod_mat.o F_mpz.o tinyQS.o factor_base.o poly.o
> sieve.o linear_algebra.o block_lanczos.o NTL-interface.o
> -L/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/lib/
> -L/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/lib/ -lgmp
> -lpthread -lntl -lm
> fmpz-test.o: In function `test___fmpz_normalise':
> fmpz-test.c:(.text+0x368d): undefined reference to `mpz_random'
> collect2: ld returned 1 exit status
> make: *** [fmpz-test] Error 1
> Error building the test suite for FLINT
> *************************************
> Error testing package ** flint-1.5.0.p5 **
> *************************************
> sage: An error occurred while testing flint-1.5.0.p5
> }}}
>
> I guess Bill has already fixed that in FLINT 1.5.2, which was released
> over a year ago. So simply updating the spkg might suffice.
>
> Btw, at least the current FLINT in Sage ignores user-provided
> {{{CFLAGS}}}; one could perhaps "move" them into some other environment
> variable used by FLINT.
>
> ----
>
> Upstream: http://www.flintlib.org/
New description:
Due to the use of deprecated/obsolete GMP functions, the test suite of
flint-1.5.0.p5 fails to build since merging the new MPIR 2.1.3 (#8664), or
if one uses any other recent version of MPIR or GMP. This means that the
package's installation fails if {{{SAGE_CHECK=yes}}}:
{{{
Successfully installed flint-1.5.0.p5
Running the test suite.
*************************************************
Running test suite. This should take 6-20 minutes
Please report all failures to sage-devel
*************************************************
gcc -std=c99
-I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include/
-I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baselin
e/local/include -mtune=opteron -march=opteron -fPIC -funroll-loops -O2 -c
F_mpz-test.c -o F_mpz-test.o
[...]
gcc -std=c99
-I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include/
-I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include
-mtune=opteron -march=opteron -fPIC -funroll-loops -O2 -c fmpz-test.c -o
fmpz-test.o
fmpz-test.c: In function âtest___fmpz_normaliseâ:
fmpz-test.c:1379:8: warning: implicit declaration of function âmpz_randomâ
g++
-I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include/
-I/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/include
-mtune=opteron -march=opteron -fPIC -funroll-loops -O2 fmpz-test.o test-
support.o -o fmpz-test zn_mod.o misc.o mul_ks.o pack.o mul.o mulmid.o
mulmid_ks.o ks_support.o mpn_mulmid.o nuss.o pmf.o pmfvec_fft.o tuning.o
mul_fft.o mul_fft_dft.o array.o invert.o mpn_extras.o mpz_extras.o memory-
manager.o ZmodF.o ZmodF_mul.o ZmodF_mul-tuning.o fmpz.o fmpz_poly.o
mpz_poly-tuning.o mpz_poly.o ZmodF_poly.o long_extras.o zmod_poly.o
theta.o zmod_mat.o F_mpz.o tinyQS.o factor_base.o poly.o sieve.o
linear_algebra.o block_lanczos.o NTL-interface.o
-L/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/lib/
-L/mnt/usb1/scratch/jdemeyer/sage-4.7.2.alpha3-baseline/local/lib/ -lgmp
-lpthread -lntl -lm
fmpz-test.o: In function `test___fmpz_normalise':
fmpz-test.c:(.text+0x368d): undefined reference to `mpz_random'
collect2: ld returned 1 exit status
make: *** [fmpz-test] Error 1
Error building the test suite for FLINT
*************************************
Error testing package ** flint-1.5.0.p5 **
*************************************
sage: An error occurred while testing flint-1.5.0.p5
}}}
I guess Bill has already fixed that in FLINT 1.5.2, which was released
over a year ago. So simply updating the spkg might suffice.
Btw, at least the current FLINT in Sage ignores user-provided
{{{CFLAGS}}}; one could perhaps "move" them into some other environment
variable used by FLINT.
----
Upstream: http://www.flintlib.org/
--
Comment(by leif):
Replying to [comment:10 jdemeyer]:
> What are the plans for this ticket? Upgrading to FLINT 1.5.2?
Upgrading to FLINT 1.6? Upgrading to FLINT 2.x? Fixing more odds and
ends in the FLINT spkg?
Upgrading to FLINT 1.5.2, which fixes the original issue and a few other
bugs in FLINT 1.5.0.
More precisely, rebasing the FLINT 1.5.2 spkg I already have (which also
includes a couple of fixes to Sage's part) on the changes that were made
to the 1.5.0 spkg in Sage since the p5.
Upgrading to FLINT 1.6 shouldn't hurt, but would now be better done on a
follow-up ticket.
As Bill meanwhile also disclosed on sage-release, they're working hard on
a FLINT 2.x (planned as a Christmas present) that implements all features
that Sage requires, since the current one doesn't yet provide all we need.
(FLINT 2 is a complete rewrite of FLINT 1). So upgrading to that is not
an option at the moment.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9858#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.