#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 (i.e. the package's installation also
> currently 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
> *************************************************
> make[2]: Entering directory `/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/spkg/build/flint-1.5.0.p5/src'
> make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent
> make rule.
> gcc -std=c99 -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include/ -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include -fPIC -funroll-loops -O2 -c F_mpz-test.c -o
> F_mpz-test.o
> gcc -std=c99 -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include/ -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include -fPIC -funroll-loops -O2 -c test-support.c -o
> test-support.o
> g++ -I/home/sage/sage-4.6.prealpha3-with-mpir-2.1.1/local/include/
> -I/home/sage/sage-4.6.prealpha3-with-mpir-2.1.1/local/include -fPIC
> -funroll-loops -O2 F_mpz-test.o test-support.o -o F_mpz-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/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/lib/ -L/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/lib/ -lgmp -lpthread -lntl -lm
> gcc -std=c99 -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include/ -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include -fPIC -funroll-loops -O2 -c mpn_extras-test.c
> -o mpn_extras-test.o
> g++ -I/home/sage/sage-4.6.prealpha3-with-mpir-2.1.1/local/include/
> -I/home/sage/sage-4.6.prealpha3-with-mpir-2.1.1/local/include -fPIC
> -funroll-loops -O2 mpn_extras-test.o test-support.o -o mpn_extras-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/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/lib/ -L/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/lib/ -lgmp -lpthread -lntl -lm
> gcc -std=c99 -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include/ -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include -fPIC -funroll-loops -O2 -c fmpz_poly-test.c
> -o fmpz_poly-test.o
> g++ -I/home/sage/sage-4.6.prealpha3-with-mpir-2.1.1/local/include/
> -I/home/sage/sage-4.6.prealpha3-with-mpir-2.1.1/local/include -fPIC
> -funroll-loops -O2 fmpz_poly-test.o test-support.o -o fmpz_poly-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/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/lib/ -L/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/lib/ -lgmp -lpthread -lntl -lm
> gcc -std=c99 -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include/ -I/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/include -fPIC -funroll-loops -O2 -c fmpz-test.c -o
> fmpz-test.o
> fmpz-test.c: In function 'test___fmpz_normalise':
> fmpz-test.c:1379: warning: implicit declaration of function 'mpz_random'
> g++ -I/home/sage/sage-4.6.prealpha3-with-mpir-2.1.1/local/include/
> -I/home/sage/sage-4.6.prealpha3-with-mpir-2.1.1/local/include -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/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/lib/ -L/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/local/lib/ -lgmp -lpthread -lntl -lm
> fmpz-test.o: In function `test___fmpz_normalise':
> fmpz-test.c:(.text+0x26a6): undefined reference to `mpz_random'
> collect2: ld returned 1 exit status
> make[2]: *** [fmpz-test] Error 1
> make[2]: Leaving directory `/home/sage/sage-4.6.prealpha3-with-
> mpir-2.1.1/spkg/build/flint-1.5.0.p5/src'
> 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
> ...
> }}}
>
> (This is actually Sage 4.6.prealpha3 with MPIR 2.1.'''2''' and [GMP-]ECM
> 6.3, see #9343/[http://wiki.sagemath.org/NewPARI NewPARI wiki page],
> #8664 and #5847, respectively.)
>
> I guess Bill has already fixed that in FLINT 1.5.2, which was released a
> month 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).
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 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?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9858#comment:10>
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.