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

spkg-configure.m4 for flint #27264

Closed
dimpase opened this issue Feb 12, 2019 · 27 comments
Closed

spkg-configure.m4 for flint #27264

dimpase opened this issue Feb 12, 2019 · 27 comments

Comments

@dimpase
Copy link
Member

dimpase commented Feb 12, 2019

Flint on Sage is linked with NTL, and this can be checked by testing for presence of
fmpz_poly_get_ZZX there. So, this:

SAGE_SPKG_CONFIGURE([flint], [
    AC_CHECK_HEADER(flint/flint.h, [], [sage_spkg_install_flint=yes])
dnl fmpz_mat_is_hadamard appears in Flint 2.5.0
    AC_SEARCH_LIBS([fmpz_mat_is_hadamard], [flint], [], [sage_spkg_install_flint=yes])
    AC_SEARCH_LIBS([fmpz_poly_get_ZZX], [flint], [break], [sage_spkg_install_flint=yes])
])

CC: @embray

Component: build

Author: Dima Pasechnik

Branch/Commit: u/dimpase/packages/flintconfig @ 8fc4fb6

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

@dimpase dimpase added this to the sage-8.7 milestone Feb 12, 2019
@embray
Copy link
Contributor

embray commented Feb 12, 2019

comment:1

Do you want to go ahead and add a branch? Obviously, it seems fine to me at first glance.

@dimpase
Copy link
Member Author

dimpase commented Feb 12, 2019

comment:2

Yes, but need to do #27265 (NTL) first

@dimpase
Copy link
Member Author

dimpase commented Feb 12, 2019

Dependencies: #27265

@dimpase
Copy link
Member Author

dimpase commented Mar 21, 2019

Commit: 82772d7

@dimpase
Copy link
Member Author

dimpase commented Mar 21, 2019

Branch: u/dimpase/packages/flintconfig

@dimpase
Copy link
Member Author

dimpase commented Mar 21, 2019

Changed dependencies from #27265 to #27265, #27212

@dimpase
Copy link
Member Author

dimpase commented Mar 21, 2019

Last 10 new commits:

af9ab90deal with --with-ntl, proper version check
5e1a30bspkg-configure for mpfr, adjustments for its dependees
18fbf7badd SAGE_CONFIGURE_MPFR, fix sage-env-config.in
50aebabimplement --with-mpfr=system/install
0fc433fupdate for Sage 8.7.rc0, a typo fix
38427e1spkg-configure for mpc, adjustments for its dependees
ec32471Merge branch 'u/dimpase/packages/mpc-config' of trac.sagemath.org:sage into mpf
91f423frebase, deal with --with-mpc
33edfa8Merge branch 'mpf' into flintconf - no spkg-configure yet
82772d7spkg-configure for flint

@embray
Copy link
Contributor

embray commented Mar 21, 2019

comment:5

Should we still look at NTL first, or maybe try testing with both this ticket and #27265 merged together?

@dimpase
Copy link
Member Author

dimpase commented Mar 21, 2019

comment:6

Naturally, I am testing them all together...
(this branch has them all).

Actually, there is a lot of common boilerplate in spkg-configure.m4's for mpfr, mpc, ntl, and flint. But OK, perhaps this simplification can wait---depending upon how many more spkgs need --with-...= support.

@embray
Copy link
Contributor

embray commented Mar 21, 2019

comment:7

I agree, I think that for now it will be simpler and easier to understand if we are somewhat repetitive. If, once we've made more progress, a clear pattern emerges then I can certainly collapse the repetitive bits into a macro.

@dimpase
Copy link
Member Author

dimpase commented Mar 21, 2019

comment:8

This needs an extra test that flint was not built with --with-gc=... option, which results in a memory layout different from what Sage interface expects, and leads to crashes, e.g. in src/sage/libs/flint/fmpz_poly.pyx.

This option is on on some systems by default, e.g. on Gentoo...

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 21, 2019

Changed commit from 82772d7 to c1ac4f2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 21, 2019

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

24f17d5testi for GC enabled
c1ac4f2proper nesting of tests

@embray
Copy link
Contributor

embray commented Mar 25, 2019

comment:10

Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually)

@embray embray modified the milestones: sage-8.7, sage-8.8 Mar 25, 2019
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 1, 2019

Changed commit from c1ac4f2 to 0e0947d

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 1, 2019

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

0e0947dtypo in parameter

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 30, 2019

Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:

1353705another missing then
58c9acdspkg-configure for mpfr, adjustments for its dependees
ef60157add SAGE_CONFIGURE_MPFR, fix sage-env-config.in
1357befimplement --with-mpfr=system/install
e7d04e7spkg-configure for mpc, adjustments for its dependees
fb3aec7rebase, deal with --with-mpc
30b85f7spkg-configure for flint
e17167etesti for GC enabled
d7f3747proper nesting of tests
88209e0typo in parameter

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 30, 2019

Changed commit from 0e0947d to 88209e0

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 30, 2019

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

a867838typo

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 30, 2019

Changed commit from 88209e0 to a867838

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 21, 2019

Changed commit from a867838 to 8fc4fb6

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 21, 2019

Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:

ef5c200add SAGE_CONFIGURE_MPFR, fix sage-env-config.in
9aab721implement --with-mpfr=system/install
0392e76rebase, deal with --with-mpc
73ce2a9spkg-configure for flint
37fa1a1testi for GC enabled
4f6434cproper nesting of tests
a672706typo in parameter
013dfbetypo
e698ffccorrected rebase
8fc4fb6add dependency checks, remove unneeded `-with` handling

@dimpase
Copy link
Member Author

dimpase commented May 21, 2019

Changed dependencies from #27265, #27212 to #27822

@dimpase
Copy link
Member Author

dimpase commented May 21, 2019

comment:15

rebased over #27822 branch, added deps checks, etc

@dimpase
Copy link
Member Author

dimpase commented May 21, 2019

comment:16

should this be bundled with arb?

@dimpase
Copy link
Member Author

dimpase commented Jun 4, 2019

comment:17

to be merged as a part of #27270

@dimpase
Copy link
Member Author

dimpase commented Jun 4, 2019

Changed dependencies from #27822 to none

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

3 participants