Skip to content

Support flint 3.0.0 #1983

@chenrui333

Description

@chenrui333

The latest release, 0.11.1, failed to build against flint 3.0.0

error build log
  cd /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/build/symengine && /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -Dsymengine_EXPORTS -I/tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1 -I/tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/build -isystem /opt/homebrew/include/flint -std=c++11  -fPIC -D__extern_always_inline=inline -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Wall -Wextra -Wno-unused-parameter -O3 -funroll-loops -DNDEBUG -Wno-unknown-pragmas -std=c++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fPIC -Wconversion -Wno-sign-conversion -MD -MT symengine/CMakeFiles/symengine.dir/polys/uintpoly_flint.cpp.o -MF CMakeFiles/symengine.dir/polys/uintpoly_flint.cpp.o.d -o CMakeFiles/symengine.dir/polys/uintpoly_flint.cpp.o -c /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/polys/uintpoly_flint.cpp
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/polys/uintpoly_flint.cpp:1:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/symbol.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.h:37:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/dict.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_class.hIn file included from In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.cpp:1:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/printers.h:4:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.h:37:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/dict.h:9:8:
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/series_flint.cppIn file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_wrapper.h::911:
  :
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/flint_wrapper.h:In file included from 489/tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/series_visitor.h::94::
   In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/visitor.herror: :use of undeclared identifier 'fmpz_poly_factor_init'; did you mean 'fmpz_poly_factor_t'?
  :
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_class.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_wrapper.h:91:
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/flint_wrapper.h:489:9: error: use of undeclared identifier 'fmpz_poly_factor_init'; did you mean 'fmpz_poly_factor_t'?
          fmpz_poly_factor_init(fac);
          ^
          fmpz_poly_factor_init(fac);
          ^
  9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/polys/uintpoly_flint.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/polys/upolybase.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.h:37:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/dict.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_class.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_wrapper.h:91:
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/flint_wrapper.h:489:9: error: use of undeclared identifier 'fmpz_poly_factor_init'; did you mean 'fmpz_poly_factor_t'?
          fmpz_poly_factor_init(fac);
          ^
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/add.cpp:14:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/add.h:17:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.h:37:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/dict.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_class.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_wrapper.h:91:
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/flint_wrapper.h:489:9: error: use of undeclared identifier 'fmpz_poly_factor_init'; did you mean 'fmpz_poly_factor_t'?
          fmpz_poly_factor_init(fac);
          ^
  /opt/homebrew/include/flint/fmpz_types.h:62:33: note: 'fmpz_poly_factor_t' declared here
  typedef fmpz_poly_factor_struct fmpz_poly_factor_t[1];
                                  ^
  /opt/homebrew/include/flint/fmpz_types.h:62:33: note: 'fmpz_poly_factor_t' declared here
  typedef fmpz_poly_factor_struct fmpz_poly_factor_t[1];
                                  ^
  /opt/homebrew/include/flint/fmpz_types.h:62:33: note: 'fmpz_poly_factor_t' declared here
  typedef fmpz_poly_factor_struct fmpz_poly_factor_t[1];
                                  ^
  /opt/homebrew/include/flint/fmpz_types.h:62:33: note: 'fmpz_poly_factor_t' declared here
  typedef fmpz_poly_factor_struct fmpz_poly_factor_t[1];
                                  ^
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/series_flint.cpp:1:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/series_visitor.h:4:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/visitor.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/polys/uintpoly_flint.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/polys/upolybase.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.h:37:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/dict.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_class.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_wrapper.h:91:
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/flint_wrapper.h:493:9: error: use of undeclared identifier 'fmpz_poly_factor_init'; did you mean 'fmpz_poly_factor_t'?
          fmpz_poly_factor_init(fac);
          ^
  /opt/homebrew/include/flint/fmpz_types.h:62:33: note: 'fmpz_poly_factor_t' declared here
  typedef fmpz_poly_factor_struct fmpz_poly_factor_t[1];
                                  ^
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/polys/uintpoly_flint.cpp:1:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/symbol.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.h:37:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/dict.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_class.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_wrapper.h:91:
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/flint_wrapper.h:493:9: error: use of undeclared identifier 'fmpz_poly_factor_init'; did you mean 'fmpz_poly_factor_t'?
          fmpz_poly_factor_init(fac);
          ^
  /opt/homebrew/include/flint/fmpz_types.h:62:33: note: 'fmpz_poly_factor_t' declared here
  typedef fmpz_poly_factor_struct fmpz_poly_factor_t[1];
                                  ^
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.cpp:1:
  /opt/homebrew/include/flint/fmpq_poly.h:110:6: note: 'fmpq_poly_set_fmpz' declared here
  void fmpq_poly_set_fmpz(fmpq_poly_t poly, const fmpz_t x);
       ^
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/polys/uintpoly_flint.cpp:1:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/symbol.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.h:37:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/dict.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_class.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_wrapper.h:91:
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/flint_wrapper.h:541:28: error: cannot initialize a parameter of type 'fmpq_poly_struct *' with an lvalue of type 'fmpz_poly_t' (aka 'fmpz_poly_struct[1]')
          fmpz_poly_set_fmpz(poly, z.get_fmpz_t());
                             ^~~~
  /opt/homebrew/include/flint/fmpq_poly.h:110:37: note: passing argument to parameter 'poly' here
  void fmpq_poly_set_fmpz(fmpq_poly_t poly, const fmpz_t x);
                                      ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/add.cpp:14:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/add.h:17:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.h:37:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/dict.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_class.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_wrapper.h:91:
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/flint_wrapper.h:541:9: error: use of undeclared identifier 'fmpz_poly_set_fmpz'; did you mean 'fmpq_poly_set_fmpz'?
          fmpz_poly_set_fmpz(poly, z.get_fmpz_t());
          ^~~~~~~~~~~~~~~~~~
          fmpq_poly_set_fmpz
  /opt/homebrew/include/flint/fmpq_poly.h:110:6: note: 'fmpq_poly_set_fmpz' declared here
  void fmpq_poly_set_fmpz(fmpq_poly_t poly, const fmpz_t x);
       ^
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/add.cpp:14:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/add.h:17:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/basic.h:37:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/dict.h:9:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_class.h:8:
  In file included from /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/mp_wrapper.h:91:
  /tmp/symengine-20231021-9800-1plg2uo/symengine-0.11.1/symengine/flint_wrapper.h:541:28: error: cannot initialize a parameter of type 'fmpq_poly_struct *' with an lvalue of type 'fmpz_poly_t' (aka 'fmpz_poly_struct[1]')
          fmpz_poly_set_fmpz(poly, z.get_fmpz_t());
                             ^~~~
  /opt/homebrew/include/flint/fmpq_poly.h:110:37: note: passing argument to parameter 'poly' here
  void fmpq_poly_set_fmpz(fmpq_poly_t poly, const fmpz_t x);
                                      ^
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  fatal error: too many errors emitted, stopping now [-ferror-limit=]
  20 errors generated.
  make[2]: *** [symengine/CMakeFiles/symengine.dir/add.cpp.o] Error 1
  make[2]: *** Waiting for unfinished jobs....
  20 errors generated.
  make[2]: *** [symengine/CMakeFiles/symengine.dir/polys/uintpoly_flint.cpp.o] Error 1
  20 errors generated.
  make[2]: *** [symengine/CMakeFiles/symengine.dir/series_flint.cpp.o] Error 1
  20 errors generated.
  make[2]: *** [symengine/CMakeFiles/symengine.dir/basic.cpp.o] Error 1
  make[1]: *** [symengine/CMakeFiles/symengine.dir/all] Error 2
  make: *** [all] Error 2

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/6600838467/job/17931304649
relates to Homebrew/homebrew-core#151985

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions