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 singular to 4.2.1p3 #32907

Closed
mkoeppe opened this issue Nov 19, 2021 · 60 comments
Closed

Update singular to 4.2.1p3 #32907

mkoeppe opened this issue Nov 19, 2021 · 60 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Nov 19, 2021

From the release notes: update for using FLINT 2.8.x

The FLINT/Singular problem on ubuntu-trusty
will be fixed by this (already merged)
pull request to FLINT:

CC: @dimpase @orlitzky @kiwifb @antonio-rojas @slel

Component: packages: standard

Keywords: upgrade, Singular

Author: Matthias Koeppe, Antonio Rojas

Branch: 0856554

Reviewer: Dima Pasechnik

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

@mkoeppe mkoeppe added this to the sage-9.5 milestone Nov 19, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 19, 2021

Branch: u/mkoeppe/update_singular_to_4_2_1p2

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 19, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 19, 2021

Commit: 4cf59d3

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 19, 2021

New commits:

4cf59d3build/pkgs/singular: Update to 4.2.1p2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2021

Changed commit from 4cf59d3 to 5b2d003

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2021

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

5b2d003build/pkgs/singular: Remove patch

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 19, 2021

comment:4

Build ends with Error: source file/directory doc/singular.idx does not exist

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2021

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

26a7332build/pkgs/singular/spkg-install.in: Remove workaround for singular.idx, it is now in doc.tbz2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2021

Changed commit from 5b2d003 to 26a7332

@orlitzky
Copy link
Contributor

comment:7

Passing -j1 to "make" should no longer be necessary.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2021

Changed commit from 26a7332 to bb1f741

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2021

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

bb1f741build/pkgs/singular/spkg-install.in: Remove workaround for make paralellization bugs

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 19, 2021

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 20, 2021

comment:12

This gives errors in the sagelib build:

  [sagelib-9.5.beta7]   build/cythonized/sage/rings/polynomial/multi_polynomial_libsingular.cpp:33693:18: note: in expansion of macro ‘p_SetCoeff0’
  [sagelib-9.5.beta7]              (void)(p_SetCoeff0(__pyx_v_temp, n_Copy(p_GetCoeff(__pyx_v_p, __pyx_v_r), __pyx_v_r), __pyx_v_r));
  [sagelib-9.5.beta7]                     ^
  [sagelib-9.5.beta7]   build/cythonized/sage/rings/polynomial/multi_polynomial_libsingular.cpp: In function ‘PyObject* __pyx_pf_4sage_5rings_10polynomial_28multi_polynomial_libsingular_23MPolynomial_libsingular_104factor(__pyx_obj_4sage_5rings_10polynomial_28multi_polynomial_libsingular_MPolynomial_libsingular*, PyObject*)’:
  [sagelib-9.5.beta7]   build/cythonized/sage/rings/polynomial/multi_polynomial_libsingular.cpp:34874:40: error: cannot convert ‘ip_sring*’ to ‘coeffs {aka n_Procs_s*}’ for argument ‘1’ to ‘int n_GetChar(coeffs)’
  [sagelib-9.5.beta7]      __pyx_t_7 = ((n_GetChar(__pyx_v__ring) > 0x20000000) != 0);
  [sagelib-9.5.beta7]                                           ^

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 20, 2021

Changed author from Matthias Koeppe to Matthias Koeppe, ...

@antonio-rojas
Copy link
Contributor

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 20, 2021

Changed commit from bb1f741 to 720d10e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 20, 2021

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

720d10eUpdate tests for singular 4.2.1p2

@antonio-rojas
Copy link
Contributor

comment:18

Builds now, also with older singular (at least as far back as 4.2.0p1). I've also tried to keep tests compatible with older singular, except for the example in rings/polynomial/hilbert.pyx, which failed before and works now. Should we care about it?

@antonio-rojas
Copy link
Contributor

Changed author from Matthias Koeppe, ... to Matthias Koeppe, Antonio Rojas

@slel
Copy link
Member

slel commented Nov 26, 2021

comment:37

If it helps I could try this ticket out
on a few machines (Cygwin, Linux, macOS).

For now I can only offer trivial comments
(feel free to disregard them).

I would wrap this long output line:

         sage: J.hilbert_numerator(algorithm='singular')
