Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update FLINT to 2.4.1 #15574

Closed
jpflori opened this issue Dec 23, 2013 · 47 comments
Closed

Update FLINT to 2.4.1 #15574

jpflori opened this issue Dec 23, 2013 · 47 comments

Comments

@jpflori
Copy link

jpflori commented Dec 23, 2013

FLINT 2.4.1 has been released:

The update should be quite trivial.

Use git branch and vanilla upstream tarball at:

CC: @defeo

Component: packages: standard

Keywords: flint spkg

Author: Jean-Pierre Flori

Branch/Commit: u/jpflori/ticket/15574 @ 5271eca

Reviewer: François Bissey, Luca De Feo

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

@jpflori jpflori added this to the sage-6.1 milestone Dec 23, 2013
@jpflori

This comment has been minimized.

@jpflori
Copy link
Author

jpflori commented Dec 24, 2013

Commit: 2a2f3c9

@jpflori
Copy link
Author

jpflori commented Dec 24, 2013

Changed keywords from none to flint spkg

@jpflori
Copy link
Author

jpflori commented Dec 24, 2013

Branch: u/jpflori/ticket/15574

@jpflori
Copy link
Author

jpflori commented Dec 24, 2013

comment:2

I jsut updated the tarball and removed patches now upstream.
Everything seems fine (at least on one system).


New commits:

2a2f3c9Update FLINT to version 2.4.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 24, 2013

Changed commit from 2a2f3c9 to 4351893

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 24, 2013

Branch pushed to git repo; I updated commit sha1. New commits:

4351893Update FLINT to version 2.4.

@kiwifb
Copy link
Member

kiwifb commented Jan 2, 2014

comment:4

I haven't tried inside sage yet but I have a failure with the test suite when testing the NTL interface. Does this require ntl-6?

@jpflori
Copy link
Author

jpflori commented Jan 2, 2014

comment:5

I would not say so.
Maybe we just forgot to test the ntl interface when releasing FLINT 2.4, at least I did not.

@kiwifb
Copy link
Member

kiwifb commented Jan 2, 2014

comment:6

It's very bizarre in that it doesn't compile:

mkdir -p build/interfaces/test
if [ "1" -eq "1" ]; then \
	make build/interfaces/test/t-NTL-interface; \
	build/interfaces/test/t-NTL-interface; \
