🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5607

Bug#1154894: contextfree: FTBFS on arm64: objs/cfdg.tab.hpp:45: error: unterminated #ifndef

#5607
From: Sebastian Ramacher
Date: Sun, 22 Nov 2026 20:40
538 lines
35686 bytes
Source: contextfree
Version: 3.5.0+dfsg-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: debian-arm@lists.debian.org, sramacher@debian.org
User: debian-arm@lists.debian.org
Usertags: arm64

Dear maintainer,

contextfree FTBFS on arm64:

g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/contextfree-3.5.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Isrc-common -Isrc-unix -Iobjs -Isrc-common/agg-extras -I/usr/local/include -O2 -Wall -Wextra -Wno-parentheses -std=c++20 -g -D_GLIBCXX_USE_C99_MATH=1 -MMD -MP -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG  -c -o objs/shape.o src-common/shape.cpp
In file included from src-common/scanner.h:49,
                 from src-common/builder.cpp:43:
objs/cfdg.tab.hpp:45: error: unterminated #ifndef
   45 | #ifndef YY_YY_OBJS_CFDG_TAB_HPP_INCLUDED
In file included from src-common/scanner.h:49,
                 from src-common/cfdg.cpp:40:
objs/cfdg.tab.hpp:45: error: unterminated #ifndef
   45 | #ifndef YY_YY_OBJS_CFDG_TAB_HPP_INCLUDED
In file included from src-common/cfdg.cpp:41:
objs/cfdg.tab.hpp:45: error: unterminated #ifndef
   45 | #ifndef YY_YY_OBJS_CFDG_TAB_HPP_INCLUDED
