Repository navigation
Conversation
contrib/fstlib was OpenFst 1.8.3 with two local changes: fst/fst.h's FstImpl::operator= assigned a raw pointer to a std::unique_ptr, which current compilers reject, and fst/bi-table.h kept current_entry_ as a copy instead of a pointer. OpenFst 1.8.4 fixes the first itself; the second silenced a warning (the pointer is only dereferenced within the FindId call that set it), and 1.8.4 and 1.8.5 keep the pointer. OpenFst is now a dependency: - an installed OpenFst is used when a test program using it the way COATi does links against it. OpenFst installs no pkg-config or CMake file, so it is found with find_library(); stock 1.8.2 and 1.8.3 fail the test on the fst/fst.h error above; - otherwise Meson downloads OpenFst 1.8.5 (subprojects/openfst.wrap, checksummed) and builds libfst from the same eleven sources as before (subprojects/packagefiles/openfst/meson.build); - -Dsystem_openfst=disabled always uses the download, =enabled requires the installed one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
The vendored OpenFST library has been updated to 1.8.5. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This replaces the bundled
contrib/fstlibwith OpenFst as a dependency, the way Eigen and nlohmann_json are already handled.contrib/fstlibis OpenFst 1.8.3 with two local changes:fst/fst.h:FstImpl::operator=assigned a raw pointer to astd::unique_ptr, which current compilers reject. OpenFst 1.8.4 fixes this itself.fst/bi-table.h:current_entry_kept as a copy instead of a pointer. This silenced a warning: the pointer is only dereferenced inside theFindIdcall that set it, and 1.8.4 and 1.8.5 keep the pointer.How OpenFst is found now:
Encode/Decode,Compose,ShortestPath,Verify,SymbolTable), links against it. OpenFst installs no pkg-config or CMake file, so the library is found withfind_library(). Stock 1.8.2 and 1.8.3 fail the test on thefst/fst.herror above.subprojects/openfst.wrap, checksummed) and buildslibfstfrom the same eleven sources as before (subprojects/packagefiles/openfst/meson.build).-Dsystem_openfst=disabledalways uses the download;-Dsystem_openfst=enabledrequires the installed one and stops with an error otherwise.README and CHANGELOG say so. This deletes
contrib/fstlib/fst/bi-table.h, which #29 edits; whichever lands second resolves to the deletion.Test
On Debian 13 (Debian's
libfst-dev1.8.4 installed), with-Dtest=trueunless stated:meson testmainwith #29 (bundled 1.8.3), GCC 14.2auto, andenabled), GCC 14.2disabled), GCC 14.2coati alignpairwith each ofdna tri-mg tri-ecm mar-mg mar-ecmonsampledata/example-00{1,2,3}.fasta(FASTA and JSON output, and-sscoring),coati msawithmar-mgandmar-ecmon the threeexample-msa-*sets, andcoati sample -n 20 -s 42: all 193 outputs (files, stdout, stderr, exit status) are byte-identical between the bundled 1.8.3 and this branch with the installed 1.8.4 or with OpenFst 1.8.4 or 1.8.5 downloaded.gcc:16Docker image): every translation unit checked with-fsyntax-onlycompiles -- 52/52 with the download (OpenFst's eleven included), 41/41 against the installed headers.autofalls back to the download andenabledstops with its error.Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com