Bug#1020436: giac FTBFS with PARI 2.15.0

Adrian Bunk bunk at debian.org
Wed Sep 21 19:01:51 BST 2022


Source: giac
Version: 1.9.0.19+dfsg2-1
Severity: serious
Tags: ftbfs

https://buildd.debian.org/status/logs.php?pkg=giac&ver=1.9.0.19%2Bdfsg2-1%2Bb1

...
pari.cc: At global scope:
pari.cc:752:17: error: typedef ‘giac::PFGEN’ is initialized (use ‘decltype’ instead)
  752 |   typedef GEN (*PFGEN)(ANYARG);
      |                 ^~~~~
pari.cc:752:24: error: ‘ANYARG’ was not declared in this scope
  752 |   typedef GEN (*PFGEN)(ANYARG);
      |                        ^~~~~~
pari.cc: In function ‘giac::gen giac::in_pari(const gen&, const context*)’:
pari.cc:829:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  829 |               argvec[k]= (GEN) v[j].val;
      |                          ^~~~~~~~~~~~~~
pari.cc:847:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  847 |                       argvec[k]=(long int*)(pos -1);
      |                                 ^~~~~~~~~~~~~~~~~~~
pari.cc:855:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  855 |                     argvec[k]=(long int*) v[j].val;
      |                               ^~~~~~~~~~~~~~~~~~~~
pari.cc:883:23: error: ‘PFGEN’ was not declared in this scope; did you mean ‘GEN’?
  883 |               res = ((PFGEN)call)(_ARGS_);
      |                       ^~~~~
      |                       GEN
pari.cc:883:29: error: expected ‘)’ before ‘call’
  883 |               res = ((PFGEN)call)(_ARGS_);
      |                     ~       ^~~~
      |                             )
pari.cc:887:27: error: expected primary-expression before ‘int’
  887 |               m = (long)((int (*)(ANYARG))call)(_ARGS_);
      |                           ^~~
pari.cc:887:27: error: expected ‘)’ before ‘int’
  887 |               m = (long)((int (*)(ANYARG))call)(_ARGS_);
      |                          ~^~~
      |                           )
pari.cc:887:56: error: expected ‘)’ before ‘;’ token
  887 |               m = (long)((int (*)(ANYARG))call)(_ARGS_);
      |                         ~                              ^
      |                                                        )
pari.cc:891:21: error: expected primary-expression before ‘long’
  891 |               m = ((long (*)(ANYARG))call)(_ARGS_);
      |                     ^~~~
pari.cc:891:21: error: expected ‘)’ before ‘long’
  891 |               m = ((long (*)(ANYARG))call)(_ARGS_);
      |                    ~^~~~
      |                     )
pari.cc:891:51: error: expected ‘)’ before ‘;’ token
  891 |               m = ((long (*)(ANYARG))call)(_ARGS_);
      |                   ~                               ^
      |                                                   )
pari.cc:895:17: error: expected primary-expression before ‘void’
  895 |               ((void (*)(ANYARG))call)(_ARGS_);
      |                 ^~~~
pari.cc:895:17: error: expected ‘)’ before ‘void’
  895 |               ((void (*)(ANYARG))call)(_ARGS_);
      |                ~^~~~
      |                 )
pari.cc:895:47: error: expected ‘)’ before ‘;’ token
  895 |               ((void (*)(ANYARG))call)(_ARGS_);
      |               ~                               ^
      |                                               )
make[3]: *** [Makefile:993: pari.lo] Error 1


More information about the debian-science-maintainers mailing list