Skip to content

Build Error when using GCC 14 #59

@matthiasdotsh

Description

@matthiasdotsh

Hi,

I'm currently unable to build openfst/kaldi with a gcc 14.

Building openfst fails with:

/nix/store/xb8h6kfjbqclshgxq5ikh9maavxn3z1g-source/src/include/fst/fst.h:655:59: error: no match for 'operator=' (operand types are 'std::unique_ptr<fst::SymbolTable>' and 'fst::SymbolTable*')
  655 |     isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
      |                                                           ^~~~~~~ 

I was able to compile kaldi with gcc14 using the following patch.

Is there any chance to get this merged into your openfst fork? Or what is the best way to fix the kaldi compilation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions