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

Upgrade sympow to 2.023.6 (for GCC 10 support) #3360

Closed
sagetrac-mabshoff mannequin opened this issue Jun 4, 2008 · 138 comments
Closed

Upgrade sympow to 2.023.6 (for GCC 10 support) #3360

sagetrac-mabshoff mannequin opened this issue Jun 4, 2008 · 138 comments

Comments

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jun 4, 2008

Fork now maintained by the debian sympow maintainer (gh-jgmbenoit).

https://gitlab.com/rezozer/forks/sympow

Upstream URL: see checksums.ini

See also:

Upstream: Reported upstream. No feedback yet.

CC: @slel @timokau @saraedum @isuruf @antonio-rojas @orlitzky @embray @dimpase @tscrim

Component: packages: standard

Keywords: upgrade, sympow

Author: Timo Kaufmann, Matthias Koeppe

Branch/Commit: 2e3dd4d

Reviewer: Dima Pasechnik

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

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-5.11 milestone Jun 4, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin self-assigned this Jun 4, 2008
@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Mar 2, 2009

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title Upgarde sympow to the 1.019 release Upgrade sympow to the 1.023 release and also fix Solaris/x86 problem Mar 2, 2009
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@slel

This comment has been minimized.

@slel
Copy link
Member

slel commented Apr 20, 2018

Changed keywords from none to upgrade, sympow

@slel slel modified the milestones: sage-6.4, sage-8.3 Apr 20, 2018
@kiwifb
Copy link
Member

kiwifb commented Apr 20, 2018

comment:7

Didn't realise there was a newer version. Considering sympow's code, an upgrade can only be an improvement.

@slel
Copy link
Member

slel commented Jun 2, 2018

comment:8

See also #25099 "Add DESTDIR support for sympow".

@saraedum
Copy link
Member

comment:9

sympow 1.023 segfaults (in Debian) on some inputs that used to work with 1.018

$ sympow -analrank -curve "[0,1,1,-2,0]"
sympow 1.023 RELEASE (Debian 1.023-8)  (c) Mark Watkins --- see README and COPYING for details
Minimal model of curve  is [0,1,1,-2,0]
At 389: Inertia Group is  C1 MULTIPLICATIVE REDUCTION
Conductor is 389
sp 1: Conductor at 389 is 1+0, root number is -1
sp 1: Euler factor at 389 is 1-1*x
1st sym power conductor is 389, global root number is 1
NT 1d0: 43
Maximal number of terms is 43
0.0E+00
Done with small primes 1049
Segmentation fault (core dumped)

@saraedum
Copy link
Member

comment:10

This is essentially a known bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863919. I submitted a patch for it on salsa: https://salsa.debian.org/science-team/sympow/merge_requests/1.

@timokau
Copy link
Contributor

timokau commented Jul 13, 2018

comment:12

In an effort to update the sympow package in nix, I contacted the debian maintainer (Jerome Benoit).

He told me that he really did receive their tarball in a private email (how did you guys manage to find that file on his homepage?). He also told me that "the upstream author is responsive (and he did not have a GIT because the code was written before the GIT revolution)".

Debian adds sage's patches and some more[1], as for example the bug fix saraedum mentions. It seems like Debian effectively became the new upstream of this package. I asked the maintainer if he had considered making it official and forking it, which he declined.

[1] https://salsa.debian.org/science-team/sympow/tree/master/debian/patches

@saraedum
Copy link
Member

comment:13

Replying to @timokau:

He told me that he really did receive their tarball in a private email (how did you guys manage to find that file on his homepage?).

In my case: I wrote a private email to the sympow author and he told me about the URL.

He also told me that "the upstream author is responsive (and he did not have a GIT because the code was written before the GIT revolution)".
Debian adds sage's patches and some more[1], as for example the bug fix saraedum mentions. It seems like Debian effectively became the new upstream of this package. I asked the maintainer if he had considered making it official and forking it, which he declined.

[1] https://salsa.debian.org/science-team/sympow/tree/master/debian/patches

I was in correspondence with the sympow author about the recent segfault patch. Afterwards I proposed to move the project to github and basically take over maintenance but I have not heard back for a while since then.

@jgmbenoit
Copy link
Mannequin

jgmbenoit mannequin commented Jul 13, 2018

comment:14

Is the URL still valid ?
Otherwise, after all, I may also consider to maintain a fork of sympow.

