Some more data points, as this now also blocks other packages in
stonking.
afdko 4.0.1+dfsg1-3 (stonking-proposed, 105 days) fails to build on all
architectures for the same reason. Ubuntu has antlr4-cpp-runtime 4.10
(the experimental version, needed by mysql-shell), while the antlr4 tool
that d/rules uses to regenerate the feature parser is 4.9.2, in both
Debian and Ubuntu. Debian unstable has runtime 4.9, so the tool and
runtime match there and afdko builds fine.
Switching hotconv to C++17 (CMAKE_CXX_STANDARD 17, which is what
upstream uses now) is not enough. The 4.9-generated code itself is
incompatible with the 4.10 runtime API (serialized ATN format change):
FeatLexer.h:82:43: error: 'virtual const
std::vector<std::__cxx11::basic_string<char> >& FeatLexer::getTokenNames()
const' marked 'override', but does not override
FeatLexer.h:85:39: error: invalid covariant return type for 'virtual const
std::vector<short unsigned int> FeatLexer::getSerializedATN() const'
FeatLexer.cpp:200:62: error: conversion from 'std::string_view' to non-scalar
type 'std::string' requested
FeatLexer.cpp:1457:35: error: cannot convert 'std::vector<short unsigned
int>' to 'antlr4::atn::SerializedATNView'
So afdko needs an antlr4 tool and C++ runtime that match. Possible ways:
- an antlr4 (Java tool) >= 4.10 in the archive, to match the runtime
- shipping parser sources generated by a matching antlr version
- building afdko against its own matching antlr4 runtime copy
The upstream fix targets antlr 4.13 (afdko >= 4.0.2), so it does not
help with the 4.10 runtime either, as noted in comment #1.
Impact meanwhile: 3.6.2 in stonking cannot be rebuilt, and its ttxn is
broken in release with fonttools 4.62:
File "/usr/lib/python3/dist-packages/afdko/ttxn.py", line 2114, in ttnDump
ttf = TTXNTTFont(input_file, 0, allowVID=options.allowVID,
AttributeError: 'Options' object has no attribute 'allowVID'
This made nototools 0.3.2-1 FTBFS (its gpos_diff tests call ttxn). I'm
uploading nototools 0.3.2-1ubuntu1, which skips those tests until afdko
is sorted out; that delta can be dropped once afdko 4.x builds.
afdko cannot simply be removed: mupdf (main) and fonts-cantarell build-
depend on afdko-bin, fonts-adobe-sourcesans3 on afdko, and
python3-cffsubr depends on afdko-bin.
** Attachment added: "afdko 4.0.1+dfsg1-3 build log in stonking with
CMAKE_CXX_STANDARD 17"
https://bugs.launchpad.net/bugs/2121389/+attachment/6008657/+files/afdko-4.0.1-cxx17-stonking.log.gz
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2121389
Title:
afdko: FTBFS in Plucky
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/afdko/+bug/2121389/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs