GNU bug report logs - #58274
giac 1.9.0-21 fails to build

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Mon, 3 Oct 2022 14:36:01 UTC

Severity: normal

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#58274: closed (giac 1.9.0-21 fails to build)
Date: Fri, 07 Oct 2022 20:18:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 07 Oct 2022 22:17:17 +0200
with message-id <87o7unv16a.fsf <at> nicolasgoaziou.fr>
and subject line Re: bug#58274: giac 1.9.0-21 fails to build
has caused the debbugs.gnu.org bug report #58274,
regarding giac 1.9.0-21 fails to build
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
58274: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58274
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: giac 1.9.0-21 fails to build
Date: Mon, 03 Oct 2022 10:34:39 -0400
Hi,

The build of giac fails like:

--8<---------------cut here---------------start------------->8---
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -DIN_GIAC -I. -I.. -I. -I.. -g -O2 -fno-strict-aliasing -DGIAC_GENERIC_CONSTANTS -DTIMEOUT -DHAVE_LIBMICROPYTHON -fpermissive -DQUICKJS -MT alg_ext.lo -MD -MP -MF .deps/alg_ext.Tpo -c alg_ext.cc -o alg_ext.o >/dev/null 2>&1
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 giac::gen&, const giac::context*)’:
pari.cc:829:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  829 |        argvec[k]= (GEN) v[j].val;
      |                   ^~~~~~~~~~~~~~
pari.cc:847:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  847 |         argvec[k]=(long int*)(pos -1);
      |                   ^~~~~~~~~~~~~~~~~~~
pari.cc:855:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  855 |       argvec[k]=(long int*) v[j].val;
      |                 ^~~~~~~~~~~~~~~~~~~~
pari.cc:883:16: error: ‘PFGEN’ was not declared in this scope; did you mean ‘GEN’?
  883 |        res = ((PFGEN)call)(_ARGS_);
      |                ^~~~~
      |                GEN
pari.cc:883:22: error: expected ‘)’ before ‘call’
  883 |        res = ((PFGEN)call)(_ARGS_);
      |              ~       ^~~~
      |                      )
pari.cc:887:20: error: expected primary-expression before ‘int’
  887 |        m = (long)((int (*)(ANYARG))call)(_ARGS_);
      |                    ^~~
pari.cc:887:20: error: expected ‘)’ before ‘int’
  887 |        m = (long)((int (*)(ANYARG))call)(_ARGS_);
      |                   ~^~~
      |                    )
pari.cc:887:49: error: expected ‘)’ before ‘;’ token
  887 |        m = (long)((int (*)(ANYARG))call)(_ARGS_);
      |                  ~                              ^
      |                                                 )
pari.cc:891:14: error: expected primary-expression before ‘long’
  891 |        m = ((long (*)(ANYARG))call)(_ARGS_);
      |              ^~~~
pari.cc:891:14: error: expected ‘)’ before ‘long’
  891 |        m = ((long (*)(ANYARG))call)(_ARGS_);
      |             ~^~~~
      |              )
pari.cc:891:44: error: expected ‘)’ before ‘;’ token
  891 |        m = ((long (*)(ANYARG))call)(_ARGS_);
      |            ~                               ^
      |                                            )
pari.cc:895:10: error: expected primary-expression before ‘void’
  895 |        ((void (*)(ANYARG))call)(_ARGS_);
      |          ^~~~
pari.cc:895:10: error: expected ‘)’ before ‘void’
  895 |        ((void (*)(ANYARG))call)(_ARGS_);
      |         ~^~~~
      |          )
pari.cc:895:40: error: expected ‘)’ before ‘;’ token
  895 |        ((void (*)(ANYARG))call)(_ARGS_);
      |        ~                               ^
      |                                        )
make[2]: *** [Makefile:814: pari.lo] Error 1
--8<---------------cut here---------------end--------------->8---

-- 
Thanks,
Maxim


[Message part 3 (message/rfc822, inline)]
From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 58274-done <at> debbugs.gnu.org
Subject: Re: bug#58274: giac 1.9.0-21 fails to build
Date: Fri, 07 Oct 2022 22:17:17 +0200
Hello,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> The build of giac fails like:
>
> --8<---------------cut here---------------start------------->8---
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -DIN_GIAC -I. -I.. -I. -I.. -g -O2 -fno-strict-aliasing -DGIAC_GENERIC_CONSTANTS -DTIMEOUT -DHAVE_LIBMICROPYTHON -fpermissive -DQUICKJS -MT alg_ext.lo -MD -MP -MF .deps/alg_ext.Tpo -c alg_ext.cc -o alg_ext.o >/dev/null 2>&1
> pari.cc:752:17: error: typedef ‘giac::PFGEN’ is initialized (use ‘decltype’ instead)
>   752 |   typedef GEN (*PFGEN)(ANYARG);

Fixed. Thank you.

Regards,
-- 
Nicolas Goaziou


This bug report was last modified 2 years and 306 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.