libpinyin/libpinyin — Issue #3: 编译出错了。gen_unigram段错误。
Author: YangtseSu
Created: 2011-12-22 06:28:45+00:00
State: open

'''
../utils/training/gen_unigram
make[2]: *** [gbk_char.bin] 段错误
make[2]: *** 正在删除文件“gbk_char.bin”
make[2]: *** 正在等待未完成的任务....
../utils/storage/import_interpolation < ../data/interpolation.text

** (process:30382): CRITICAL **: bool pinyin::SubPhraseIndex::load(pinyin::MemoryChunk*, pinyin::table_offset_t, pinyin::table_offset_t): assertion `*(buf_begin + index_three - 1) == c_separate' failed
../utils/storage/import_interpolation < ../data/interpolation.text
import_interpolation: import_interpolation.cpp:168: bool parse_bigram(FILE*, pinyin::PhraseLargeTable*, pinyin::FacadePhraseIndex*, pinyin::Bigram*): Assertion `last_single_gram->insert_freq(token2, count)' failed.
/bin/sh: 行 1: 30382 已放弃 ../utils/storage/import_interpolation < ../data/interpolation.text
make[2]: *** [phrase_index.bin] 错误 134
import_interpolation: import_interpolation.cpp:168: bool parse_bigram(FILE*, pinyin::PhraseLargeTable*, pinyin::FacadePhraseIndex*, pinyin::Bigram*): Assertion `last_single_gram->insert_freq(token2, count)' failed.
/bin/sh: 行 1: 30384 已放弃 ../utils/storage/import_interpolation < ../data/interpolation.text
make[2]: *** [gb_char.bin] 错误 134
make[2]: 离开目录“/home/yangtse/aur/libpinyin-git/src/libpinyin-build/data”
make[1]: *** [all-recursive] 错误 1
make[1]: 离开目录“/home/yangtse/aur/libpinyin-git/src/libpinyin-build”
make: *** [all] 错误 2
==> 错误： 在 build() 中发生一个错误。
正在放弃...
'''