@timokau
Copy link
Contributor

timokau commented Jul 13, 2018

comment:15

sympow still seems to be hosted at that URL. Its just not advertised anywhere. But there are still all those semi-mandatory patches flying around that should probably be upstreamed. Having the project in some public version control would be great.

@slel
Copy link
Member

slel commented Jul 14, 2018

comment:16

My notes about the url at
#25099 comment:13
still hold. Public version control of the original code
and the existing extra patches would definitely help,
as well as a home page for the project.

@jgmbenoit
Copy link
Mannequin

jgmbenoit mannequin commented Jul 15, 2018

comment:17

I am on my way to fork sympow on gitlab. My concern will be only the unix part (read not the mathematical part) in view to harmonize related patches and integration in unix systems.
Notes: My time being counted and limited, it would be question of weekends, rather of days.

@timokau
Copy link
Contributor

timokau commented Jul 15, 2018

comment:18

Great! Thank you for doing that.

@vbraun
Copy link
Member

vbraun commented Jul 29, 2020

comment:128
make[5]: Entering directory '/home/release/Sage/local/var/tmp/sage/build/sympow-2.023.6/src'
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o fpu.o fpu.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o analrank.o analrank.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o analytic.o analytic.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o compute.o compute.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o compute2.o compute2.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o help.o help.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o conductors.o conductors.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o disk.o disk.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o ec_ap.o ec_ap.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o ec_ap_bsgs.o ec_ap_bsgs.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o ec_ap_large.o ec_ap_large.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o eulerfactors.o eulerfactors.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o factor.o factor.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o generate.o generate.c
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o init_curve.o init_curve.c
generate.c: In function 'new_data':
generate.c:234:32: error: 'GP' undeclared (first use in this function)
  234 |  execlp(SH,SH,newdatascript,SH,GP,ARGS,NULL);}
      |                                ^~
generate.c:234:32: note: each undeclared identifier is reported only once for each function it appears in
gcc   -O3  -std=gnu17 -fno-fast-math -mfpmath=sse -ffp-contract=on -DFPUCONTROLH   -c -o main.o main.c
make[5]: *** [Makefile:39: generate.o] Error 1

@mkoeppe
Copy link
Member

mkoeppe commented Jul 29, 2020

comment:129

on what machine

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 29, 2020

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

f522ea6Merge tag '9.2.beta6' into t/3360/sympow-2.23.2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 29, 2020

Changed commit from ae0f113 to f522ea6

@mkoeppe
Copy link
Member

mkoeppe commented Jul 29, 2020

comment:131

Tests run at https://github.com/mkoeppe/sage/actions/runs/187726088

@mkoeppe
Copy link
Member

mkoeppe commented Jul 30, 2020

comment:132

Builds correctly on all platforms.

@vbraun
Copy link
Member

vbraun commented Jul 30, 2020

comment:133

Fedora 32 x86_64 for the record

@mkoeppe
Copy link
Member

mkoeppe commented Jul 31, 2020

comment:134

Replying to @vbraun:

Fedora 32 x86_64 for the record

Thanks. Works fine on both fedora-32-minimal and fedora-32-standard (see above link). Would need more information about the system where it fails.

@vbraun
Copy link
Member

vbraun commented Aug 3, 2020

comment:135

Still doesn't work. My build log has a

which: no gp in (/home/release/Sage/build/bin:/home/release/Sage/src/bin:/home/release/Sage/local/bin:/home/release/Sage/build/bin:/home/release/Sage/src/bin:/home/release/Sage/local/bin:/home/release/.local/bin:/home/release/opt/bin:/usr/share/Modules/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/release/.composer/vendor/bin)
*WARNING*: Could not find gp --- will not be able to build new_data

thats not in yours; Build race with pari/gp? Seems like this would explain the error: 'GP' undeclared

@mkoeppe
Copy link
Member

mkoeppe commented Aug 3, 2020

comment:136

Yes, seems like we may need to add pari as a dependency

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 3, 2020

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

6173795Merge tag '9.2.beta7' into t/3360/sympow-2.23.2
2e3dd4dbuild/pkgs/sympow/dependencies: Add pari as an order-only dependency

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 3, 2020

Changed commit from f522ea6 to 2e3dd4d

@vbraun
Copy link
Member

vbraun commented Aug 7, 2020

Changed branch from u/mkoeppe/sympow-2.23.2 to 2e3dd4d

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