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

Compilation issues with newer compiler versions (v.16/17) #36840

Closed
2 tasks done
tobiasdiez opened this issue Dec 8, 2023 · 7 comments · Fixed by #37646
Closed
2 tasks done

Compilation issues with newer compiler versions (v.16/17) #36840

tobiasdiez opened this issue Dec 8, 2023 · 7 comments · Fixed by #37646

Comments

@tobiasdiez
Copy link
Contributor

Steps To Reproduce

https://github.com/sagemath/sage/actions/runs/7122476648/job/19393562399
(which uses clang v16)

Expected Behavior

Compiles fine

Actual Behavior

Compilation stuck at symbolic/expression:

x86_64-apple-darwin13.4.0-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/runner/miniconda3/envs/sage/include -fPIC -O2 -isystem /Users/runner/miniconda3/envs/sage/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/sage/include -D_FORTIFY_SOURCE=2 -isystem /Users/runner/miniconda3/envs/sage/include -I/Users/runner/miniconda3/envs/sage/include -I/Users/runner/miniconda3/envs/sage/include/singular -I/Users/runner/miniconda3/envs/sage/include -I/Users/runner/miniconda3/envs/sage/include/singular -I/Users/runner/miniconda3/envs/sage/include/ -I/Users/runner/miniconda3/envs/sage/include -I/Users/runner/miniconda3/envs/sage/include/ -I/Users/runner/miniconda3/envs/sage/include -Isage/symbolic -I/Users/runner/miniconda3/envs/sage/lib/python3.9/site-packages/cysignals -Isage/cpython -Isage/ext -I/Users/runner/miniconda3/envs/sage/include -I/Users/runner/miniconda3/envs/sage/lib/python3.9/site-packages/cypari2 -I/Users/runner/work/sage/sage/src -I/Users/runner/miniconda3/envs/sage/lib/python3.9/site-packages/numpy/core/include -I/Users/runner/miniconda3/envs/sage/include/python3.9 -I/Users/runner/miniconda3/envs/sage/include/python3.9 -c sage/symbolic/ginac/wildcard.cpp -o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/wildcard.o -std=c++11 -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG -I/Users/runner/miniconda3/envs/sage/include -I/Users/runner/miniconda3/envs/sage/include/singular -I/Users/runner/miniconda3/envs/sage/include -I/Users/runner/miniconda3/envs/sage/include/singular -I/Users/runner/miniconda3/envs/sage/include/ -I/Users/runner/miniconda3/envs/sage/include -I/Users/runner/miniconda3/envs/sage/include/ -I/Users/runner/miniconda3/envs/sage/include
  x86_64-apple-darwin13.4.0-clang++ -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/runner/miniconda3/envs/sage/lib -L/Users/runner/miniconda3/envs/sage/lib -Wl,-rpath,/Users/runner/miniconda3/envs/sage/lib -L/Users/runner/miniconda3/envs/sage/lib -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/runner/miniconda3/envs/sage/lib -L/Users/runner/miniconda3/envs/sage/lib -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/sage/include -D_FORTIFY_SOURCE=2 -isystem /Users/runner/miniconda3/envs/sage/include /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/expression.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/add.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/archive.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/assume.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/basic.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/cmatcher.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/constant.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/context.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/ex.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/expair.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/expairseq.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/exprseq.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/fderivative.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/function.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/function_info.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/infinity.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/infoflagbase.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns_comb.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns_gamma.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns_hyperb.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns_hyperg.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns_nstdsums.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns_orthopoly.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns_trans.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns_trig.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/inifcns_zeta.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/lst.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/matrix.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/mpoly-giac.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/mpoly-ginac.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/mpoly-singular.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/mpoly.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/mul.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/normal.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/numeric.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/operators.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/order.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/power.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/print.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/pseries.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/py_funcs.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/registrar.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/relational.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/remember.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/sum.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/symbol.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/templates.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/upoly-ginac.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/useries.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/utils.o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/symbolic/ginac/wildcard.o -L/Users/runner/miniconda3/envs/sage/lib -lflint -lgmp -lSingular -lpolys -lflint -lmpfr -lgmp -lgmp -lfactory -lflint -lmpfr -lgmp -lntl -lgmp -lomalloc -lsingular_resources -lgsl -lgslcblas -lcblas -lm -o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmpvjecceif.build-lib/sage/symbolic/expression.cpython-39-darwin.so -lpari
  ld: warning: -pie being ignored. It is only used when linking a main executable
  Traceback (most recent call last):
    File "/Users/runner/miniconda3/envs/sage/lib/python3.9/site-packages/setuptools/_distutils/unixccompiler.py", line 185, in _compile
      self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
    File "/Users/runner/miniconda3/envs/sage/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 1041, in spawn
      spawn(cmd, dry_run=self.dry_run, **kwargs)
    File "/Users/runner/miniconda3/envs/sage/lib/python3.9/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn
      raise DistutilsExecError(
  distutils.errors.DistutilsExecError: command '/Users/runner/miniconda3/envs/sage/bin/x86_64-apple-darwin13.4.0-clang' failed with exit code 1

(not sure how to get the actual error message)

Additional Information

There is another issue in bern_rat.cpp which can be fixed with 1adecdb

Environment

- **OS**: Macos and Linux
- **Sage Version**: dev

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@mkoeppe
Copy link
Member

mkoeppe commented Dec 8, 2023

(not sure how to get the actual error message)

By looking further up in the output.

@dimpase
Copy link
Member

dimpase commented Dec 10, 2023

2023-12-07T02:37:57.5656690Z   building 'sage.calculus.ode' extension
2023-12-07T02:37:57.6725070Z   x86_64-apple-darwin13.4.0-clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/runner/miniconda3/envs/sage/include -fPIC -O2 -isystem /Users/runner/miniconda3/envs/sage/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/sage/include -D_FORTIFY_SOURCE=2 -isystem /Users/runner/miniconda3/envs/sage/include -I/Users/runner/miniconda3/envs/sage/lib/python3.9/site-packages/cysignals -I/Users/runner/miniconda3/envs/sage/include -I/Users/runner/work/sage/sage/src -I/Users/runner/miniconda3/envs/sage/lib/python3.9/site-packages/numpy/core/include -I/Users/runner/miniconda3/envs/sage/include/python3.9 -I/Users/runner/miniconda3/envs/sage/include/python3.9 -c sage/calculus/ode.c -o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp53fmtkf5.build-temp/sage/calculus/ode.o -DGSL_DISABLE_DEPRECATED
2023-12-07T02:37:58.2721910Z   sage/calculus/ode.c:8798:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2751550Z       __pyx_v_T = gsl_odeiv_step_rkf45;
2023-12-07T02:37:58.2756130Z                 ^ ~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2765700Z   sage/calculus/ode.c:8830:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2771850Z       __pyx_v_T = gsl_odeiv_step_rk2;
2023-12-07T02:37:58.2776250Z                 ^ ~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2783790Z   sage/calculus/ode.c:8862:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2789180Z       __pyx_v_T = gsl_odeiv_step_rk4;
2023-12-07T02:37:58.2792520Z                 ^ ~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2799880Z   sage/calculus/ode.c:8894:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2804510Z       __pyx_v_T = gsl_odeiv_step_rkck;
2023-12-07T02:37:58.2808540Z                 ^ ~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2815950Z   sage/calculus/ode.c:8926:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2821000Z       __pyx_v_T = gsl_odeiv_step_rk8pd;
2023-12-07T02:37:58.2824300Z                 ^ ~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2831720Z   sage/calculus/ode.c:8958:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2874060Z       __pyx_v_T = gsl_odeiv_step_rk2imp;
2023-12-07T02:37:58.2880730Z                 ^ ~~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2894230Z   sage/calculus/ode.c:8990:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2900680Z       __pyx_v_T = gsl_odeiv_step_rk4imp;
2023-12-07T02:37:58.2905070Z                 ^ ~~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2915410Z   sage/calculus/ode.c:9022:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2921730Z       __pyx_v_T = gsl_odeiv_step_bsimp;
2023-12-07T02:37:58.2926060Z                 ^ ~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2936490Z   sage/calculus/ode.c:9097:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2943260Z       __pyx_v_T = gsl_odeiv_step_gear1;
2023-12-07T02:37:58.2947840Z                 ^ ~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2955280Z   sage/calculus/ode.c:9129:15: warning: assigning to 'gsl_odeiv_step_type *' from 'const gsl_odeiv_step_type *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
2023-12-07T02:37:58.2959800Z       __pyx_v_T = gsl_odeiv_step_gear2;
2023-12-07T02:37:58.2963000Z                 ^ ~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2970500Z   sage/calculus/ode.c:9614:26: error: incompatible function pointer types assigning to 'int (*)(double, const double *, double *, void *)' from 'int (double, double *, double *, void *)' [-Wincompatible-function-pointer-types]
2023-12-07T02:37:58.2975590Z       __pyx_v_sys.function = __pyx_f_4sage_8calculus_3ode_c_f_compiled;
2023-12-07T02:37:58.2978550Z                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.2988960Z   sage/calculus/ode.c:9623:26: error: incompatible function pointer types assigning to 'int (*)(double, const double *, double *, double *, void *)' from 'int (double, double *, double *, double *, void *)' [-Wincompatible-function-pointer-types]
2023-12-07T02:37:58.2996780Z       __pyx_v_sys.jacobian = __pyx_f_4sage_8calculus_3ode_c_jac_compiled;
2023-12-07T02:37:58.3016390Z                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.3028480Z   sage/calculus/ode.c:9655:26: error: incompatible function pointer types assigning to 'int (*)(double, const double *, double *, void *)' from 'int (double, double *, double *, void *)' [-Wincompatible-function-pointer-types]
2023-12-07T02:37:58.3034990Z       __pyx_v_sys.function = __pyx_f_4sage_8calculus_3ode_c_f;
2023-12-07T02:37:58.3039080Z                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.3049060Z   sage/calculus/ode.c:9664:26: error: incompatible function pointer types assigning to 'int (*)(double, const double *, double *, double *, void *)' from 'int (double, double *, double *, double *, void *)' [-Wincompatible-function-pointer-types]
2023-12-07T02:37:58.3055370Z       __pyx_v_sys.jacobian = __pyx_f_4sage_8calculus_3ode_c_jac;
2023-12-07T02:37:58.3058220Z                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-12-07T02:37:58.3662600Z   10 warnings and 4 errors generated.

@mkoeppe
Copy link
Member

mkoeppe commented Dec 19, 2023

After making the obvious fix (#36925), the next error:

  sage/combinat/designs/subhypergraph_search.c:5033:64: error: incompatible function pointer types passing 'int (void *, void *)' to parameter of type 'int (* _Nonnull)(const void *, const void *)' [-Wincompatible-function-pointer-types]
    qsort(__pyx_v_tmp1.sets, __pyx_v_h1.m, (sizeof(uint64_t *)), __pyx_f_4sage_8combinat_7designs_20subhypergraph_search_cmp_128_bits);
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixed in #36927

@mkoeppe
Copy link
Member

mkoeppe commented Dec 19, 2023

Also

creating /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp6dd3b_xd.build-temp/sage/libs/giac
  x86_64-apple-darwin13.4.0-clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/runner/miniconda3/envs/sage/include -fPIC -O2 -isystem /Users/runner/miniconda3/envs/sage/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/sage/include -D_FORTIFY_SOURCE=2 -isystem /Users/runner/miniconda3/envs/sage/include -Isage/libs/giac -Isage/cpython -I/Users/runner/miniconda3/envs/sage/lib/python3.11/site-packages/cysignals -I/Users/runner/work/sage/sage/src -I/Users/runner/miniconda3/envs/sage/lib/python3.11/site-packages/numpy/core/include -I/Users/runner/miniconda3/envs/sage/include/python3.11 -I/Users/runner/miniconda3/envs/sage/include/python3.11 -c sage/libs/giac/giac.cpp -o /var/folders/3s/vfzpb5r51gs6y328rmlgzm7c0000gn/T/tmp6dd3b_xd.build-temp/sage/libs/giac/giac.o
  In file included from sage/libs/giac/giac.cpp:1243:
  In file included from /Users/runner/miniconda3/envs/sage/include/giac/giac.h:5:
  In file included from /Users/runner/miniconda3/envs/sage/include/giac/poly.h:26:
  /Users/runner/miniconda3/envs/sage/include/giac/monomial.h:341:10: error: no template named 'pointer_to_binary_function' in namespace 'std'
      std::pointer_to_binary_function < const monomial<T> &, const monomial<T> &, bool> strictly_greater ;
      ~~~~~^
  /Users/runner/miniconda3/envs/sage/include/giac/monomial.h:342:28: error: no template named 'pointer_to_binary_function' in namespace 'std'
      sort_helper(const std::pointer_to_binary_function < const monomial<T> &, const monomial<T> &, bool> is_strictly_greater):strictly_greater(is_strictly_greater) {};
                        ~~~~~^
  /Users/runner/miniconda3/envs/sage/include/giac/monomial.h:343:41: error: no member named 'ptr_fun' in namespace 'std'
      sort_helper():strictly_greater(std::ptr_fun<const monomial<T> &, const monomial<T> &, bool>(m_lex_is_strictly_greater<T>)) {};
                                     ~~~~~^
  /Users/runner/miniconda3/envs/sage/include/giac/monomial.h:343:49: error: expected expression
      sort_helper():strictly_greater(std::ptr_fun<const monomial<T> &, const monomial<T> &, bool>(m_lex_is_strictly_greater<T>)) {};
                                                  ^
  /Users/runner/miniconda3/envs/sage/include/giac/monomial.h:343:70: error: expected expression
      sort_helper():strictly_greater(std::ptr_fun<const monomial<T> &, const monomial<T> &, bool>(m_lex_is_strictly_greater<T>)) {};
                                                                       ^
  /Users/runner/miniconda3/envs/sage/include/giac/monomial.h:343:95: error: expected '(' for function-style cast or type construction
      sort_helper():strictly_greater(std::ptr_fun<const monomial<T> &, const monomial<T> &, bool>(m_lex_is_strictly_greater<T>)) {};
                                                                                            ~~~~^
  /Users/runner/miniconda3/envs/sage/include/giac/monomial.h:680:18: error: no template named 'pointer_to_binary_function' in namespace 'std'
               const std::pointer_to_binary_function < const monomial<T> &, const monomial<T> &, bool> m_is_strictly_greater
                     ~~~~~^
  /Users/runner/miniconda3/envs/sage/include/giac/monomial.h:729:44: error: no template named 'pointer_to_binary_function' in namespace 'std'
      typedef std::map< index_t,T,const std::pointer_to_binary_function < const index_m &, const index_m &, bool> > application;
                                        ~~~~~^
  /Users/runner/miniconda3/envs/sage/include/giac/monomial.h:730:30: error: no type named 'ptr_fun' in namespace 'std'
      application produit(std::ptr_fun(is_strictly_greater));
                          ~~~~~^

(https://github.com/sagemath/sage/actions/runs/7267105390/job/19800194676?pr=36925#step:9:13394)

@mkoeppe
Copy link
Member

mkoeppe commented Dec 19, 2023

And

  sage/modular/arithgroup/farey.cpp:740:19: error: use of undeclared identifier 'bind2nd'
                    bind2nd(greater<int>(), 0))/2;
                    ^

https://github.com/sagemath/sage/actions/runs/7267105390/job/19800194676?pr=36925#step:9:16824

@mkoeppe
Copy link
Member

mkoeppe commented Dec 19, 2023

  sage/rings/polynomial/hilbert.c:8250:101: error: incompatible function pointer types passing 
    'int (*)(struct __pyx_obj_4sage_5rings_10polynomial_8polydict_ETuple *, int)' to parameter of type 
    'int (*)(struct __pyx_obj_4sage_5rings_10polynomial_8polydict_ETuple *)' [-Wincompatible-function-pointer-types]
    __pyx_t_5 = __Pyx_CFunc_int__lParenETuple__comma_int__dunderpyx_skip_dispatch__rParen_to_py_4self(__pyx_vtabptr_4sage_5rings_10polynomial_8polydict_ETuple->unweighted_degree); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 109, __pyx_L1_error)
                                                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  sage/rings/polynomial/hilbert.c:5775:110: note: passing argument to parameter '__pyx_v_f' here
  static PyObject *__Pyx_CFunc_int__lParenETuple__comma_int__dunderpyx_skip_dispatch__rParen_to_py_4self(int (*__pyx_v_f)(struct __pyx_obj_4sage_5rings_10polynomial_8polydict_ETuple *)) {
                                                                                                               ^
  1 error generated.
  building 'sage.rings.polynomial.laurent_polynomial' extension

This looks like a Cython codegeneration error to me. the extra int parameter is __pyx_skip_dispatch

mkoeppe pushed a commit to mkoeppe/sage that referenced this issue Dec 19, 2023
mkoeppe pushed a commit to mkoeppe/sage that referenced this issue Dec 20, 2023
vbraun pushed a commit to vbraun/sage that referenced this issue Dec 21, 2023
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->
This is a workaround for:
- sagemath#36840

Cherry-picked from sagemath#36372

Author: @tobiasdiez

Reviewer: @mkoeppe

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
- Depends on sagemath#36910 (merged here to fix merge conflict)

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36926
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this issue Dec 22, 2023
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->
This is a workaround for:
- sagemath#36840

Cherry-picked from sagemath#36372

Author: @tobiasdiez

Reviewer: @mkoeppe

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
- Depends on sagemath#36910 (merged here to fix merge conflict)

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36926
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this issue Dec 23, 2023
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->
This is a workaround for:
- sagemath#36840

Cherry-picked from sagemath#36372

Author: @tobiasdiez

Reviewer: @mkoeppe

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
- Depends on sagemath#36910 (merged here to fix merge conflict)

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36926
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this issue Dec 24, 2023
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->
This is a workaround for:
- sagemath#36840

Cherry-picked from sagemath#36372

Author: @tobiasdiez

Reviewer: @mkoeppe

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
- Depends on sagemath#36910 (merged here to fix merge conflict)

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36926
Reported by: Matthias Köppe
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this issue Dec 26, 2023
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->
- Fixes part of sagemath#36840

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36925
Reported by: Matthias Köppe
Reviewer(s): Travis Scrimshaw
vbraun pushed a commit to vbraun/sage that referenced this issue Dec 26, 2023
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->
This is a workaround for:
- sagemath#36840

Cherry-picked from sagemath#36372

Author: @tobiasdiez

Reviewer: @mkoeppe

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->
- Depends on sagemath#36910 (merged here to fix merge conflict)

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36926
Reported by: Matthias Köppe
Reviewer(s):
bodnalev added a commit to bodnalev/sage that referenced this issue Jan 3, 2024
* build/pkgs/referencing/dependencies: Add missing dep

* add :wikipedia:`Cycle Index Theorem etc

as explained in my comments on the PR

* Fixes for reviewer comments

* fix linter

* Implement fallback mechanism of default latex engine

* fix qepcad doctest

This test started to fail on Sage 10.3.beta2

* Small edit

* adding line breaks ad suggested

* fix doctest warnings in src/sage/interfaces/

* some ruff fixes (UP034 and UP039 codes) and error links in categories

* ruff auto-fixing several details in combinat folder

* more fixes

* some ruff fixes and error links in the graphs folder

* removed 'arb' which popped up in deps

* sage.env, sage.misc.package: Use SAGE_LOCAL_SPKG_INST to avoid clash with SAGE_SPKG_INST set by sage-spkg

* fix warnings in coxeter_group.py

* fix warnings in coxeter_group.py

* Default engine is computed lazily

* fix warnings in coxeter.pyx

* fix doctest warnings in src/sage/game_theory/gambit_docs.py

* fix doctest warnings in src/sage/game_theory/parser.py

* ruff UP details and links to errors in doc in geometry folder

* fix doctest warnings in src/sage/game_theory/normal_form_game.py

* document&test corner case, empty domain without constraints

* Documented that sagemath#36527 causes erroneous results & how to avoid

* fix doctest warnings in src/sage/categories/finite_complex_reflection_groups.py

* fix doctest warnings in src/sage/coding/ag_code_decoders.pyx

* fix doctest warnings in src/sage/plot/graphics.py

* oops, correct workaround

* fix doctest warnings in src/sage/quadratic_forms/ternary_qf

* various fixes in quadratic_forms (ruff, pep8, error links, etc)

* Small language fixes; for brevity move one example to tests

* png() uses the default engine

* suggested details

* suggested details

* Changed _matrix_power_symbolic function to condier mk=0 case

This fixes sagemath#36838. Here, I have added a condition to check whether
mk=0 or not. Because whenever mk=0 we should give mk^(n-i) (i.e. 0^(n-i))
instead of only 0 considering (n-i) can be equal to zero and in this
case 0^(n-i) will be more accurate than only 0.

* Changed the _matrix_power_symbolic function to handle all the cases

This change handles all the errors which were occuring in previous
commit and this commit handles the case of mx=0 very effectively.

* Created tests covering the changes

Created tests covering the changes and checking whether the
trac:`36838` is fixed or not.

* Give more precise answer by using kroncker_delta function

Instead of returning 0^(n-i), it would be more precise if
we reutrn value of  kroncker_delta function, it will be helpful when
we try to evaluate the final matrix using the value of n.

* Rewriting tests for the PR

Changed the final answer given by test of this PR.

* Correct answers of the doctest for _matrix_power_symbolic function

Changed the answer of doctest  according to new changes.

* Corrected the doctest

Corrected the doctest and improved some code styles, which were not
correct according to guidelines for python coding for sage.

* Modified the doctest and changed the comment

Updated the old doctests which were failing before and updated the comment
to make it more readable.

* Corrected lint errors

* use file-level tag in src/sage/libs/coxeter/coxeter.pyx

* use file-level tag in src/sage/libs/coxeter/coxeter_group.py

* build/pkgs/*/distros: Remove quotes, change to one package per line

git grep -l \" build/pkgs/*/distros* | xargs sed -i.bak '/^"/s/"//g'

git grep -l -E '^([^# ]+) +([^# ][^#]+)(#.*)' build/pkgs/*/distros/*.txt | xargs sed -E -i.bak $'s/^([^# ]+) +([^# ][^#]+)(#.*)?/\\3\\\n\\1\\\n\\2/'

git grep -l -E '^([^# ]+) +([^# ][^#]+)' build/pkgs/*/distros/*.txt | xargs sed -E -i.bak $'s/^([^# ]+) +([^# ][^#]+)/\\1\\\n\\2/'

git grep -l -E ' +$' build/pkgs/*/distros/*.txt | xargs sed -E -i.bak 's/[ ]+$//'

* build/bin/sage-print-system-package-command: Shell-quote the packages

* fix precision issue for 𝑗=0 and ℓ=3

* build/bin/sage-get-system-packages: Substitute PYTHON_MINOR here

* build/bin/write-dockerfile.sh: Shell-quote system packages

* src/doc/bootstrap: Use sage-get-system-packages so that ENABLE_SYSTEM_SITEPACKAGES is respected

* sage-spkg-info, src/doc/bootstrap: Wrap command lines

* Current engine is dependent on the user's system

* Document the format of system package files

* src/doc/bootstrap: Wrap more narrowly

* Addressing reviewer comments.

* build/bin/sage-print-system-package-command: Simplify

* src/doc/bootstrap: Remove unused variable

* src/doc/bootstrap: Parallelize generation of SPKG.rst files

* build/bin/sage-spkg-info: Restore lost blank output line

* build/bin/sage-spkg-info: Fix and improve RST markup

* 36884: issue reference

Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>

* 36884: doctest formatting

Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>

* 36884: replace copy

Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>

* adding corolla-related methods to free pre-Lie algebras

* 36884: new list loop_crossings

* build/pkgs/_bootstrap/distros/fedora.txt: Remove outdated comment

* tox.ini: Add local-macports

* Add macports.txt

* build/pkgs/_prereq/distros: Update file comments

* build/bin/sage-print-system-package-command: Handle macports install

* tox.ini (local-macports-optlocal): Use sudo

* build/bin/sage-print-system-package-command (macports): Handle setup-build-env

* build/bin/sage-guess-package-system: Detect macports

* tox.ini: Add configuration factors macports-python{3.8,3.9}

* build/bin/sage-print-system-package-command (macports): Recommend FC as configure arg, not environment variable

This is so that the presence of the environment variable at 'make' time
does not break the build when the compiler is not actually present.

* tox.ini (macports): Pass FC as configure argument; add variants macports-gcc_{spkg,9,10,11}

* tox.ini (macports): Fix up use of ALL_EXTRA_SAGE_PACKAGES

* tox.ini (local-macports): Update macports base version to 2.7.2

* build/pkgs/gfortran/distros/macports.txt: Switch to gcc11

* tox.ini (macports): By default use FC=gfortran-mp-11

* build/bin/sage-print-system-package-command (macports): Also update to gcc11 here

* WIP

* tox.ini (macports): Remove variants that tried to use real gcc

* build/pkgs/libgd/distros/macports.txt: Disable

* build/pkgs/python3/distros/macports.txt: Use python310

* Disable more broken macports packages

* build/bin/sage-print-system-package-command [macports]: Do not describe variants that do not work

* tox.ini (macports): Set CPATH, LIBRARY_PATH

* build/pkgs/pari/distros/macports.txt: Disable

* tox.ini (macports): Use isysroot

* build/bin/sage-print-system-package-command (macports): Update use of print_shell_command

* build/pkgs/_bootstrap/distros/macports.txt: One package per line

* tox.ini: Add macports-python3.12

* revert some "a -> an" changes

* Updated SageMath version to 10.3.beta3

* Remove a redundant comment

* build/pkgs/e_antic: Update to 2.0.0

* sage.{coding,combinat}: Update # needs

* sage.combinat.root_system: Update # needs

* sage.combinat: Update # needs

* sage.combinat: Update # needs

* sage -fixdoctests src/sage/combinat

* sage.rings: Update # needs

* sage.rings: Update # needs

* sage.rings: Update # needs

* sage -fixdoctests src/sage/rings

* src/sage/rings/power_series_ring.py: Fix import

* Remove empty doctest lines

* sage.rings: Break an import cycle

* sage.rings.continued_fraction: Make imports from sage.combinat.words lazy

* sage.{categories,rings}: Modularization fixes for imports

* Remove uses of sage.PACKAGE.all...

* pkgs/sagemath-{flint,symbolics}: Fixups

* Massive modularization fixes

* Remove uses of sage.PACKAGE.all... (fixup)

* pkgs/sagemath-gap: Move reflection_group, weyl_group here from sagemath-modules

* suggested changes, arigato !

* refresh the doc about coercion and test the given example

* reverted changes and added self.is_dead(warn_only=True)

* fixing one bug in the use of valuation

* suggested detail

* add interface to nauty's genktreeg

* 36884: treat no loops first

Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>

* src/sage/calculus/ode.pyx: constness fix for clang 16

* sage.rings: Modularization fixes for imports of power series

* build/pkgs/normaliz/patches: Add Normaliz/Normaliz#412

* src/sage/rings/finite_rings/element_ntl_gf2e.pyx: Fix test for libgap element

* Fixing some details.

* build/pkgs/normaliz/spkg-install.in: Override FLINT configure test

* build/pkgs/_prereq/distros/conda.txt: Pin compilers until sagemath#36840 is fixed

* build/pkgs/{normaliz,pynormaliz}: Add patchlevel to trigger build of pynormaliz in 'CI Linux incremental'

* change build/pkgs/nauty/spkg-configure.m4

* details fixed in cfinite_sequence.py

* update comment in build/pkgs/nauty/spkg-configure.m4

* src/sage/tests/gap_packages.py: Normalize package names to lower case in doctest

* suggested changes

* build/pkgs/furo/spkg-install.in: Remove

* remove one doctest, fix the other

* add some # optional - nauty tags

* some details in multi_polynomial base

* use # needs nauty

* suggested change in src/sage/features/nauty.py

* src/sage/doctest/forker.py: Use JobClient(use_cysignals=True)

* src/sage/doctest/forker.py: Do not mask ImportError while calling JobClient

* build/pkgs/gnumake_tokenpool: Update to 0.0.4

* build/pkgs/gnumake_tokenpool/install-requires.txt: require >= 0.0.4

* sage.plot: Update # needs

* sage.plot: Update # needs

* Add # needs

* sage -fixdoctests src/sage/plot

* src/sage/plot/arc.py: Fix # needs

* sage.plot: Doctest cosmetics (copied from sagemath#35095)

* src/sage/plot/plot3d/list_plot3d.py: Fix up

* src/sage/misc/replace_dot_all.py: Update doctest output

* src/sage/plot/plot.py: Fix Warning: Variable 'x' referenced here was set only in doctest marked '# long time, needs sage.symbolic'

* src/sage/doctest/sources.py: Use file-level doctest tags for the virtual doctest; fixes Warning: Variable 'sig_on_count' referenced here was set only ...

* build/pkgs/ninja_build: support samurai version scheme

Samurai is a C99 ninja implementation with an almost-compatible
version scheme, except that it has only two version components
instead of the three that ninja has. We update the "sed" call
used to parse the version number out of `ninja --version` so
that it can parse a samurai version too.

This should only matter on systems where (for example) /usr/bin/ninja
points to samurai. That's not typical, but it recently became possible
to do on Gentoo in an "official" way.

* src/sage/combinat/permutation.py: Fix # needs

* src/sage/combinat/root_system/non_symmetric_macdonald_polynomials.py: Fix # needs

* Addressing review comments for detecting subtypes.

* Updated SageMath version to 10.3.beta4

---------

Co-authored-by: Matthias Koeppe <mkoeppe@math.ucdavis.edu>
Co-authored-by: Dima Pasechnik <dima@pasechnik.info>
Co-authored-by: Kwankyu Lee <ekwankyu@gmail.com>
Co-authored-by: Frédéric Chapoton <chapoton@unistra.fr>
Co-authored-by: dcoudert <david.coudert@inria.fr>
Co-authored-by: Jukka Kohonen <jukka.kohonen@aalto.fi>
Co-authored-by: RuchitJagodara <ruchit.jagodara@iitgn.ac.in>
Co-authored-by: Release Manager <release@sagemath.org>
Co-authored-by: Lorenz Panny <lorenz@yx7.cc>
Co-authored-by: Travis Scrimshaw <tcscrims@gmail.com>
Co-authored-by: Sebastian Oehms <47305845+soehms@users.noreply.github.com>
Co-authored-by: Travis Scrimshaw <clfrngrown@aol.com>
Co-authored-by: Sebastian <seb.oehms@gmail.com>
Co-authored-by: John Cremona <john.cremona@gmail.com>
Co-authored-by: Heiko Knospe <heiko.knospe@fh-koeln.de>
Co-authored-by: adrinospy <amanmoon099@gmail.com>
Co-authored-by: Tobias Diez <code@tobiasdiez.com>
Co-authored-by: Michael Orlitzky <michael@orlitzky.com>
vbraun pushed a commit to vbraun/sage that referenced this issue Feb 11, 2024
… constness fix for clang 16

    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->
- Fixes part of sagemath#36840

<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#36927
Reported by: Matthias Köppe
Reviewer(s): Kwankyu Lee
Feyorsh added a commit to Feyorsh/nixpkgs that referenced this issue Mar 19, 2024
`std::pointer_to_binary_function` and related functions deprecated and
removed in c++17; set `-std=c++14` (using `makeFlags` causes tests to
fail) as an environment variable (see also
sagemath/sage#36840 (comment)).

`fesetround` issue patched by debian team: see https://salsa.debian.org/science-team/giac/-/commit/c05ae9b9e74d3c6ee6411d391071989426a76201
@Feyorsh
Copy link
Contributor

Feyorsh commented Mar 19, 2024

sage/rings/polynomial/hilbert.c:8250:101: error: incompatible function pointer types passing ...

unweighted_degree is declared as cpdef, which does not have a suitable function pointer type to pass to C functions (offending usage). This can be solved with a separate cdef version of unweighted_degree, although admittedly I don't know how to do this in an elegant way (I just copied the function definition twice. Yuck!)

sage/modular/arithgroup/farey.cpp:740:19: error: use of undeclared identifier 'bind2nd'

Pretty easy fix:

-                  bind2nd(greater<int>(), 0))/2;
+                  bind(greater<int>(), placeholders::_1, 0))/2;

I'm working on getting Giac to compile with Clang, but I'll update when I figure that out.

vbraun pushed a commit to vbraun/sage that referenced this issue Mar 31, 2024
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Fixes sagemath#36840.

0c96d61: I don't think there should be
any issues with this, as it should be exactly what `cpdef` does under
the hood. That being said, I'd like someone knowledgable with Cython to
sanity check this.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
N/A

URL: sagemath#37646
Reported by: Shorden
Reviewer(s): Matthias Köppe, Shorden
@mkoeppe mkoeppe added this to the sage-10.4 milestone Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants