[From nobody Wed Oct 14 17:37:06 2026
Received: (at submit) by bugs.debian.org; 12 Oct 2026 09:20:53 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-107.4 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
 FROMDEVELOPER,SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 58; hammy, 150; neutral, 66; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;sramacher@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:57052)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sramacher@debian.org&gt;)
 id 1xGCDF-00EhJp-2V for submit@bugs.debian.org;
 Mon, 12 Oct 2026 09:20:53 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Transfer-Encoding:Content-Type
 :MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=QhvlX8jlQt6CWwRbjF0Pa3cRQwv2zPDvPXrB9ZH/UTo=; b=aNagahqthC0MQ7f21d6suXm1pQ
 LiVaSqwlCMrofnx8C4Invrzeafq5m9fCTxRxF/Puo/Aci6UvjC0tp7Zpxi2lBLcVl9yGEcfqhF2sY
 JaewHs3h3rxcXxn7xqMdMB8VsM8J7tE0YKpV2tCBSdz0tPYlrmj19cHc2FooSxlZ4PPoqBuojESkT
 1cnprjZXYC9HqhW2XFCTwK5hwnByjBIbouBV0TEzpSy31d+8XSAzrXWfP8aDMJjG1hdCzl121OKCk
 +fQhoUR5yTDpZPvOyXEg/mVoN9AsswLvURl735YNTW2JHO/3J3FryqVVLFb8AFRhkQBSCO3ZsZvru
 cKl5Ztbw==;
Received: from authenticated-user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sramacher@debian.org&gt;)
 id 1xGCDD-002kgU-1s for submit@bugs.debian.org;
 Mon, 12 Oct 2026 09:20:51 +0000
Received: by rigel.ramacher.at (Postfix, from userid 1000)
 id F30E0C01F67E; Mon, 12 Oct 2026 11:20:45 +0200 (CEST)
Date: Mon, 12 Oct 2026 11:20:45 +0200
From: Sebastian Ramacher &lt;sramacher@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: giac: FTBFS: optimization.cc:1274:9: error: reference to 'bitset' is
 ambiguous
Message-ID: &lt;asymbTxkYrtd6rCY@ramacher.at&gt;
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
Delivered-To: submit@bugs.debian.org

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&lt;T&gt; (const T &amp; n,const T &amp; d) : num(n),den(d) {};
      |                ^
fraction.h:38:16: note: remove the '&lt; &gt;'
fraction.h:39:16: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
   39 |   Tfraction&lt;T&gt; (const T &amp; n) : num(n),den(T(1)) {}; // does not work properly??
      |                ^
fraction.h:39:16: note: remove the '&lt; &gt;'
fraction.h:40:16: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
   40 |   Tfraction&lt;T&gt; (const Tfraction&lt;T&gt; &amp; f) : num(f.num), den(f.den) {};
      |                ^
fraction.h:40:16: note: remove the '&lt; &gt;'
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&lt;T&gt;(const tensor&lt;T&gt; &amp; P): ref_count(1),t(P) {}
      |                   ^
poly.h:226:19: note: remove the '&lt; &gt;'
poly.h:227:19: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
  227 |     Tref_tensor&lt;T&gt;(int dim): ref_count(1),t(dim) {}
      |                   ^
poly.h:227:19: note: remove the '&lt; &gt;'
optimization.cc: In function 'void giac::vars_arrangements(matrice, ipdiff::ivectors&amp;, const context*)':
optimization.cc:1274:9: error: reference to 'bitset' is ambiguous
 1274 |         bitset&lt;32&gt; b(k);
      |         ^~~~~~
  • there are 2 candidates
In file included from graphe.h:37,
                 from optimization.cc:25:
    • candidate 1: 'template&lt;long unsigned int _Nb&gt; 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&lt;32&gt; b(k);
      |                    ^
optimization.cc: In function 'bool giac::find_global_extrema_recursively(const gen&amp;, const vecteur&amp;, const vecteur&amp;, const vecteur&amp;, const vecteur&amp;, const gen_map&amp;, const std::map&lt;int, bool&gt;&amp;, const std::map&lt;int, gen&gt;&amp;, gen&amp;, gen&amp;, vecteur&amp;, vecteur&amp;, 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&amp;, giac::vecteur&amp;, giac::vecteur&amp;, 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&amp;, const giac::vecteur&amp;, optimum_t&amp;)':
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&amp;, const giac::vecteur&amp;, optimum_t&amp;)':
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&amp;arch=amd64&amp;ver=2.0.0.21%2Bdfsg2-2%2Bb1&amp;stamp=1791791084&amp;raw=0
for details.

Cheers
-- 
Sebastian Ramacher
]