Error building giac 1.9.0-55 (June 18, 2023) on Linux

Bugs

Modérateur : xcasadmin

Nasser
Messages : 13
Inscription : mer. juil. 11, 2018 11:14 pm

Error building giac 1.9.0-55 (June 18, 2023) on Linux

Message par Nasser » dim. juin 18, 2023 7:25 pm

On same Linux where I build 1.9.0-53 OK few days ago, now I downloaded 1.9.0-55 and it gives an error building. I have not made any changes to the system during this time.
This is on Linux

Code : Tout sélectionner

>uname -a
Linux me-virtualbox 6.1.19-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon Mar 13 12:59:35 UTC 2023 x86_64 GNU/Linux

Code : Tout sélectionner

cat /etc/os-release
NAME="Manjaro Linux"
PRETTY_NAME="Manjaro Linux"
ID=manjaro

I have put the config.log and also the full output of the make command in this folder as plain text file to view. If you click on this link, you will see the two plain text files there.

https://12000.org/tmp/giac_june_18_2023


The last error on the screen from the command make is the following:

Code : Tout sélectionner

153 |     ptr_fun(_Result (*__x)(_Arg1, _Arg2))
      |     ^~~~~~~
poly.h: In instantiation of ‘giac::tensor<T>::tensor(const T&, int) [with T = giac::gen]’:
gen.cc:7933:46:   required from here
poly.h:55:172: warning: ‘std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const giac::monomial<giac::gen>&; _Arg2 = const giac::monomial<giac::gen>&; _Result = bool]’ is deprecated: use 'std::function' instead [-Wdeprecated-declarations]
   55 | strictly_greater), m_is_strictly_greater(std::ptr_fun<const monomial<T> &, const monomial<T> &, bool>(m_lex_is_strictly_greater<T>)) {
      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/include/c++/12.2.1/bits/stl_function.h:1153:5: note: declared here
 1153 |     ptr_fun(_Result (*__x)(_Arg1, _Arg2))
      |     ^~~~~~~
poly.h: In instantiation of ‘giac::tensor<T>::tensor(const giac::monomial<T>&) [with T = giac::gen]’:
gen.cc:8437:25:   required from here
poly.h:52:193: warning: ‘std::pointer_to_binary_function<_Arg1, _Arg2, _Result> std::ptr_fun(_Result (*)(_Arg1, _Arg2)) [with _Arg1 = const giac::monomial<giac::gen>&; _Arg2 = const giac::monomial<giac::gen>&; _Result = bool]’ is deprecated: use 'std::function' instead [-Wdeprecated-declarations]
   52 | strictly_greater), m_is_strictly_greater(std::ptr_fun<const monomial<T> &, const monomial<T> &, bool>(m_lex_is_strictly_greater<T>)) {
      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/include/c++/12.2.1/bits/stl_function.h:1153:5: note: declared here
 1153 |     ptr_fun(_Result (*__x)(_Arg1, _Arg2))
      |     ^~~~~~~
make[2]: *** [Makefile:814: gen.lo] Error 1
make[2]: Leaving directory '/home/me/TMP/giac-1.9.0/src'
make[1]: *** [Makefile:413: all-recursive] Error 1
make[1]: Leaving directory '/home/me/TMP/giac-1.9.0'
make: *** [Makefile:342: all] Error 2
>


Thanks
--Nasser

parisse
Messages : 5743
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Error building giac 1.9.0-55 (June 18, 2023) on Linux

Message par parisse » lun. juin 19, 2023 10:57 am

Try to replace replace_ans in gen.cc with

Code : Tout sélectionner

  gen replace_ans(const gen & g,GIAC_CONTEXT){
    if (g==at_ans)
      return nws_ans;
    if (g.type==_VECT)
      return apply(*g._VECTptr,replace_ans,contextptr);
    if (g.type!=_SYMB)
      return g;
    return symbolic(g._SYMBptr->sommet,replace_ans(g._SYMBptr->feuille,contextptr));
  }
and replace_ans(g) by replace_ans(g,contextptr) line 17002.

Nasser
Messages : 13
Inscription : mer. juil. 11, 2018 11:14 pm

Re: Error building giac 1.9.0-55 (June 18, 2023) on Linux

Message par Nasser » lun. juin 19, 2023 1:50 pm

Thanks. That fixed it.
It build now with no error. I've uploaded the good build log to same link I have given above to confirm.

Code : Tout sélectionner

>giac --version
// Using locale /usr/local/share/locale/
// en_US.UTF-8
// /usr/local/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 4
// (c) 2001, 2021 B. Parisse & others
1.9.0-55
and

Code : Tout sélectionner

>giac
// Using locale /usr/local/share/locale/
// en_US.UTF-8
// /usr/local/share/locale/
// giac
// UTF-8
// Maximum number of parallel threads 4
Added 26 synonyms
// Read 1243 entries from cache /usr/share/giac/doc/en/html_mtt
// Read 1528 entries from cache /usr/share/giac/doc/en/html_mall
// Read 1057 entries from cache /usr/share/giac/doc/en/html_vall
Welcome to giac readline interface, version 1.9.0-55
(c) 2002,2022 B. Parisse & others
Homepage http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
Released under the GPL license 3.0 or above
See http://www.gnu.org for license details
May contain BSD licensed software parts (lapack, atlas, tinymt)
-------------------------------------------------
Press CTRL and D simultaneously to finish session
Type ?commandname for help
*** Type xcas to launch a light version of Xcas ***
0>> version()
"giac 1.9.0-55, (c) B. Parisse and R. De Graeve, Institut Fourier, Universite de Grenoble I"
// Time 0
1>> int(sin(x),x)
-cos(x)
// Time 0
2>> 


Répondre