-        120*t^33 - 3465*t^32 + 48180*t^31 - 429374*t^30 + 2753520*t^29 - 13522410*t^28 + 52832780*t^27 - 168384150*t^26 + 445188744*t^25 - 987193350*t^24 + 1847488500*t^23 + 1372406746*t^22 - 403422496*t^21 - 8403314*t^20 - 471656596*t^19 + 1806623746*t^18 + 752776200*t^17 + 752776200*t^16 - 1580830020*t^15 + 1673936550*t^14 - 1294246800*t^13 + 786893250*t^12 - 382391100*t^11 + 146679390*t^10 - 42299400*t^9 + 7837830*t^8 - 172260*t^7 - 468930*t^6 + 183744*t^5 - 39270*t^4 + 5060*t^3 - 330*t^2 + 1
+        120*t^33 - 3465*t^32 + 48180*t^31 - 429374*t^30 + 2753520*t^29
+        - 13522410*t^28 + 52832780*t^27 - 168384150*t^26 + 445188744*t^25
+        - 987193350*t^24 + 1847488500*t^23 + 1372406746*t^22 - 403422496*t^21
+        - 8403314*t^20 - 471656596*t^19 + 1806623746*t^18 + 752776200*t^17
+        + 752776200*t^16 - 1580830020*t^15 + 1673936550*t^14 - 1294246800*t^13
+        + 786893250*t^12 - 382391100*t^11 + 146679390*t^10 - 42299400*t^9
+        + 7837830*t^8 - 172260*t^7 - 468930*t^6 + 183744*t^5 - 39270*t^4
+        + 5060*t^3 - 330*t^2 + 1

or maybe even rewrite that doctest as:

-        sage: J.hilbert_numerator(algorithm='singular')
+        sage: p = J.hilbert_numerator(algorithm='singular')
+        sage: p.list()
+        [1, 0, -330, 5060, -39270, 183744, -468930, -172260, 7837830,
+         -42299400, 146679390, -382391100, 786893250, -1294246800,
+         1673936550, -1580830020, 752776200, 752776200, 1806623746,
+         -471656596, -8403314, -403422496, 1372406746, 1847488500,
+         -987193350, 445188744, -168384150, 52832780, -13522410,
+         2753520, -429374, 48180, -3465, 120]

whose output I personally find easier to parse visually.

Another wrapping suggestion:

-        [x + y + 57119*z + 4, y^2 + 3*y + 17220, y*z + ..., 2*y + 158864, z^2 + 17223, 2*z + 41856, 164878]
+        [x + y + 57119*z + 4, y^2 + 3*y + 17220, y*z + ...,
+         2*y + 158864, z^2 + 17223, 2*z + 41856, 164878]

Some pep8 whitespace suggestions (the last two occur several times):

-            n_Delete(&n,r.cf)
+            n_Delete(&n, r.cf)
-                p_SetCoeff(newptemp,n_Copy(p_GetCoeff(p,r),r.cf),r)
+                p_SetCoeff(newptemp, n_Copy(p_GetCoeff(p, r), r.cf), r)
-            p_SetCoeff(p, n_Init(1,_ring.cf), _ring)
+            p_SetCoeff(p, n_Init(1, _ring.cf), _ring)

@slel
Copy link
Member

slel commented Nov 26, 2021

Changed keywords from none to upgrade, Singular

@slel

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 26, 2021

comment:38

Cygwin testing would be valuable

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 27, 2021

comment:39

Also please feel free to push these edits to the ticket

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 9, 2021

comment:40

Setting to blocker because system singular is already being picked up by our spkg-configure

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 17, 2021

comment:41

Let's get this in please

@antonio-rojas
Copy link
Contributor

comment:42

4.2.1p3 is out including the commit needed for #32959

@dimpase
Copy link
Member

dimpase commented Dec 18, 2021

comment:43

yes, seems like a nice update to get: https://github.com/Singular/Singular/releases/tag/Release-4-2-1p3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 18, 2021

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

a137b7eMerge tag '9.5.beta8' into t/32907/update_singular_to_4_2_1p2
0856554build/pkgs/singular: Update to 4.2.1p3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 18, 2021

Changed commit from eea6328 to 0856554

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 18, 2021

@mkoeppe mkoeppe changed the title Update singular to 4.2.1p2 Update singular to 4.2.1p3 Dec 18, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 18, 2021

comment:46

Tests on GH Actions look fine.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 18, 2021

@dimpase
Copy link
Member

dimpase commented Dec 22, 2021

comment:47

lgtm

@dimpase
Copy link
Member

dimpase commented Dec 22, 2021

Changed reviewer from https://github.com/mkoeppe/sage/actions/runs/1595134485 to Dima Pasechnik

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 23, 2021

comment:48

Thanks!

@vbraun
Copy link
Member

vbraun commented Dec 28, 2021

Changed branch from u/mkoeppe/update_singular_to_4_2_1p2 to 0856554

@dimpase
Copy link
Member

dimpase commented Jan 13, 2022

comment:50

update to 4.3.0 is dealt with on #33160

@dimpase
Copy link
Member

dimpase commented Jan 13, 2022

Changed commit from 0856554 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

6 participants