fi
make[1]: Entering directory `/scratch/portage/sci-mathematics/flint-2.4/work/flint-2.4'
x86_64-pc-linux-gnu-g++ -O1 -march=native -pipe -ggdb -DFLINT_CPIMPORT=\"/usr/share/flint/CPimport.txt\" -I/scratch/portage/sci-mathematics/flint-2.4/work/flint-2.4 -I/usr/include -I/usr/include -I/usr/include interfaces/test/t-NTL-interface.cpp build/interfaces/NTL-interface.lo -o build/interfaces/test/t-NTL-interface -L/scratch/portage/sci-mathematics/flint-2.4/work/flint-2.4 -L/usr/lib -L/usr/lib -L/usr/lib -lflint -lpthread -lmpfr -lgmp -lm -lntl ;
interfaces/test/t-NTL-interface.cpp: In function 'int test_ZZ_pE_to_fq()':
interfaces/test/t-NTL-interface.cpp:276:49: error: cannot convert 'fmpz* {aka long int*}' to 'fmpz_mod_poly_struct*' for argument '2' to 'void fq_ctx_init_modulus(fq_ctx_struct*, fmpz_mod_poly_struct*, const char*)'
interfaces/test/t-NTL-interface.cpp: In function 'int test_ZZ_pEX_to_fq_poly()':
interfaces/test/t-NTL-interface.cpp:348:49: error: cannot convert 'fmpz* {aka long int*}' to 'fmpz_mod_poly_struct*' for argument '2' to 'void fq_ctx_init_modulus(fq_ctx_struct*, fmpz_mod_poly_struct*, const char*)'
interfaces/test/t-NTL-interface.cpp: In function 'int test_zz_pE_to_fq()':
interfaces/test/t-NTL-interface.cpp:420:49: error: cannot convert 'fmpz* {aka long int*}' to 'fmpz_mod_poly_struct*' for argument '2' to 'void fq_ctx_init_modulus(fq_ctx_struct*, fmpz_mod_poly_struct*, const char*)'
interfaces/test/t-NTL-interface.cpp: In function 'int test_zz_pEX_to_fq_poly()':
interfaces/test/t-NTL-interface.cpp:490:49: error: cannot convert 'fmpz* {aka long int*}' to 'fmpz_mod_poly_struct*' for argument '2' to 'void fq_ctx_init_modulus(fq_ctx_struct*, fmpz_mod_poly_struct*, const char*)'
make[1]: *** [build/interfaces/test/t-NTL-interface] Error 1

flint 2.3 doesn't have this problem at all.

@jpflori
Copy link
Author

jpflori commented Jan 2, 2014

comment:7

Yup, it's failing in newly introduced tests.
Easy enough to fix, I'll post a patch quickly.
Note that the lib should be fine.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 2, 2014

Changed commit from 4351893 to 7b825e7

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 2, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

7b825e7Fix NTL interface tests. Reported by Francois Bissey.

@jpflori
Copy link
Author

jpflori commented Jan 2, 2014

comment:9

Should be ok now.

@kiwifb
Copy link
Member

kiwifb commented Jan 2, 2014

comment:10

I cannot find a patch in that commit. Also since it is really an upstream issue, has it been reported and is there a ticket or commit to reference?

@jpflori
Copy link
Author

jpflori commented Jan 2, 2014

comment:11

Oops, I forgot to "git add" the patch.
And yes it will be included into 2.4.1 which should be out shortly, in fct waiting for the last report from Sage.
See flintlib/flint#40.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 2, 2014

Changed commit from 7b825e7 to d9321c9

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 2, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

d9321c9Actually add NTL patch.

@kiwifb
Copy link
Member

kiwifb commented Jan 2, 2014

comment:13

Thanks will test it once I have a few minutes.

@kiwifb
Copy link
Member

kiwifb commented Jan 2, 2014

comment:14

As noted on github it solved my problems. I am ok with the state of the spkg. Are we waiting for 2.4.1 or should we just go ahead with this?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 3, 2014

Changed commit from d9321c9 to 4d35dc3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 3, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

4d35dc3Update FLINT to version 2.4.1.

@jpflori
Copy link
Author

jpflori commented Jan 3, 2014

Reviewer: François Bissey

@jpflori
Copy link
Author

jpflori commented Jan 3, 2014

Author: Jean-Pierre Flori

@jpflori

This comment has been minimized.

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@jpflori
Copy link
Author

jpflori commented Jan 31, 2014

comment:24

Anybody cares?
The change here is more than trivial...

@defeo
Copy link
Member

defeo commented Jan 31, 2014

Changed reviewer from François Bissey to François Bissey, Luca De Feo

@defeo
Copy link
Member

defeo commented Jan 31, 2014

comment:25

Oups, forgot about this. For such a small change, you could have left it as positive review.

@kiwifb
Copy link
Member

kiwifb commented Jan 31, 2014

comment:26

Really sorry too. I escaped my radar completely.

@vbraun
Copy link
Member

vbraun commented Feb 2, 2014

@jpflori
Copy link
Author

jpflori commented Feb 3, 2014

comment:28

Well spotted and easy enough to fix.
In Makefile.in, line 181 lacks quotes:

$(AT)if [ ! -z $(EXT_HEADERS) ]; then \

I'll report upstream and open a follow up ticket.

@vbraun
Copy link
Member

vbraun commented Feb 3, 2014

comment:29

you can fix it here as we won't merge this ticket if it doesn't work...

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 3, 2014

Changed commit from 61fc38c to cdabf08

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 3, 2014

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:

cdabf08Fix test for empty string in FLINT build system.

@jpflori
Copy link
Author

jpflori commented Feb 3, 2014

comment:31

Fixed here, and patch pushed upstream.

@vbraun
Copy link
Member

vbraun commented Feb 3, 2014

comment:32

looks good to me

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 3, 2014

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:

4351893Update FLINT to version 2.4.
7b825e7Fix NTL interface tests. Reported by Francois Bissey.
d9321c9Actually add NTL patch.
4d35dc3Update FLINT to version 2.4.1.
61fc38cUpdate flint tarball checksums for recompressed 2.4.1.
5271ecaFix test for empty string in FLINT build system.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 3, 2014

Changed commit from cdabf08 to 5271eca

@jpflori
Copy link
Author

jpflori commented Feb 3, 2014

comment:34

Some space/tabs copy-paste troubles...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants