flatsurf / e-antic

Embedded algebraic number fields
https://flatsurf.github.io/e-antic/libeantic/
GNU Lesser General Public License v3.0
12 stars 11 forks source link

make check error (e-antic 1.2.1) #246

Closed videlec closed 2 years ago

videlec commented 2 years ago
$  wget https://github.com/flatsurf/e-antic/releases/download/1.2.1/e-antic-1.2.1.tar.gz
$  tar xf e-antic-1.2.1.tar.gz 
$  cd e-antic-1.2.1
$  ./configure --without-byexample --without-pytest --without-doc
$  make
[...]
$ make check

fails with

Making check in libeantic
make[1]: Entering directory '/tmp/e-antic-1.2.1/libeantic'
Making check in src
make[2]: Entering directory '/tmp/e-antic-1.2.1/libeantic/src'
make  check-am
make[3]: Entering directory '/tmp/e-antic-1.2.1/libeantic/src'
make[3]: Nothing to be done for 'check-am'.
make[3]: Leaving directory '/tmp/e-antic-1.2.1/libeantic/src'
make[2]: Leaving directory '/tmp/e-antic-1.2.1/libeantic/src'
Making check in srcxx
make[2]: Entering directory '/tmp/e-antic-1.2.1/libeantic/srcxx'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/tmp/e-antic-1.2.1/libeantic/srcxx'
Making check in test
make[2]: Entering directory '/tmp/e-antic-1.2.1/libeantic/test'
make[3]: Entering directory '/tmp/e-antic-1.2.1/libeantic/test'
make  fmpq_poly_extra/t-evaluate fmpq_poly_extra/t-set_str_pretty fmpz_poly_extra/t-check_unique_real_root fmpz_poly_extra/t-has_real_root fmpz_poly_extra/t-isolate_real_roots fmpz_poly_extra/t-num_real_roots fmpz_poly_extra/t-num_real_roots_0_1 fmpz_poly_extra/t-num_real_roots_upper_bound fmpz_poly_extra/t-num_real_roots_vca fmpz_poly_extra/t-positive_root_upper_bound_2exp fmpz_poly_extra/t-randtest_irreducible fmpz_poly_extra/t-scale_0_1_fmpq fmpz_poly_extra/t-set_str_pretty fmpz_poly_extra/t-squarefree_part renf/t-init renf/t-init_nth_root_fmpq renf/t-randtest renf/t-real_embeddings renf_elem/t-binop renf_elem/t-ceil renf_elem/t-cmp renf_elem/t-cmp_fmpq renf_elem/t-equal_fmpq renf_elem/t-floor renf_elem/t-gen renf_elem/t-get_arb renf_elem/t-get_cfrac renf_elem/t-get_d renf_elem/t-get_str_pretty renf_elem/t-is_rational renf_elem/t-pow renf_elem/t-swap renfxx/t-assignment renfxx/t-binop renfxx/t-ceil renfxx/t-cereal renfxx/t-cmp renfxx/t-constructor renfxx/t-floor renfxx/t-get renfxx/t-get_num_den renfxx/t-get_str renfxx/t-hash renfxx/t-predicates renfxx/t-num_content renfxx/t-pow renfxx/t-stream
make[4]: Entering directory '/tmp/e-antic-1.2.1/libeantic/test'
  CC       fmpq_poly_extra/t-evaluate.o
  CCLD     fmpq_poly_extra/t-evaluate
  CC       fmpq_poly_extra/t-set_str_pretty.o
  CCLD     fmpq_poly_extra/t-set_str_pretty
  CC       fmpz_poly_extra/t-check_unique_real_root.o
  CCLD     fmpz_poly_extra/t-check_unique_real_root
  CC       fmpz_poly_extra/t-has_real_root.o
  CCLD     fmpz_poly_extra/t-has_real_root
  CC       fmpz_poly_extra/t-isolate_real_roots.o
  CCLD     fmpz_poly_extra/t-isolate_real_roots
  CC       fmpz_poly_extra/t-num_real_roots.o
  CCLD     fmpz_poly_extra/t-num_real_roots
  CC       fmpz_poly_extra/t-num_real_roots_0_1.o
  CCLD     fmpz_poly_extra/t-num_real_roots_0_1
  CC       fmpz_poly_extra/t-num_real_roots_upper_bound.o
  CCLD     fmpz_poly_extra/t-num_real_roots_upper_bound
  CC       fmpz_poly_extra/t-num_real_roots_vca.o
  CCLD     fmpz_poly_extra/t-num_real_roots_vca
  CC       fmpz_poly_extra/t-positive_root_upper_bound_2exp.o
  CCLD     fmpz_poly_extra/t-positive_root_upper_bound_2exp
  CC       fmpz_poly_extra/t-randtest_irreducible.o
  CCLD     fmpz_poly_extra/t-randtest_irreducible
  CC       fmpz_poly_extra/t-scale_0_1_fmpq.o
  CCLD     fmpz_poly_extra/t-scale_0_1_fmpq
  CC       fmpz_poly_extra/t-set_str_pretty.o
  CCLD     fmpz_poly_extra/t-set_str_pretty
  CC       fmpz_poly_extra/t-squarefree_part.o
  CCLD     fmpz_poly_extra/t-squarefree_part
  CC       renf/t-init.o
  CCLD     renf/t-init
  CC       renf/t-init_nth_root_fmpq.o
  CCLD     renf/t-init_nth_root_fmpq
  CC       renf/t-randtest.o
  CCLD     renf/t-randtest
  CC       renf/t-real_embeddings.o
  CCLD     renf/t-real_embeddings
  CXX      renf_elem/t-binop.o
  CXX      main.o
In file included from /usr/include/signal.h:328,
                 from /usr/include/sys/param.h:28,
                 from /usr/include/flint/flint.h:18,
                 from main.cpp:1:
external/catch2/single_include/catch2/catch.hpp:10822:58: error: call to non-'constexpr' function 'long int sysconf(int)'
10822 |     static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;
      |                                                          ^~~~~~~~~~~
In file included from /usr/include/bits/sigstksz.h:24:
/usr/include/unistd.h:640:17: note: 'long int sysconf(int)' declared here
  640 | extern long int sysconf (int __name) __THROW;
      |                 ^~~~~~~
In file included from main.cpp:4:
external/catch2/single_include/catch2/catch.hpp:10881:45: error: size of array 'altStackMem' is not an integral constant-expression
10881 |     char FatalConditionHandler::altStackMem[sigStackSize] = {};
      |                                             ^~~~~~~~~~~~
make[4]: *** [Makefile:1504: main.o] Error 1
make[4]: Leaving directory '/tmp/e-antic-1.2.1/libeantic/test'
make[3]: *** [Makefile:2185: check-am] Error 2
make[3]: Leaving directory '/tmp/e-antic-1.2.1/libeantic/test'
make[2]: *** [Makefile:1545: check-recursive] Error 1
make[2]: Leaving directory '/tmp/e-antic-1.2.1/libeantic/test'
make[1]: *** [Makefile:430: check-recursive] Error 1
make[1]: Leaving directory '/tmp/e-antic-1.2.1/libeantic'
make: *** [Makefile:325: check-recursive] Error 1

config.log