kenlm icon indicating copy to clipboard operation
kenlm copied to clipboard

make and get error: 'bz_stream' does not name a type; did you mean 'z_stream'

Open liuxymvp opened this issue 2 years ago • 0 comments

[ 17%] Building CXX object util/CMakeFiles/kenlm_util.dir/stream/rewindable_stream.cc.o [ 18%] Building CXX object util/CMakeFiles/kenlm_util.dir/bit_packing.cc.o [ 20%] Building CXX object util/CMakeFiles/kenlm_util.dir/ersatz_progress.cc.o [ 21%] Building CXX object util/CMakeFiles/kenlm_util.dir/exception.cc.o [ 22%] Building CXX object util/CMakeFiles/kenlm_util.dir/file.cc.o [ 23%] Building CXX object util/CMakeFiles/kenlm_util.dir/file_piece.cc.o [ 25%] Building CXX object util/CMakeFiles/kenlm_util.dir/float_to_string.cc.o [ 26%] Building CXX object util/CMakeFiles/kenlm_util.dir/integer_to_string.cc.o [ 27%] Building CXX object util/CMakeFiles/kenlm_util.dir/mmap.cc.o [ 28%] Building CXX object util/CMakeFiles/kenlm_util.dir/murmur_hash.cc.o [ 30%] Building CXX object util/CMakeFiles/kenlm_util.dir/parallel_read.cc.o [ 31%] Building CXX object util/CMakeFiles/kenlm_util.dir/pool.cc.o [ 32%] Building CXX object util/CMakeFiles/kenlm_util.dir/read_compressed.cc.o /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:236:11: error: 'bz_stream' does not name a type; did you mean 'z_stream'? const bz_stream &Stream() const { return stream_; } ^~~~~~~~~ z_stream /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:258:5: error: 'bz_stream' does not name a type; did you mean 'z_stream'? bz_stream stream_; ^~~~~~~~~ z_stream /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In constructor 'util::{anonymous}::BZip::BZip(const void*, std::size_t)': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:205:15: error: 'stream_' was not declared in this scope memset(&stream_, 0, sizeof(stream_)); ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:205:15: note: suggested alternative: 'z_streamp' memset(&stream_, 0, sizeof(stream_)); ^~~~~~~ z_streamp /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:207:19: error: 'BZ2_bzDecompressInit' was not declared in this scope HandleError(BZ2_bzDecompressInit(&stream_, 0, 0)); ^~~~~~~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In destructor 'util::{anonymous}::BZip::~BZip()': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:212:42: error: 'stream_' was not declared in this scope HandleError(BZ2_bzDecompressEnd(&stream_)); ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:212:42: note: suggested alternative: 'z_streamp' HandleError(BZ2_bzDecompressEnd(&stream_)); ^~~~~~~ z_streamp /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:212:21: error: 'BZ2_bzDecompressEnd' was not declared in this scope HandleError(BZ2_bzDecompressEnd(&stream_)); ^~~~~~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In member function 'bool util::{anonymous}::BZip::Process()': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:220:35: error: 'stream_' was not declared in this scope int ret = BZ2_bzDecompress(&stream_); ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:220:35: note: suggested alternative: 'z_streamp' int ret = BZ2_bzDecompress(&stream_); ^~~~~~~ z_streamp /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:220:17: error: 'BZ2_bzDecompress' was not declared in this scope int ret = BZ2_bzDecompress(&stream_); ^~~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:220:17: note: suggested alternative: 'uncompress' int ret = BZ2_bzDecompress(&stream_); ^~~~~~~~~~~~~~~~ uncompress /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:221:18: error: 'BZ_STREAM_END' was not declared in this scope if (ret == BZ_STREAM_END) return false; ^~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:221:18: note: suggested alternative: 'Z_STREAM_END' if (ret == BZ_STREAM_END) return false; ^~~~~~~~~~~~~ Z_STREAM_END /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In member function 'void util::{anonymous}::BZip::SetOutput(void*, std::size_t)': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:227:7: error: 'stream_' was not declared in this scope stream_.next_out = static_cast<char*>(base); ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:227:7: note: suggested alternative: 'z_streamp' stream_.next_out = static_cast<char*>(base); ^~~~~~~ z_streamp /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In member function 'void util::{anonymous}::BZip::SetInput(const void*, std::size_t)': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:232:7: error: 'stream_' was not declared in this scope stream_.next_in = const_cast<char*>(static_cast<const char*>(base)); ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:232:7: note: suggested alternative: 'z_streamp' stream_.next_in = const_cast<char*>(static_cast<const char*>(base)); ^~~~~~~ z_streamp /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In member function 'void util::{anonymous}::BZip::HandleError(int)': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:241:14: error: 'BZ_OK' was not declared in this scope case BZ_OK: ^~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:241:14: note: suggested alternative: 'Z_OK' case BZ_OK: ^~~~~ Z_OK /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:243:14: error: 'BZ_CONFIG_ERROR' was not declared in this scope case BZ_CONFIG_ERROR: ^~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:243:14: note: suggested alternative: 'Z_BUF_ERROR' case BZ_CONFIG_ERROR: ^~~~~~~~~~~~~~~ Z_BUF_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:245:14: error: 'BZ_PARAM_ERROR' was not declared in this scope case BZ_PARAM_ERROR: ^~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:245:14: note: suggested alternative: 'Z_DATA_ERROR' case BZ_PARAM_ERROR: ^~~~~~~~~~~~~~ Z_DATA_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:247:14: error: 'BZ_DATA_ERROR' was not declared in this scope case BZ_DATA_ERROR: ^~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:247:14: note: suggested alternative: 'Z_DATA_ERROR' case BZ_DATA_ERROR: ^~~~~~~~~~~~~ Z_DATA_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:249:14: error: 'BZ_DATA_ERROR_MAGIC' was not declared in this scope case BZ_DATA_ERROR_MAGIC: ^~~~~~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:249:14: note: suggested alternative: 'Z_DATA_ERROR' case BZ_DATA_ERROR_MAGIC: ^~~~~~~~~~~~~~~~~~~ Z_DATA_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:251:14: error: 'BZ_MEM_ERROR' was not declared in this scope case BZ_MEM_ERROR: ^~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:251:14: note: suggested alternative: 'Z_MEM_ERROR' case BZ_MEM_ERROR: ^~~~~~~~~~~~ Z_MEM_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: At global scope: /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:287:11: error: 'lzma_stream' does not name a type; did you mean 'z_stream'? const lzma_stream &Stream() const { return stream_; } ^~~~~~~~~~~ z_stream /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:297:22: error: 'lzma_ret' has not been declared void HandleError(lzma_ret value) { ^~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:316:5: error: 'lzma_stream' does not name a type; did you mean 'z_stream'? lzma_stream stream_; ^~~~~~~~~~~ z_stream /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:317:5: error: 'lzma_action' does not name a type lzma_action action_; ^~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In constructor 'util::{anonymous}::XZip::XZip(const void*, std::size_t)': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:266:9: error: class 'util::{anonymous}::XZip' does not have any field named 'stream_' : stream_(), action_(LZMA_RUN) { ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:266:20: error: class 'util::{anonymous}::XZip' does not have any field named 'action_' : stream_(), action_(LZMA_RUN) { ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:266:28: error: 'LZMA_RUN' was not declared in this scope : stream_(), action_(LZMA_RUN) { ^~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:267:15: error: 'stream_' was not declared in this scope memset(&stream_, 0, sizeof(stream_)); ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:267:15: note: suggested alternative: 'z_streamp' memset(&stream_, 0, sizeof(stream_)); ^~~~~~~ z_streamp /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:269:19: error: 'lzma_stream_decoder' was not declared in this scope HandleError(lzma_stream_decoder(&stream_, UINT64_MAX, 0)); ^~~~~~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In destructor 'util::{anonymous}::XZip::~XZip()': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:273:17: error: 'stream_' was not declared in this scope lzma_end(&stream_); ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:273:17: note: suggested alternative: 'z_streamp' lzma_end(&stream_); ^~~~~~~ z_streamp /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:273:7: error: 'lzma_end' was not declared in this scope lzma_end(&stream_); ^~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:273:7: note: suggested alternative: 'va_end' lzma_end(&stream_); ^~~~~~~~ va_end /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In member function 'void util::{anonymous}::XZip::SetOutput(void*, std::size_t)': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:277:7: error: 'stream_' was not declared in this scope stream_.next_out = static_cast<uint8_t*>(base); ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:277:7: note: suggested alternative: 'z_streamp' stream_.next_out = static_cast<uint8_t*>(base); ^~~~~~~ z_streamp /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In member function 'void util::{anonymous}::XZip::SetInput(const void*, std::size_t)': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:282:7: error: 'stream_' was not declared in this scope stream_.next_in = static_cast<const uint8_t*>(base); ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:282:7: note: suggested alternative: 'z_streamp' stream_.next_in = static_cast<const uint8_t*>(base); ^~~~~~~ z_streamp /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:284:20: error: 'action_' was not declared in this scope if (!amount) action_ = LZMA_FINISH; ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:284:30: error: 'LZMA_FINISH' was not declared in this scope if (!amount) action_ = LZMA_FINISH; ^~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:284:30: note: suggested alternative: 'Z_FINISH' if (!amount) action_ = LZMA_FINISH; ^~~~~~~~~~~ Z_FINISH /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In member function 'bool util::{anonymous}::XZip::Process()': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:290:7: error: 'lzma_ret' was not declared in this scope lzma_ret status = lzma_code(&stream_, action_); ^~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:291:11: error: 'status' was not declared in this scope if (status == LZMA_STREAM_END) return false; ^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:291:11: note: suggested alternative: 'static' if (status == LZMA_STREAM_END) return false; ^~~~~~ static /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:291:21: error: 'LZMA_STREAM_END' was not declared in this scope if (status == LZMA_STREAM_END) return false; ^~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:291:21: note: suggested alternative: 'Z_STREAM_END' if (status == LZMA_STREAM_END) return false; ^~~~~~~~~~~~~~~ Z_STREAM_END /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:292:19: error: 'status' was not declared in this scope HandleError(status); ^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:292:19: note: suggested alternative: 'static' HandleError(status); ^~~~~~ static /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In member function 'void util::{anonymous}::XZip::HandleError(int)': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:299:14: error: 'LZMA_OK' was not declared in this scope case LZMA_OK: ^~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:299:14: note: suggested alternative: 'Z_OK' case LZMA_OK: ^~~~~~~ Z_OK /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:301:14: error: 'LZMA_MEM_ERROR' was not declared in this scope case LZMA_MEM_ERROR: ^~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:301:14: note: suggested alternative: 'Z_MEM_ERROR' case LZMA_MEM_ERROR: ^~~~~~~~~~~~~~ Z_MEM_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:303:14: error: 'LZMA_FORMAT_ERROR' was not declared in this scope case LZMA_FORMAT_ERROR: ^~~~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:303:14: note: suggested alternative: 'Z_STREAM_ERROR' case LZMA_FORMAT_ERROR: ^~~~~~~~~~~~~~~~~ Z_STREAM_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:305:14: error: 'LZMA_OPTIONS_ERROR' was not declared in this scope case LZMA_OPTIONS_ERROR: ^~~~~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:305:14: note: suggested alternative: 'Z_VERSION_ERROR' case LZMA_OPTIONS_ERROR: ^~~~~~~~~~~~~~~~~~ Z_VERSION_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:307:14: error: 'LZMA_DATA_ERROR' was not declared in this scope case LZMA_DATA_ERROR: ^~~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:307:14: note: suggested alternative: 'Z_DATA_ERROR' case LZMA_DATA_ERROR: ^~~~~~~~~~~~~~~ Z_DATA_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:309:14: error: 'LZMA_BUF_ERROR' was not declared in this scope case LZMA_BUF_ERROR: ^~~~~~~~~~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:309:14: note: suggested alternative: 'Z_BUF_ERROR' case LZMA_BUF_ERROR: ^~~~~~~~~~~~~~ Z_BUF_ERROR /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In instantiation of 'std::size_t util::{anonymous}::StreamCompressed<Compression>::Read(void*, std::size_t, util::ReadCompressed&) [with Compression = util::{anonymous}::XZip; std::size_t = long unsigned int]': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:438:1: required from here /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:121:20: error: 'class util::{anonymous}::XZip' has no member named 'Stream' if (!back_.Stream().avail_in) ReadInput(thunk); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:124:83: error: 'class util::{anonymous}::XZip' has no member named 'Stream' std::size_t ret = static_cast<const uint8_t >(static_cast<void>(back_.Stream().next_out)) - static_cast<const uint8_t*>(to); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:125:76: error: 'class util::{anonymous}::XZip' has no member named 'Stream' ReplaceThis(ReadFactory(file_.release(), ReadCount(thunk), back_.Stream().next_in, back_.Stream().avail_in, true), thunk); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:125:100: error: 'class util::{anonymous}::XZip' has no member named 'Stream' ReplaceThis(ReadFactory(file_.release(), ReadCount(thunk), back_.Stream().next_in, back_.Stream().avail_in, true), thunk); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:130:22: error: 'class util::{anonymous}::XZip' has no member named 'Stream' } while (back_.Stream().next_out == to); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:131:67: error: 'class util::{anonymous}::XZip' has no member named 'Stream' return static_cast<const uint8_t*>(static_cast<void*>(back_.Stream().next_out)) - static_cast<const uint8_t*>(to); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc: In instantiation of 'std::size_t util::{anonymous}::StreamCompressed<Compression>::Read(void*, std::size_t, util::ReadCompressed&) [with Compression = util::{anonymous}::BZip; std::size_t = long unsigned int]': /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:438:1: required from here /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:121:20: error: 'class util::{anonymous}::BZip' has no member named 'Stream' if (!back_.Stream().avail_in) ReadInput(thunk); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:124:83: error: 'class util::{anonymous}::BZip' has no member named 'Stream' std::size_t ret = static_cast<const uint8_t >(static_cast<void>(back_.Stream().next_out)) - static_cast<const uint8_t*>(to); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:125:76: error: 'class util::{anonymous}::BZip' has no member named 'Stream' ReplaceThis(ReadFactory(file_.release(), ReadCount(thunk), back_.Stream().next_in, back_.Stream().avail_in, true), thunk); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:125:100: error: 'class util::{anonymous}::BZip' has no member named 'Stream' ReplaceThis(ReadFactory(file_.release(), ReadCount(thunk), back_.Stream().next_in, back_.Stream().avail_in, true), thunk); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:130:22: error: 'class util::{anonymous}::BZip' has no member named 'Stream' } while (back_.Stream().next_out == to); ~~~~~~^~~~~~ /home/cse/workspace/lxy/cmcc-conformer/models/training/official/pytorch/speech/espnet/tools/kenlm/util/read_compressed.cc:131:67: error: 'class util::{anonymous}::BZip' has no member named 'Stream' return static_cast<const uint8_t*>(static_cast<void*>(back_.Stream().next_out)) - static_cast<const uint8_t*>(to); ~~~~~~^~~~~~ util/CMakeFiles/kenlm_util.dir/build.make:662: recipe for target 'util/CMakeFiles/kenlm_util.dir/read_compressed.cc.o' failed make[2]: *** [util/CMakeFiles/kenlm_util.dir/read_compressed.cc.o] Error 1 CMakeFiles/Makefile2:92: recipe for target 'util/CMakeFiles/kenlm_util.dir/all' failed make[1]: *** [util/CMakeFiles/kenlm_util.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

liuxymvp avatar Dec 20 '22 07:12 liuxymvp