src-common/cfdg.ypp: warning: fix-its can be applied.  Rerun with option '--update'. [-Wother]
g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/contextfree-3.5.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Isrc-common -Isrc-unix -Iobjs -Isrc-common/agg-extras -I/usr/local/include -O2 -Wall -Wextra -Wno-parentheses -std=c++20 -g -D_GLIBCXX_USE_C99_MATH=1 -MMD -MP -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG  -c -o objs/variation.o src-common/variation.cpp
g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/contextfree-3.5.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Isrc-common -Isrc-unix -Iobjs -Isrc-common/agg-extras -I/usr/local/include -O2 -Wall -Wextra -Wno-parentheses -std=c++20 -g -D_GLIBCXX_USE_C99_MATH=1 -MMD -MP -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG  -c -o objs/tempfile.o src-common/tempfile.cpp
src-common/scanner.h:55:1: error: expected identifier before ‘namespace’
   55 | namespace yy {
      | ^~~~~~~~~
src-common/scanner.h:55:1: error: expected ‘}’ before ‘namespace’
objs/cfdg.tab.hpp:323:7: note: to match this ‘{’
  323 |       {
      |       ^
src-common/scanner.h:55:1: error: expected unqualified-id before ‘namespace’
   55 | namespace yy {
      | ^~~~~~~~~
In file included from /usr/include/c++/16/bits/stl_algo.h:59,
                 from /usr/include/c++/16/algorithm:63,
                 from src-common/builder.cpp:47:
/usr/include/c++/16/bits/algorithmfwd.h:47:1: error: expected unqualified-id before ‘namespace’
   47 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
/usr/include/c++/16/bits/stl_algo.h:80:1: error: expected unqualified-id before ‘namespace’
   80 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from /usr/include/c++/16/algorithm:65:
/usr/include/c++/16/bits/ranges_algo.h:44:1: error: expected unqualified-id before ‘namespace’
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from /usr/include/c++/16/algorithm:91:
/usr/include/c++/16/pstl/glue_algorithm_defs.h:18:1: error: expected unqualified-id before ‘namespace’
   18 | namespace std
      | ^~~~~~~~~
src-common/builder.cpp:49:7: error: expected nested-name-specifier before ‘namespace’
   49 | using namespace AST;
      |       ^~~~~~~~~
src-common/builder.cpp:51:34: error: invalid use of qualified-name ‘Builder::FlagNames’
   51 | const std::map<std::string, int> Builder::FlagNames = {
      |                                  ^~~~~~~
src-common/builder.cpp:105:10: error: invalid use of qualified-name ‘Builder::CurrentBuilder’
  105 | Builder* Builder::CurrentBuilder = nullptr;
      |          ^~~~~~~
src-common/builder.cpp:106:22: error: invalid use of qualified-name ‘Builder::BuilderMutex’
  106 | std::recursive_mutex Builder::BuilderMutex;
      |                      ^~~~~~~
src-common/builder.cpp:107:8: error: invalid use of qualified-name ‘Builder::MaxNatural’
  107 | double Builder::MaxNatural = 1000.0;
      |        ^~~~~~~
src-common/builder.cpp:108:5: error: invalid use of qualified-name ‘Builder::MaxNaturalDepth’
  108 | int Builder::MaxNaturalDepth = std::numeric_limits<int>::max();
      |     ^~~~~~~
src-common/builder.cpp:110:1: error: cannot define member function ‘Builder::Builder’ within ‘yy::CfdgParser::symbol_kind’
  110 | Builder::Builder(const cfdgi_ptr& cfdg, int variation)
      | ^~~~~~~
src-common/builder.cpp:129:1: error: cannot define member function ‘Builder::Builder’ within ‘yy::CfdgParser::symbol_kind’
  129 | Builder::~Builder()
      | ^~~~~~~
src-common/builder.cpp:136:1: error: cannot define member function ‘Builder::isMyBuilder’ within ‘yy::CfdgParser::symbol_kind’
  136 | Builder::isMyBuilder() const noexcept
      | ^~~~~~~
src-common/builder.cpp:142:1: error: cannot define member function ‘Builder::getUniqueFile’ within ‘yy::CfdgParser::symbol_kind’
  142 | Builder::getUniqueFile(const std::string* base, const std::string* file)
      | ^~~~~~~
src-common/builder.cpp:162:1: error: cannot define member function ‘Builder::error’ within ‘yy::CfdgParser::symbol_kind’
  162 | Builder::error(const yy::location& l, const std::string& msg)
      | ^~~~~~~
src-common/builder.cpp:170:1: error: cannot define member function ‘Builder::warning’ within ‘yy::CfdgParser::symbol_kind’
  170 | Builder::warning(const yy::location& l, const std::string& msg)
      | ^~~~~~~
src-common/builder.cpp:187:6: error: cannot define member function ‘Builder::error’ within ‘yy::CfdgParser::symbol_kind’
  187 | void Builder::error(int line, const char* msg)
      |      ^~~~~~~
src-common/builder.cpp:206:1: error: cannot define member function ‘Builder::system’ within ‘yy::CfdgParser::symbol_kind’
  206 | Builder::system()
      | ^~~~~~~
src-common/builder.cpp:212:1: error: cannot define member function ‘Builder::StringToShape’ within ‘yy::CfdgParser::symbol_kind’
  212 | Builder::StringToShape(const std::string& name, const yy::location& loc,
      | ^~~~~~~
src-common/builder.cpp:231:1: error: cannot define member function ‘Builder::ShapeToString’ within ‘yy::CfdgParser::symbol_kind’
  231 | Builder::ShapeToString(int shape)
      | ^~~~~~~
src-common/builder.cpp:237:1: error: cannot define member function ‘Builder::FlagToString’ within ‘yy::CfdgParser::symbol_kind’
  237 | Builder::FlagToString(int flag)
      | ^~~~~~~
src-common/builder.cpp:248:1: error: cannot define member function ‘Builder::IncludeFile’ within ‘yy::CfdgParser::symbol_kind’
  248 | Builder::IncludeFile(const std::string& fname)
      | ^~~~~~~
src-common/builder.cpp:278:1: error: cannot define member function ‘Builder::EndInclude’ within ‘yy::CfdgParser::symbol_kind’
  278 | Builder::EndInclude()
      | ^~~~~~~
src-common/builder.cpp:299:1: error: cannot define member function ‘Builder::SetShape’ within ‘yy::CfdgParser::symbol_kind’
  299 | Builder::SetShape(std::string* name, const yy::location& nameLoc, bool isPath)
      | ^~~~~~~
src-common/scanner.h:55:1: error: expected unqualified-id before ‘namespace’
   55 | namespace yy {
      | ^~~~~~~~~
In file included from src-common/pathIterator.h:29,
                 from src-common/tiledCanvas.h:34,
                 from src-common/cfdg.cpp:43:
/usr/include/agg2/agg_bounding_rect.h:24:1: error: expected unqualified-id before ‘namespace’
   24 | namespace agg
      | ^~~~~~~~~
In file included from /usr/include/agg2/agg_rasterizer_scanline_aa.h:32,
                 from src-common/pathIterator.h:30:
/usr/include/agg2/agg_rasterizer_cells_aa.h:39:1: error: expected unqualified-id before ‘namespace’
   39 | namespace agg
      | ^~~~~~~~~
In file included from /usr/include/agg2/agg_rasterizer_sl_clip.h:18,
                 from /usr/include/agg2/agg_rasterizer_scanline_aa.h:33:
/usr/include/agg2/agg_clip_liang_barsky.h:24:1: error: expected unqualified-id before ‘namespace’
   24 | namespace agg
      | ^~~~~~~~~
/usr/include/agg2/agg_rasterizer_sl_clip.h:20:1: error: expected unqualified-id before ‘namespace’
   20 | namespace agg
      | ^~~~~~~~~
In file included from /usr/include/agg2/agg_rasterizer_scanline_aa.h:34:
/usr/include/agg2/agg_rasterizer_scanline_aa_nogamma.h:37:1: error: expected unqualified-id before ‘namespace’
   37 | namespace agg
      | ^~~~~~~~~
/usr/include/agg2/agg_rasterizer_scanline_aa.h:38:1: error: expected unqualified-id before ‘namespace’
   38 | namespace agg
      | ^~~~~~~~~
In file included from /usr/include/agg2/agg_conv_stroke.h:23,
                 from src-common/pathIterator.h:31:
/usr/include/agg2/agg_vcgen_stroke.h:22:1: error: expected unqualified-id before ‘namespace’
   22 | namespace agg
      | ^~~~~~~~~
In file included from /usr/include/agg2/agg_conv_stroke.h:24:
/usr/include/agg2/agg_conv_adaptor_vcgen.h:21:1: error: expected unqualified-id before ‘namespace’
   21 | namespace agg
      | ^~~~~~~~~
/usr/include/agg2/agg_conv_stroke.h:26:1: error: expected unqualified-id before ‘namespace’
   26 | namespace agg
      | ^~~~~~~~~
In file included from /usr/include/agg2/agg_conv_curve.h:24,
                 from src-common/pathIterator.h:32:
/usr/include/agg2/agg_curves.h:22:1: error: expected unqualified-id before ‘namespace’
   22 | namespace agg
      | ^~~~~~~~~
/usr/include/agg2/agg_conv_curve.h:26:1: error: expected unqualified-id before ‘namespace’
   26 | namespace agg
      | ^~~~~~~~~
src-common/builder.cpp:322:18: error: ‘ASTrule’ has not been declared
  322 | Builder::AddRule(ASTrule* rule)
      |                  ^~~~~~~
src-common/pathIterator.h:36:1: error: expected unqualified-id before ‘namespace’
   36 | namespace AST {
      | ^~~~~~~~~
src-common/builder.cpp:322:1: error: cannot define member function ‘Builder::AddRule’ within ‘yy::CfdgParser::symbol_kind’
  322 | Builder::AddRule(ASTrule* rule)
      | ^~~~~~~
src-common/builder.cpp:348:1: error: cannot define member function ‘Builder::NextParameterDecl’ within ‘yy::CfdgParser::symbol_kind’
  348 | Builder::NextParameterDecl(const std::string& type, const std::string& name,
      | ^~~~~~~
src-common/pathIterator.h:42:37: error: ‘conv_curve’ in namespace ‘agg’ does not name a template type; did you mean ‘is_curve’?
   42 |     using CurvedPath         = agg::conv_curve<agg::path_storage>;
      |                                     ^~~~~~~~~~
      |                                     is_curve
src-common/pathIterator.h:43:37: error: ‘conv_stroke’ in namespace ‘agg’ does not name a template type
   43 |     using CurvedStroked      = agg::conv_stroke<CurvedPath>;
      |                                     ^~~~~~~~~~~
src-common/builder.cpp:360:1: error: ‘ASTdefine’ does not name a type
  360 | ASTdefine*
      | ^~~~~~~~~
src-common/builder.cpp:375:1: error: ‘ASTdefine’ does not name a type
  375 | ASTdefine*
      | ^~~~~~~~~
src-common/builder.cpp:439:22: error: ‘ASTdefine’ has not been declared
  439 | Builder::CheckConfig(ASTdefine* cfg)
      |                      ^~~~~~~~~
src-common/builder.cpp:439:1: error: cannot define member function ‘Builder::CheckConfig’ within ‘yy::CfdgParser::symbol_kind’
  439 | Builder::CheckConfig(ASTdefine* cfg)
      | ^~~~~~~
src-common/builder.cpp:458:21: error: ‘ASTdefine’ has not been declared
  458 | Builder::MakeConfig(ASTdefine* cfg)
      |                     ^~~~~~~~~
src-common/builder.cpp:458:1: error: cannot define member function ‘Builder::MakeConfig’ within ‘yy::CfdgParser::symbol_kind’
  458 | Builder::MakeConfig(ASTdefine* cfg)
      | ^~~~~~~
src-common/builder.cpp:517:26: error: ‘ASTdefine’ has not been declared
  517 | Builder::TypeCheckConfig(ASTdefine* cfg)
      |                          ^~~~~~~~~
src-common/builder.cpp:517:1: error: cannot define member function ‘Builder::TypeCheckConfig’ within ‘yy::CfdgParser::symbol_kind’
  517 | Builder::TypeCheckConfig(ASTdefine* cfg)
      | ^~~~~~~
src-common/pathIterator.h:44:52: error: ‘CurvedStroked’ was not declared in this scope
   44 |     using CurvedStrokedTrans = agg::conv_transform<CurvedStroked, const agg::trans_affine>;
      |                                                    ^~~~~~~~~~~~~
src-common/pathIterator.h:44:90: error: template argument 1 is invalid
   44 |     using CurvedStrokedTrans = agg::conv_transform<CurvedStroked, const agg::trans_affine>;
      |                                                                                          ^
src-common/pathIterator.h:44:32: error: expected type-specifier
   44 |     using CurvedStrokedTrans = agg::conv_transform<CurvedStroked, const agg::trans_affine>;
      |                                ^~~
src-common/builder.cpp:558:1: error: ‘ASTexpression’ does not name a type
  558 | ASTexpression*
      | ^~~~~~~~~~~~~
src-common/builder.cpp:590:1: error: ‘ASTexpression’ does not name a type
  590 | ASTexpression*
      | ^~~~~~~~~~~~~
src-common/builder.cpp:608:1: error: ‘ASTexpression’ does not name a type
  608 | ASTexpression*
      | ^~~~~~~~~~~~~
src-common/pathIterator.h:45:52: error: ‘CurvedPath’ was not declared in this scope
   45 |     using CurvedTrans        = agg::conv_transform<CurvedPath, const agg::trans_affine>;
      |                                                    ^~~~~~~~~~
src-common/builder.cpp:621:1: error: ‘ruleSpec_ptr’ does not name a type
  621 | ruleSpec_ptr
      | ^~~~~~~~~~~~
src-common/pathIterator.h:45:87: error: template argument 1 is invalid
   45 |     using CurvedTrans        = agg::conv_transform<CurvedPath, const agg::trans_affine>;
      |                                                                                       ^
src-common/pathIterator.h:45:32: error: expected type-specifier
   45 |     using CurvedTrans        = agg::conv_transform<CurvedPath, const agg::trans_affine>;
      |                                ^~~
src-common/pathIterator.h:46:37: error: ‘conv_stroke’ in namespace ‘agg’ does not name a template type
   46 |     using CurvedTransStroked = agg::conv_stroke<CurvedTrans>;
      |                                     ^~~~~~~~~~~
src-common/builder.cpp:672:22: error: ‘ASTtermArray’ has not been declared
  672 | Builder::MakeModTerm(ASTtermArray& dest, term_ptr t)
      |                      ^~~~~~~~~~~~
src-common/pathIterator.h:49:5: error: ‘CurvedPath’ does not name a type
   49 |     CurvedPath          curved;
      |     ^~~~~~~~~~
src-common/builder.cpp:672:42: error: ‘term_ptr’ has not been declared; did you mean ‘param_ptr’?
  672 | Builder::MakeModTerm(ASTtermArray& dest, term_ptr t)
      |                                          ^~~~~~~~
      |                                          param_ptr
src-common/builder.cpp:672:1: error: cannot define member function ‘Builder::MakeModTerm’ within ‘yy::CfdgParser::symbol_kind’
  672 | Builder::MakeModTerm(ASTtermArray& dest, term_ptr t)
      | ^~~~~~~
src-common/pathIterator.h:50:5: error: ‘CurvedStroked’ does not name a type
   50 |     CurvedStroked       curvedStroked;
      |     ^~~~~~~~~~~~~
src-common/builder.cpp:693:1: error: ‘ASTreplacement’ does not name a type
  693 | ASTreplacement*
      | ^~~~~~~~~~~~~~
src-common/pathIterator.h:51:5: error: ‘CurvedStrokedTrans’ does not name a type
   51 |     CurvedStrokedTrans  curvedStrokedTrans;
      |     ^~~~~~~~~~~~~~~~~~
src-common/builder.cpp:737:23: error: ‘str_ptr’ has not been declared
  737 | Builder::MakeFunction(str_ptr name, exp_ptr args, const yy::location& nameLoc,
      |                       ^~~~~~~
src-common/pathIterator.h:52:5: error: ‘CurvedTrans’ does not name a type
   52 |     CurvedTrans         curvedTrans;
      |     ^~~~~~~~~~~
src-common/builder.cpp:737:37: error: ‘exp_ptr’ has not been declared
  737 | Builder::MakeFunction(str_ptr name, exp_ptr args, const yy::location& nameLoc,
      |                                     ^~~~~~~
src-common/builder.cpp:737:1: error: cannot define member function ‘Builder::MakeFunction’ within ‘yy::CfdgParser::symbol_kind’
  737 | Builder::MakeFunction(str_ptr name, exp_ptr args, const yy::location& nameLoc,
      | ^~~~~~~
src-common/builder.cpp:770:27: error: ‘mod_ptr’ has not been declared
  770 | Builder::MakeModification(mod_ptr mod, const yy::location& loc, bool canonical)
      |                           ^~~~~~~
src-common/builder.cpp:770:1: error: cannot define member function ‘Builder::MakeModification’ within ‘yy::CfdgParser::symbol_kind’
  770 | Builder::MakeModification(mod_ptr mod, const yy::location& loc, bool canonical)
      | ^~~~~~~
src-common/builder.cpp:782:1: error: cannot define member function ‘Builder::GetTypeInfo’ within ‘yy::CfdgParser::symbol_kind’
  782 | Builder::GetTypeInfo(int name, AST::ASTdefine*& func, const AST::ASTparameters*& p)
      | ^~~~~~~
src-common/pathIterator.h:53:5: error: ‘CurvedTransStroked’ does not name a type
   53 |     CurvedTransStroked  curvedTransStroked;
      |     ^~~~~~~~~~~~~~~~~~
src-common/builder.cpp:790:1: error: cannot define member function ‘Builder::GetRule’ within ‘yy::CfdgParser::symbol_kind’
  790 | Builder::GetRule(int name)
      | ^~~~~~~
src-common/builder.cpp:796:28: error: ‘ASTrepContainer’ has not been declared
  796 | Builder::push_repContainer(ASTrepContainer& c)
      |                            ^~~~~~~~~~~~~~~
src-common/builder.cpp:796:1: error: cannot define member function ‘Builder::push_repContainer’ within ‘yy::CfdgParser::symbol_kind’
  796 | Builder::push_repContainer(ASTrepContainer& c)
      | ^~~~~~~
In file included from /usr/include/c++/16/fstream:44,
                 from src-common/cfdg.cpp:44:
/usr/include/c++/16/bits/codecvt.h:49:1: error: expected unqualified-id before ‘namespace’
   49 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/c++/16/bits/basic_file.h:40,
                 from /usr/include/c++/16/fstream:46:
/usr/include/aarch64-linux-gnu/c++/16/bits/c++io.h:38:1: error: expected unqualified-id before ‘namespace’
   38 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
/usr/include/aarch64-linux-gnu/c++/16/bits/basic_file.h:44:1: error: expected unqualified-id before ‘namespace’
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
/usr/include/c++/16/fstream:59:1: error: expected unqualified-id before ‘namespace’
   59 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from /usr/include/c++/16/fstream:1372:
/usr/include/c++/16/bits/fstream.tcc:48:1: error: expected unqualified-id before ‘namespace’
   48 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from src-common/cfdg.cpp:45:
/usr/include/c++/16/sstream:63:1: error: expected unqualified-id before ‘namespace’
   63 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
src-common/builder.cpp:804:31: error: ‘ASTrepContainer’ has not been declared
  804 | Builder::process_repContainer(ASTrepContainer& c)
      |                               ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/16/sstream:1424:
/usr/include/c++/16/bits/sstream.tcc:43:1: error: expected unqualified-id before ‘namespace’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from /usr/include/c++/16/bits/stl_algo.h:59,
                 from /usr/include/c++/16/algorithm:63,
                 from src-common/cfdg.cpp:46:
/usr/include/c++/16/bits/algorithmfwd.h:47:1: error: expected unqualified-id before ‘namespace’
   47 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
src-common/builder.cpp:804:1: error: cannot define member function ‘Builder::process_repContainer’ within ‘yy::CfdgParser::symbol_kind’
  804 | Builder::process_repContainer(ASTrepContainer& c)
      | ^~~~~~~
/usr/include/c++/16/bits/stl_algo.h:80:1: error: expected unqualified-id before ‘namespace’
   80 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from /usr/include/c++/16/algorithm:65:
/usr/include/c++/16/bits/ranges_algo.h:44:1: error: expected unqualified-id before ‘namespace’
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from /usr/include/c++/16/algorithm:91:
/usr/include/c++/16/pstl/glue_algorithm_defs.h:18:1: error: expected unqualified-id before ‘namespace’
   18 | namespace std
      | ^~~~~~~~~
src-common/cfdg.cpp:51:14: error: invalid use of qualified-name ‘CfdgError::Default’
   51 | yy::location CfdgError::Default;
      |              ^~~~~~~~~
src-common/cfdg.cpp:52:8: error: invalid use of qualified-name ‘Renderer::Infinity’
   52 | double Renderer::Infinity = std::numeric_limits<double>::infinity();      // Ignore the gcc warning
      |        ^~~~~~~~
src-common/cfdg.cpp:53:18: error: invalid use of qualified-name ‘Renderer::AbortEverything’
   53 | std::atomic_bool Renderer::AbortEverything{false};
      |                  ^~~~~~~~
src-common/cfdg.cpp:54:10: error: invalid use of qualified-name ‘Renderer::ParamCount’
   54 | unsigned Renderer::ParamCount = 0;
      |          ^~~~~~~~
src-common/cfdg.cpp:55:29: error: invalid use of qualified-name ‘CFDG::ParamNames’
   55 | const CfgArray<std::string> CFDG::ParamNames = {
      |                             ^~~~
src-common/cfdg.cpp:78:1: error: cannot define member function ‘CFDG::lookupCfg’ within ‘yy::CfdgParser::stack_symbol_type’
   78 | CFDG::lookupCfg(const std::string& name)
      | ^~~~
src-common/cfdg.cpp:88:1: error: cannot define member function ‘CFDG::getCfgName’ within ‘yy::CfdgParser::stack_symbol_type’
   88 | CFDG::getCfgName(int c)
      | ^~~~
src-common/cfdg.cpp:96:18: error: ‘constexpr’ needed for in-class initialization of static data member ‘CFDGImpl* yy::CfdgParser::stack_symbol_type::LatestCFDGimpl’ of non-integral type [-fpermissive]
   96 | static CFDGImpl* LatestCFDGimpl = nullptr;
      |                  ^~~~~~~~~~~~~~
src-common/cfdg.cpp:99:1: error: cannot define member function ‘CFDG::ShapeToString’ within ‘yy::CfdgParser::stack_symbol_type’
   99 | CFDG::ShapeToString(int shape)
      | ^~~~
src-common/cfdg.cpp:108:1: error: cannot define member function ‘CFDG::ShapeToParams’ within ‘yy::CfdgParser::stack_symbol_type’
  108 | CFDG::ShapeToParams(int shape)
      | ^~~~
src-common/cfdg.cpp:116:1: error: cannot define member function ‘CfdgError::CfdgError’ within ‘yy::CfdgParser::stack_symbol_type’
  116 | CfdgError::CfdgError(const yy::location& loc, const char* msg)
      | ^~~~~~~~~
src-common/cfdg.cpp:123:1: error: cannot define member function ‘CfdgError::CfdgError’ within ‘yy::CfdgParser::stack_symbol_type’
  123 | CfdgError::CfdgError(const char* msg)
      | ^~~~~~~~~
src-common/cfdg.cpp:131:1: error: cannot define member function ‘CfdgError::what’ within ‘yy::CfdgParser::stack_symbol_type’
  131 | CfdgError::what() const noexcept
      | ^~~~~~~~~
src-common/cfdg.cpp:137:1: error: cannot define member function ‘DeferUntilRuntime::what’ within ‘yy::CfdgParser::stack_symbol_type’
  137 | DeferUntilRuntime::what() const noexcept
      | ^~~~~~~~~~~~~~~~~
src-common/cfdg.cpp:143:1: error: cannot define member function ‘CfdgError::Error’ within ‘yy::CfdgParser::stack_symbol_type’
  143 | CfdgError::Error(const yy::location& errLoc, const char* msg, Builder* b)
      | ^~~~~~~~~
src-common/cfdg.cpp:159:1: error: cannot define member function ‘CfdgError::Warning’ within ‘yy::CfdgParser::stack_symbol_type’
  159 | CfdgError::Warning(const yy::location& errLoc, const char* msg)
      | ^~~~~~~~~
src-common/cfdg.cpp:167:86: error: invalid use of qualified-name ‘AbstractSystem::TempPrefixes’
  167 | const std::array<const AbstractSystem::FileChar*, AbstractSystem::NumberofTempTypes> AbstractSystem::TempPrefixes = {
      |                                                                                      ^~~~~~~~~~~~~~
src-common/cfdg.cpp:174:86: error: invalid use of qualified-name ‘AbstractSystem::TempSuffixes’
  174 | const std::array<const AbstractSystem::FileChar*, AbstractSystem::NumberofTempTypes> AbstractSystem::TempSuffixes = {
      |                                                                                      ^~~~~~~~~~~~~~
src-common/cfdg.cpp:177:33: error: invalid use of qualified-name ‘AbstractSystem::TempPrefixAll’
  177 | const AbstractSystem::FileChar* AbstractSystem::TempPrefixAll = FileStr("cfdg-temp-");
      |                                 ^~~~~~~~~~~~~~
src-common/cfdg.cpp:179:1: error: cannot define member function ‘AbstractSystem::AbstractSystem’ within ‘yy::CfdgParser::stack_symbol_type’
  179 | AbstractSystem::~AbstractSystem() = default;
      | ^~~~~~~~~~~~~~
src-common/cfdg.cpp:181:6: error: cannot define member function ‘AbstractSystem::stats’ within ‘yy::CfdgParser::stack_symbol_type’
  181 | void AbstractSystem::stats(const Stats&)
      |      ^~~~~~~~~~~~~~
src-common/cfdg.cpp:185:1: error: cannot define member function ‘AbstractSystem::tempFileForRead’ within ‘yy::CfdgParser::stack_symbol_type’
  185 | AbstractSystem::tempFileForRead(const FileString& path)
      | ^~~~~~~~~~~~~~
src-common/builder.cpp:817:27: error: ‘ASTreplacement’ has not been declared
  817 | Builder::pop_repContainer(ASTreplacement* r)
      |                           ^~~~~~~~~~~~~~
src-common/builder.cpp:817:1: error: cannot define member function ‘Builder::pop_repContainer’ within ‘yy::CfdgParser::symbol_kind’
  817 | Builder::pop_repContainer(ASTreplacement* r)
      | ^~~~~~~
src-common/cfdg.cpp:204:1: error: cannot define member function ‘AbstractSystem::openFileForRead’ within ‘yy::CfdgParser::stack_symbol_type’
  204 | AbstractSystem::openFileForRead(const std::string& path)
      | ^~~~~~~~~~~~~~
src-common/cfdg.cpp:233:1: error: cannot define member function ‘Canvas::Canvas’ within ‘yy::CfdgParser::stack_symbol_type’
  233 | Canvas::~Canvas() = default;
      | ^~~~~~
src-common/cfdg.cpp:235:1: error: cannot define member function ‘Renderer::Renderer’ within ‘yy::CfdgParser::stack_symbol_type’
  235 | Renderer::Renderer(int w, int h)
      | ^~~~~~~~
src-common/cfdg.cpp:242:1: error: cannot define member function ‘Renderer::Renderer’ within ‘yy::CfdgParser::stack_symbol_type’
  242 | Renderer::~Renderer() = default;
      | ^~~~~~~~
src-common/cfdg.cpp:246:1: error: cannot define member function ‘CFDG::CFDG’ within ‘yy::CfdgParser::stack_symbol_type’
  246 | CFDG::~CFDG() = default;
      | ^~~~
src-common/cfdg.cpp:250:1: error: cannot define member function ‘CFDG::ParseFile’ within ‘yy::CfdgParser::stack_symbol_type’
  250 | CFDG::ParseFile(const char* fname, AbstractSystem* system, int variation,
      | ^~~~
In file included from src-common/cfdg.cpp:364:
src-common/examples.h:2:1: error: invalid use of qualified-name ‘AbstractSystem::ExamplesMap’
    2 | AbstractSystem::ExamplesMap{
      | ^~~~~~~~~~~~~~
src-common/examples.h:6772:3: error: expected ‘}’ at end of input
 6772 | };
      |   ^
objs/cfdg.tab.hpp:799:5: note: to match this ‘{’
  799 |     {
      |     ^
src-common/examples.h:6772:3: error: expected unqualified-id at end of input
 6772 | };
      |   ^
src-common/examples.h:6772:3: error: expected ‘}’ at end of input
objs/cfdg.tab.hpp:195:3: note: to match this ‘{’
  195 |   {
      |   ^
src-common/builder.cpp:839:19: error: ‘ASTreplacement’ has not been declared
  839 | Builder::push_rep(ASTreplacement* r, bool global)
      |                   ^~~~~~~~~~~~~~
src-common/builder.cpp:839:1: error: cannot define member function ‘Builder::push_rep’ within ‘yy::CfdgParser::symbol_kind’
  839 | Builder::push_rep(ASTreplacement* r, bool global)
      | ^~~~~~~
src-common/examples.h:6772:3: error: expected unqualified-id at end of input
 6772 | };
      |   ^
src-common/examples.h:6772:3: error: expected ‘}’ at end of input
objs/cfdg.tab.hpp:187:14: note: to match this ‘{’
  187 | namespace yy {
      |              ^
src-common/builder.cpp:854:1: error: ‘ASTparameter’ does not name a type
  854 | ASTparameter*
      | ^~~~~~~~~~~~
src-common/builder.cpp:867:1: error: cannot define member function ‘Builder::PushNameSpace’ within ‘yy::CfdgParser::symbol_kind’
  867 | Builder::PushNameSpace(AST::str_ptr n, const yy::location& loc)
      | ^~~~~~~
src-common/builder.cpp:884:1: error: cannot define member function ‘Builder::PopNameSpace’ within ‘yy::CfdgParser::symbol_kind’
  884 | Builder::PopNameSpace()
      | ^~~~~~~
src-common/builder.cpp:896:1: error: cannot define member function ‘Builder::CheckVariableName’ within ‘yy::CfdgParser::symbol_kind’
  896 | Builder::CheckVariableName(int index, const yy::location& loc, bool isParam)
      | ^~~~~~~
src-common/builder.cpp:910:1: error: cannot define member function ‘Builder::CheckName’ within ‘yy::CfdgParser::symbol_kind’
  910 | Builder::CheckName(const std::string& name, const yy::location& loc,
      | ^~~~~~~
src-common/builder.cpp:934:1: error: cannot define member function ‘Builder::inColor’ within ‘yy::CfdgParser::symbol_kind’
  934 | Builder::inColor()
      | ^~~~~~~
src-common/builder.cpp:940:1: error: cannot define member function ‘Builder::timeWise’ within ‘yy::CfdgParser::symbol_kind’
  940 | Builder::timeWise()
      | ^~~~~~~
src-common/builder.cpp:946:1: error: cannot define member function ‘Builder::blended’ within ‘yy::CfdgParser::symbol_kind’
  946 | Builder::blended()
      | ^~~~~~~
src-common/builder.cpp:952:1: error: cannot define member function ‘Builder::impure’ within ‘yy::CfdgParser::symbol_kind’
  952 | Builder::impure() const noexcept
      | ^~~~~~~
src-common/builder.cpp:955:2: error: expected ‘}’ at end of input
  955 | }
      |  ^
objs/cfdg.tab.hpp:321:5: note: to match this ‘{’
  321 |     {
      |     ^
src-common/builder.cpp:955:2: error: expected unqualified-id at end of input
  955 | }
      |  ^
src-common/builder.cpp:955:2: error: expected ‘}’ at end of input
objs/cfdg.tab.hpp:195:3: note: to match this ‘{’
  195 |   {
      |   ^
src-common/builder.cpp: In static member function ‘static bool yy::CfdgParser::symbol_kind::badContainer(int)’:
src-common/builder.cpp:834:30: error: ‘ASTreplacement’ has not been declared
  834 |     return (containerType & (ASTreplacement::op | ASTreplacement::replacement)) ==
      |                              ^~~~~~~~~~~~~~
src-common/builder.cpp:834:51: error: ‘ASTreplacement’ has not been declared
  834 |     return (containerType & (ASTreplacement::op | ASTreplacement::replacement)) ==
      |                                                   ^~~~~~~~~~~~~~
src-common/builder.cpp:835:14: error: ‘ASTreplacement’ has not been declared
  835 |             (ASTreplacement::op | ASTreplacement::replacement);
      |              ^~~~~~~~~~~~~~
src-common/builder.cpp:835:35: error: ‘ASTreplacement’ has not been declared
  835 |             (ASTreplacement::op | ASTreplacement::replacement);
      |                                   ^~~~~~~~~~~~~~
src-common/builder.cpp: At global scope:
src-common/builder.cpp:955:2: error: expected unqualified-id at end of input
  955 | }
      |  ^
src-common/builder.cpp:955:2: error: expected ‘}’ at end of input
objs/cfdg.tab.hpp:187:14: note: to match this ‘{’
  187 | namespace yy {
      |              ^
g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/contextfree-3.5.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Isrc-common -Isrc-unix -Iobjs -Isrc-common/agg-extras -I/usr/local/include -O2 -Wall -Wextra -Wno-parentheses -std=c++20 -g -D_GLIBCXX_USE_C99_MATH=1 -MMD -MP -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG  -c -o objs/commandLineSystem.o src-common/commandLineSystem.cpp
g++ -g -O2 -ffile-prefix-map=/build/reproducible-path/contextfree-3.5.0+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Isrc-common -Isrc-unix -Iobjs -Isrc-common/agg-extras -I/usr/local/include -O2 -Wall -Wextra -Wno-parentheses -std=c++20 -g -D_GLIBCXX_USE_C99_MATH=1 -MMD -MP -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG  -c -o objs/aggCanvas.o src-common/aggCanvas.cpp
make[1]: *** [Makefile:209: objs/cfdg.o] Error 1

See
https://buildd.debian.org/status/fetch.php?pkg=contextfree&arch=arm64&ver=3.5.0%2Bdfsg-1&stamp=1794064639&raw=0
for details.

Cheers
-- 
Sebastian Ramacher
Technical Details
Message-ID: <O2mvT-dxdW-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Sebastian Ramacher <sramacher@debian.org>
Newsgroups: linux.debian.bugs.dist,linux.debian.ports.arm
Subject: Bug#1154894: contextfree: FTBFS on arm64: objs/cfdg.tab.hpp:45: error: unterminated #ifndef
Date: Sun, 22 Nov 2026 21:40:01 +0100
Message-ID: <O2mvT-dxdW-5@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov 22 20:39:18 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Sebastian Ramacher <sramacher@debian.org>, 1154894@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-arm@lists.debian.org, sramacher@debian.org, john@glyphic.com
X-Debian-Pr-Message: report 1154894
X-Debian-Pr-Package: src:contextfree
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: contextfree
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Reportbug-Version: 13.2.0+nmu1
X-Debian-User: sramacher
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004242
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 538
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 22 Nov 2026 21:36:45 +0100
X-Original-Message-ID: <awNSXfSLLdM31WXO@ramacher.at>