🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #421

Bug#1150685: giac: FTBFS: optimization.cc:1274:9: error: reference to 'bitset' is ambiguous

#421
From: Sebastian Ramacher
Date: Mon, 12 Oct 2026 09:30
78 lines
5939 bytes
Source: giac
Version: 2.0.0.21+dfsg2-2
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher@debian.org

Dear maintainer,

giac FTBFS:

In file included from gen.h:70:
fraction.h:38:16: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
   38 |   Tfraction<T> (const T & n,const T & d) : num(n),den(d) {};
      |                ^
fraction.h:38:16: note: remove the '< >'
fraction.h:39:16: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
   39 |   Tfraction<T> (const T & n) : num(n),den(T(1)) {}; // does not work properly??
      |                ^
fraction.h:39:16: note: remove the '< >'
fraction.h:40:16: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
   40 |   Tfraction<T> (const Tfraction<T> & f) : num(f.num), den(f.den) {};
      |                ^
fraction.h:40:16: note: remove the '< >'
In file included from gen.h:71:
poly.h:226:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
  226 |     Tref_tensor<T>(const tensor<T> & P): ref_count(1),t(P) {}
      |                   ^
poly.h:226:19: note: remove the '< >'
poly.h:227:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
  227 |     Tref_tensor<T>(int dim): ref_count(1),t(dim) {}
      |                   ^
poly.h:227:19: note: remove the '< >'
optimization.cc: In function 'void giac::vars_arrangements(matrice, ipdiff::ivectors&, const context*)':
optimization.cc:1274:9: error: reference to 'bitset' is ambiguous
 1274 |         bitset<32> b(k);
      |         ^~~~~~
  • there are 2 candidates
In file included from graphe.h:37,
                 from optimization.cc:25:
    • candidate 1: 'template<long unsigned int _Nb> class std::bitset'
      /usr/include/c++/16/bitset:820:11:
        820 |     class bitset
            |           ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/pari/pari.h:47,
                 from optimization.cc:31:
    • candidate 2: 'void bitset(GEN, long int)'
      /usr/include/x86_64-linux-gnu/pari/paridecl.h:3030:9:
       3030 | void    bitset(GEN x, long n);
            |         ^~~~~~
optimization.cc:1274:20: error: 'b' was not declared in this scope
 1274 |         bitset<32> b(k);
      |                    ^
optimization.cc: In function 'bool giac::find_global_extrema_recursively(const gen&, const vecteur&, const vecteur&, const vecteur&, const vecteur&, const gen_map&, const std::map<int, bool>&, const std::map<int, gen>&, gen&, gen&, vecteur&, vecteur&, const context*)':
optimization.cc:2096:35: warning: using value of assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile]
 2096 |                 interrupted=ctrl_c=false;
      |                             ~~~~~~^~~~~~
optimization.cc: In member function 'int giac::nlp_problem::ipt_solver::ls_filter_barrier_method(giac::vecteur&, giac::vecteur&, giac::vecteur&, double)':
optimization.cc:5196:35: warning: using value of assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile]
 5196 |                 ctrl_c=interrupted=false;
      |                        ~~~~~~~~~~~^~~~~~
optimization.cc: In member function 'bool giac::nlp_problem::branch_and_bound(const meth_parm&, const giac::vecteur&, optimum_t&)':
optimization.cc:5728:31: warning: using value of assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile]
 5728 |             interrupted=ctrl_c=false;
      |                         ~~~~~~^~~~~~
optimization.cc: In member function 'bool giac::nlp_problem::outer_approximation(const meth_parm&, const giac::vecteur&, optimum_t&)':
optimization.cc:5798:31: warning: using value of assignment with 'volatile'-qualified left operand is deprecated [-Wvolatile]
 5798 |             interrupted=ctrl_c=false;
      |                         ~~~~~~^~~~~~
make[3]: *** [Makefile:984: optimization.lo] Error 1

See
https://buildd.debian.org/status/fetch.php?pkg=giac&arch=amd64&ver=2.0.0.21%2Bdfsg2-2%2Bb1&stamp=1791791084&raw=0
for details.

Cheers
-- 
Sebastian Ramacher
Technical Details
Message-ID: <NNkw1-533n-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Sebastian Ramacher <sramacher@debian.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1150685: giac: FTBFS: optimization.cc:1274:9: error: reference to 'bitset' is ambiguous
Date: Mon, 12 Oct 2026 11:30:01 +0200
Message-ID: <NNkw1-533n-1@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Mon Oct 12 09:23:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Sebastian Ramacher <sramacher@debian.org>, 1150685@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: sramacher@debian.org, debian-science-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: report 1150685
X-Debian-Pr-Package: src:giac
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: giac
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Reportbug-Version: 13.2.0
X-Debian-User: sramacher
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/834297
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 78
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 12 Oct 2026 11:20:45 +0200
X-Original-Message-ID: <asymbTxkYrtd6rCY@ramacher.at>