Mock Version: 1.1.38 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/libpinyin.spec'], False, '/srv/build/7/D/mock-root/c7.00.03-x86_64/root/', None, 21600, True, False, 501, 135, None, False, {'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/libpinyin.spec'] with env {'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/libpinyin-0.9.93-4.el7.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/libpinyin.spec'], False, '/srv/build/7/D/mock-root/c7.00.03-x86_64/root/', None, 21600, True, False, 501, 135, None, False, {'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/libpinyin.spec'] with env {'LANG': 'en_GB', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.qVLiwV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libpinyin-0.9.93 + /usr/bin/gzip -dc /builddir/build/SOURCES/libpinyin-0.9.93.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd libpinyin-0.9.93 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (libpinyin-0.10.x-head.patch):' Patch #0 (libpinyin-0.10.x-head.patch): + /usr/bin/cat /builddir/build/SOURCES/libpinyin-0.10.x-head.patch + /usr/bin/patch -p1 -b --suffix .head --fuzz=0 patching file src/storage/table_info.cpp patching file tests/storage/test_table_info.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.DXsAN6 + umask 022 + cd /builddir/build/BUILD + cd libpinyin-0.9.93 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS ++ find . -name config.guess -o -name config.sub + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in '$(find . -name config.guess -o -name config.sub)' ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-redhat-linux-gnu-g++... no checking for x86_64-redhat-linux-gnu-c++... no checking for x86_64-redhat-linux-gnu-gpp... no checking for x86_64-redhat-linux-gnu-aCC... no checking for x86_64-redhat-linux-gnu-CC... no checking for x86_64-redhat-linux-gnu-cxx... no checking for x86_64-redhat-linux-gnu-cc++... no checking for x86_64-redhat-linux-gnu-cl.exe... no checking for x86_64-redhat-linux-gnu-FCC... no checking for x86_64-redhat-linux-gnu-KCC... no checking for x86_64-redhat-linux-gnu-RCC... no checking for x86_64-redhat-linux-gnu-xlC_r... no checking for x86_64-redhat-linux-gnu-xlC... no checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... none checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking build system type... x86_64-redhat-linux-gnu checking host system type... x86_64-redhat-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1966080 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-redhat-linux-gnu-strip... no checking for strip... strip checking for x86_64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for x86_64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for x86_64-redhat-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for GLIB2... yes checking for ANSI C header files... (cached) yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... yes checking for gettimeofday... yes checking for memmove... yes checking for memset... yes checking for setlocale... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for string.h... (cached) yes checking db.h usability... yes checking db.h presence... yes checking for db.h... yes checking for library containing db_create... -ldb checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating libpinyin.pc config.status: creating libpinyin.spec config.status: creating Makefile config.status: creating doc/Makefile config.status: creating data/Makefile config.status: creating src/Makefile config.status: creating src/include/Makefile config.status: creating src/storage/Makefile config.status: creating src/lookup/Makefile config.status: creating tests/Makefile config.status: creating tests/include/Makefile config.status: creating tests/storage/Makefile config.status: creating tests/lookup/Makefile config.status: creating utils/Makefile config.status: creating utils/storage/Makefile config.status: creating utils/segment/Makefile config.status: creating utils/training/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands Build options: Version 0.9.93 Install prefix /usr + make -j16 make all-recursive make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93' Making all in src make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src' Making all in include make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/include' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/include' Making all in storage make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/storage' CXX libstorage_la-phrase_index.lo CXX libstorage_la-phrase_large_table2.lo CXX libstorage_la-ngram.lo CXX libstorage_la-tag_utility.lo CXX libstorage_la-pinyin_parser2.lo CXX libstorage_la-chewing_large_table.lo CXX libstorage_la-table_info.lo phrase_large_table2.cpp: In member function 'int pinyin::PhraseLengthIndexLevel2::search(int, const ucs4_t*, GArray**) const': phrase_large_table2.cpp:199:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(m_phrase_array_indexes->len < phrase_length) ^ phrase_large_table2.cpp:201:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (m_phrase_array_indexes->len > phrase_length) ^ chewing_large_table.cpp: In member function 'int pinyin::ChewingLengthIndexLevel::search(pinyin_option_t, int, const ChewingKey*, GArray**) const': chewing_large_table.cpp:358:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (m_chewing_array_indexes->len < phrase_length + 1) ^ chewing_large_table.cpp:360:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (m_chewing_array_indexes->len > phrase_length + 1) ^ phrase_large_table2.cpp: In member function 'int pinyin::PhraseLengthIndexLevel2::add_index(int, const ucs4_t*, phrase_token_t)': phrase_large_table2.cpp:322:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (m_phrase_array_indexes->len < phrase_length) ^ chewing_large_table.cpp: In member function 'int pinyin::ChewingLengthIndexLevel::add_index(int, const ChewingKey*, phrase_token_t)': chewing_large_table.cpp:516:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (m_chewing_array_indexes->len <= phrase_length) ^ In file included from pinyin_parser2.cpp:25:0: pinyin_parser2.cpp: In member function 'gchar* _ChewingKey::get_pinyin_string()': /usr/include/glib-2.0/glib/gmacros.h:233:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0])) ^ pinyin_parser2.cpp:87:20: note: in expansion of macro 'G_N_ELEMENTS' assert(index < G_N_ELEMENTS(content_table)); ^ pinyin_parser2.cpp: In member function 'gchar* _ChewingKey::get_shengmu_string()': /usr/include/glib-2.0/glib/gmacros.h:233:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0])) ^ pinyin_parser2.cpp:99:20: note: in expansion of macro 'G_N_ELEMENTS' assert(index < G_N_ELEMENTS(content_table)); ^ pinyin_parser2.cpp: In member function 'gchar* _ChewingKey::get_yunmu_string()': /usr/include/glib-2.0/glib/gmacros.h:233:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0])) ^ pinyin_parser2.cpp:106:20: note: in expansion of macro 'G_N_ELEMENTS' assert(index < G_N_ELEMENTS(content_table)); ^ pinyin_parser2.cpp: In member function 'gchar* _ChewingKey::get_chewing_string()': /usr/include/glib-2.0/glib/gmacros.h:233:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0])) ^ pinyin_parser2.cpp:114:20: note: in expansion of macro 'G_N_ELEMENTS' assert(index < G_N_ELEMENTS(content_table)); ^ chewing_large_table.cpp: In member function 'int pinyin::ChewingLengthIndexLevel::remove_index(int, const ChewingKey*, phrase_token_t)': chewing_large_table.cpp:559:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (m_chewing_array_indexes->len <= phrase_length) ^ phrase_large_table2.cpp: In member function 'int pinyin::PhraseLengthIndexLevel2::remove_index(int, const ucs4_t*, phrase_token_t)': phrase_large_table2.cpp:364:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (m_phrase_array_indexes->len < phrase_length) ^ pinyin_parser2.cpp: In member function 'bool pinyin::ChewingParser2::in_chewing_scheme(pinyin_option_t, char, const char**) const': pinyin_parser2.cpp:984:46: warning: array subscript has type 'char' [-Wchar-subscripts] *symbol = chewing_tone_table[tone]; ^ phrase_index.cpp: In member function 'bool pinyin::SubPhraseIndex::load(pinyin::MemoryChunk*, table_offset_t, table_offset_t)': phrase_index.cpp:355:48: warning: 'index_three' may be used uninitialized in this function [-Wmaybe-uninitialized] index_three - 1 - index_two, NULL); ^ phrase_index.cpp:355:48: warning: 'index_two' may be used uninitialized in this function [-Wmaybe-uninitialized] phrase_index.cpp:353:23: warning: 'index_one' may be used uninitialized in this function [-Wmaybe-uninitialized] index_two - 1 - index_one, NULL); ^ phrase_index.cpp: In member function 'bool pinyin::SubPhraseIndex::merge(pinyin::PhraseIndexLogger*)': phrase_index.cpp:484:49: warning: 'token' may be used uninitialized in this function [-Wmaybe-uninitialized] add_phrase_item(token, &newitem); ^ In file included from phrase_index.h:32:0, from phrase_index.cpp:22: phrase_index_logger.h:168:9: warning: 'log_type' may be used uninitialized in this function [-Wmaybe-uninitialized] switch(log_type){ ^ phrase_index.cpp:435:14: note: 'log_type' was declared here LOG_TYPE log_type; phrase_token_t token; ^ phrase_index.cpp: In function 'bool pinyin::_compute_new_header(pinyin::PhraseIndexLogger*, phrase_token_t, phrase_token_t, guint32&)': phrase_index.cpp:760:20: warning: 'token' may be used uninitialized in this function [-Wmaybe-uninitialized] if ((token & mask) == value) ^ In file included from phrase_index.h:32:0, from phrase_index.cpp:22: phrase_index_logger.h:168:9: warning: 'log_type' may be used uninitialized in this function [-Wmaybe-uninitialized] switch(log_type){ ^ phrase_index.cpp:746:14: note: 'log_type' was declared here LOG_TYPE log_type; phrase_token_t token; ^ In file included from phrase_index.h:32:0, from phrase_index.cpp:22: phrase_index_logger.h: In function 'pinyin::PhraseIndexLogger* pinyin::mask_out_phrase_index_logger(pinyin::PhraseIndexLogger*, phrase_token_t, phrase_token_t)': phrase_index_logger.h:199:40: warning: 'token' may be used uninitialized in this function [-Wmaybe-uninitialized] assert(token == null_token); ^ phrase_index.cpp:717:39: note: 'token' was declared here LOG_TYPE log_type; phrase_token_t token; ^ In file included from phrase_index.h:32:0, from phrase_index.cpp:22: phrase_index_logger.h:168:9: warning: 'log_type' may be used uninitialized in this function [-Wmaybe-uninitialized] switch(log_type){ ^ phrase_index.cpp:717:14: note: 'log_type' was declared here LOG_TYPE log_type; phrase_token_t token; ^ CXXLD libstorage.la make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/storage' Making all in lookup make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/lookup' CXX liblookup_la-pinyin_lookup2.lo CXX liblookup_la-phrase_lookup.lo CXX liblookup_la-lookup.lo pinyin_lookup2.cpp: In member function 'bool pinyin::PinyinLookup2::clear_constraint(CandidateConstraints, int)': pinyin_lookup2.cpp:652:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (index < 0 || index >= constraints->len) ^ pinyin_lookup2.cpp: At global scope: pinyin_lookup2.cpp:37:13: warning: 'bool dump_max_value(GPtrArray*)' defined but not used [-Wunused-function] static bool dump_max_value(GPtrArray * values){ ^ pinyin_lookup2.cpp:57:13: warning: 'bool dump_all_values(GPtrArray*)' defined but not used [-Wunused-function] static bool dump_all_values(GPtrArray * values) { ^ CXXLD liblookup.la make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/lookup' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src' CXX pinyin.lo CXX pinyin_internal.lo pinyin.cpp: In function 'bool pinyin_iterator_add_phrase(import_iterator_t*, const char*, const char*, gint)': pinyin.cpp:403:9: warning: unused variable 'num' [-Wunused-variable] int num = reduce_tokens(tokens, tokenarray); ^ pinyin.cpp: In function 'bool pinyin_guess_sentence_with_prefix(pinyin_instance_t*, const char*)': pinyin.cpp:840:17: warning: unused variable 'num' [-Wunused-variable] int num = reduce_tokens(tokens, tokenarray); ^ CXXLD libpinyin_internal.la pinyin.cpp: In function 'int pinyin_choose_candidate(pinyin_instance_t*, size_t, lookup_candidate_t*)': pinyin.cpp:1776:13: warning: unused variable 'parse_len' [-Wunused-variable] int parse_len = context->m_full_pinyin_parser->parse ^ pinyin.cpp:1784:10: warning: variable 'retval' set but not used [-Wunused-but-set-variable] bool retval = context->m_pinyin_lookup->validate_constraint ^ pinyin.cpp: In function 'bool pinyin_lookup_tokens(pinyin_instance_t*, const char*, GArray*)': pinyin.cpp:1820:9: warning: unused variable 'num' [-Wunused-variable] int num = reduce_tokens(tokens, tokenarray); ^ pinyin.cpp: In function 'bool pinyin_guess_full_pinyin_candidates(pinyin_instance_t*, size_t)': pinyin.cpp:1570:45: warning: 'pinyins[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] ("%s'%s", pinyins[0], pinyins[1]); ^ pinyin.cpp:1537:18: note: 'pinyins[1]' was declared here const char * pinyins[2]; ^ pinyin.cpp:1570:45: warning: 'pinyins[0]' may be used uninitialized in this function [-Wmaybe-uninitialized] ("%s'%s", pinyins[0], pinyins[1]); ^ pinyin.cpp:1537:18: note: 'pinyins[0]' was declared here const char * pinyins[2]; ^ CXXLD libpinyin.la make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src' Making all in tests make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' Making all in include make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' CXX test_memory_chunk.o CXXLD test_memory_chunk make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' Making all in storage make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' CXX test_phrase_index.o CXX test_phrase_index_logger.o CXX test_phrase_table.o CXX test_ngram.o CXX test_flexible_ngram.o CXX test_parser2.o CXX test_chewing_table.o CXX test_table_info.o CXXLD test_table_info CXXLD test_ngram CXXLD test_parser2 CXXLD test_phrase_index_logger In file included from test_phrase_table.cpp:4:0: ../../tests/tests_helper.h:25:13: warning: 'bool load_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool load_phrase_index(const pinyin_table_info_t * phrase_files, ^ CXXLD test_phrase_table In file included from test_phrase_index.cpp:5:0: ../../tests/tests_helper.h:25:13: warning: 'bool load_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool load_phrase_index(const pinyin_table_info_t * phrase_files, ^ In file included from ../../src/pinyin_internal.h:28:0, from test_flexible_ngram.cpp:23: ../../src/include/memory_chunk.h: In function 'int main(int, char**)': ../../src/include/memory_chunk.h:77:9: warning: 'train_gram' may be used uninitialized in this function [-Wmaybe-uninitialized] if (m_free_func) ^ test_flexible_ngram.cpp:114:48: note: 'train_gram' was declared here FlexibleSingleGram * train_gram; ^ In file included from ../../src/pinyin_internal.h:28:0, from test_flexible_ngram.cpp:23: ../../src/include/memory_chunk.h:77:9: warning: 'train_gram' may be used uninitialized in this function [-Wmaybe-uninitialized] if (m_free_func) ^ test_flexible_ngram.cpp:72:48: note: 'train_gram' was declared here FlexibleSingleGram * train_gram; ^ CXXLD test_phrase_index In file included from test_chewing_table.cpp:25:0: ../../tests/tests_helper.h:25:13: warning: 'bool load_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool load_phrase_index(const pinyin_table_info_t * phrase_files, ^ CXXLD test_chewing_table CXXLD test_flexible_ngram make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' Making all in lookup make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/lookup' CXX test_pinyin_lookup.o CXX test_phrase_lookup.o In file included from test_pinyin_lookup.cpp:26:0: ../../tests/tests_helper.h:52:13: warning: 'bool load_phrase_table(const pinyin::pinyin_table_info_t*, pinyin::ChewingLargeTable*, pinyin::PhraseLargeTable2*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool load_phrase_table(const pinyin_table_info_t * phrase_files, ^ CXXLD test_pinyin_lookup In file included from test_phrase_lookup.cpp:26:0: ../../tests/tests_helper.h:52:13: warning: 'bool load_phrase_table(const pinyin::pinyin_table_info_t*, pinyin::ChewingLargeTable*, pinyin::PhraseLargeTable2*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool load_phrase_table(const pinyin_table_info_t * phrase_files, ^ CXXLD test_phrase_lookup make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/lookup' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' CXX test_pinyin.o CXX test_phrase.o CXX test_chewing.o CXXLD test_chewing CXXLD test_pinyin CXXLD test_phrase make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' Making all in utils make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' Making all in storage make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/storage' CXX gen_binary_files.o CXX import_interpolation.o CXX export_interpolation.o CXX gen_pinyin_table.o gen_pinyin_table.cpp: In function 'void gen_phrase_file(const char*, int)': gen_pinyin_table.cpp:299:36: warning: variable 'key_rest' set but not used [-Wunused-but-set-variable] ChewingKeyRest key_rest = g_array_index ^ CXXLD gen_pinyin_table CXXLD gen_binary_files CXXLD export_interpolation In file included from gen_binary_files.cpp:25:0: ../../utils/utils_helper.h:73:13: warning: 'bool load_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool load_phrase_index(const pinyin_table_info_t * phrase_files, ^ In file included from export_interpolation.cpp:27:0: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ In file included from import_interpolation.cpp:26:0: ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ CXXLD import_interpolation make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/storage' Making all in segment make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/segment' CXX spseg.o CXX ngseg.o CXX mergeseq.o spseg.cpp: In function 'bool segment(pinyin::FacadePhraseTable2*, pinyin::FacadePhraseIndex*, GArray*, GArray*)': spseg.cpp:110:17: warning: unused variable 'num' [-Wunused-variable] int num = get_first_token(tokens, token); ^ mergeseq.cpp: In function 'bool merge_sequence(pinyin::FacadePhraseTable2*, pinyin::FacadePhraseIndex*, UnicodeCharVector, TokenInfoVector)': mergeseq.cpp:97:17: warning: unused variable 'num' [-Wunused-variable] int num = get_first_token(tokens, token); ^ In file included from ngseg.cpp:26:0: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ In file included from mergeseq.cpp:27:0: ../../utils/utils_helper.h: At global scope: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ mergeseq.cpp:35:17: warning: 'gen_extra_enter' defined but not used [-Wunused-variable] static gboolean gen_extra_enter = FALSE; ^ CXXLD ngseg In file included from spseg.cpp:27:0: ../../utils/utils_helper.h: At global scope: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ CXXLD spseg CXXLD mergeseq make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/segment' Making all in training make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/training' CXX gen_unigram.o CXX gen_ngram.o CXX gen_deleted_ngram.o CXX gen_k_mixture_model.o CXX estimate_interpolation.o CXX estimate_k_mixture_model.o CXX merge_k_mixture_model.o CXX prune_k_mixture_model.o CXX import_k_mixture_model.o CXX export_k_mixture_model.o CXX k_mixture_model_to_interpolation.o CXX validate_k_mixture_model.o CXX eval_correction_rate.o prune_k_mixture_model.cpp: In function 'bool prune_k_mixture_model(pinyin::KMixtureModelMagicHeader*, pinyin::KMixtureModelSingleGram*&, pinyin::FlexibleBigramPhraseArray)': prune_k_mixture_model.cpp:59:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( size_t k = 0; k < g_prune_k; ++k){ ^ prune_k_mixture_model.cpp:49:10: warning: unused variable 'success' [-Wunused-variable] bool success; ^ estimate_interpolation.cpp: In function 'parameter_t compute_interpolation(pinyin::SingleGram*, pinyin::FacadePhraseIndex*, pinyin::SingleGram*)': estimate_interpolation.cpp:48:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < array->len; ++i){ ^ estimate_interpolation.cpp:34:10: warning: unused variable 'success' [-Wunused-variable] bool success; ^ estimate_interpolation.cpp: In function 'int main(int, char**)': estimate_interpolation.cpp:120:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 0; i < deleted_items->len; ++i ){ ^ eval_correction_rate.cpp: In function 'int main(int, char**)': eval_correction_rate.cpp:170:20: warning: unused variable 'token' [-Wunused-variable] phrase_token_t token = null_token; ^ gen_k_mixture_model.cpp: In function 'void train_word_pair(HashofUnigram, pinyin::KMixtureModelSingleGram*, phrase_token_t, guint32)': gen_k_mixture_model.cpp:181:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ( count > g_maximum_occurs ){ ^ gen_k_mixture_model.cpp: In function 'bool post_processing_unigram(pinyin::KMixtureModelBigram*, HashofUnigram)': gen_k_mixture_model.cpp:299:14: warning: unused variable 'result' [-Wunused-variable] bool result = bigram->get_array_header(token, array_header); ^ estimate_k_mixture_model.cpp: In function 'parameter_t compute_interpolation(pinyin::KMixtureModelSingleGram*, pinyin::KMixtureModelBigram*, pinyin::KMixtureModelSingleGram*)': estimate_k_mixture_model.cpp:40:10: warning: unused variable 'success' [-Wunused-variable] bool success; ^ In file included from estimate_interpolation.cpp:29:0: ../../utils/utils_helper.h: At global scope: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ In file included from k_mixture_model_to_interpolation.cpp:23:0: ../../utils/utils_helper.h:73:13: warning: 'bool load_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool load_phrase_index(const pinyin_table_info_t * phrase_files, ^ In file included from gen_ngram.cpp:28:0: ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ In file included from gen_unigram.cpp:25:0: ../../utils/utils_helper.h:73:13: warning: 'bool load_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool load_phrase_index(const pinyin_table_info_t * phrase_files, ^ CXXLD estimate_interpolation CXXLD k_mixture_model_to_interpolation CXXLD gen_ngram CXXLD gen_unigram In file included from export_k_mixture_model.cpp:25:0: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ In file included from gen_deleted_ngram.cpp:28:0: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ CXXLD prune_k_mixture_model CXXLD export_k_mixture_model CXXLD gen_deleted_ngram CXXLD validate_k_mixture_model CXXLD estimate_k_mixture_model In file included from eval_correction_rate.cpp:24:0: ../../utils/utils_helper.h: At global scope: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ CXXLD eval_correction_rate In file included from import_k_mixture_model.cpp:25:0: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ CXXLD import_k_mixture_model CXXLD merge_k_mixture_model In file included from gen_k_mixture_model.cpp:26:0: ../../utils/utils_helper.h: At global scope: ../../utils/utils_helper.h:97:13: warning: 'bool save_phrase_index(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_phrase_index(const pinyin_table_info_t * phrase_files, ^ ../../utils/utils_helper.h:122:13: warning: 'bool save_dictionary(const pinyin::pinyin_table_info_t*, pinyin::FacadePhraseIndex*)' defined but not used [-Wunused-function] static bool save_dictionary(const pinyin_table_info_t * phrase_files, ^ CXXLD gen_k_mixture_model make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/training' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' Making all in data make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/data' rm -f phrase_index.bin pinyin_index.bin bigram.db gb_char.bin gbk_char.bin merged.bin art.bin culture.bin economy.bin geology.bin history.bin life.bin nature.bin scitech.bin society.bin sport.bin ../utils/storage/gen_binary_files --table-dir ../data ../utils/storage/import_interpolation --table-dir ../data < ../data/interpolation2.text ../utils/training/gen_unigram --table-dir ../data make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/data' Making all in doc make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/doc' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Gunt2B + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64 ++ dirname /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64 + cd libpinyin-0.9.93 + make install DESTDIR=/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64 'INSTALL=install -p' Making install in src make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src' Making install in include make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/include' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/include' make[3]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/include/libpinyin-0.9.93' install -p -m 644 novel_types.h '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/include/libpinyin-0.9.93' make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/include' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/include' Making install in storage make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/storage' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/storage' make[3]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/include/libpinyin-0.9.93' install -p -m 644 pinyin_custom2.h '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/include/libpinyin-0.9.93' make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/storage' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/storage' Making install in lookup make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/lookup' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/lookup' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/lookup' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/lookup' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64' /bin/sh ../libtool --mode=install install -p libpinyin.la '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64' libtool: install: install -p .libs/libpinyin.so.4.0.0 /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64/libpinyin.so.4.0.0 libtool: install: (cd /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64 && { ln -s -f libpinyin.so.4.0.0 libpinyin.so.4 || { rm -f libpinyin.so.4 && ln -s libpinyin.so.4.0.0 libpinyin.so.4; }; }) libtool: install: (cd /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64 && { ln -s -f libpinyin.so.4.0.0 libpinyin.so || { rm -f libpinyin.so && ln -s libpinyin.so.4.0.0 libpinyin.so; }; }) libtool: install: install -p .libs/libpinyin.lai /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64/libpinyin.la libtool: install: warning: remember to run `libtool --finish /usr/lib64' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/include/libpinyin-0.9.93' install -p -m 644 pinyin.h '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/include/libpinyin-0.9.93' make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src' Making install in tests make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' Making install in include make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' Making install in storage make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' Making install in lookup make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/lookup' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/lookup' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/lookup' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/lookup' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' Making install in utils make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' Making install in storage make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/storage' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/storage' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin' /bin/sh ../../libtool --mode=install install -p gen_binary_files import_interpolation '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin' libtool: install: install -p gen_binary_files /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin/gen_binary_files libtool: install: install -p import_interpolation /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin/import_interpolation make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/storage' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/storage' Making install in segment make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/segment' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/segment' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/segment' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/segment' Making install in training make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/training' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/training' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin' /bin/sh ../../libtool --mode=install install -p gen_unigram '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin' libtool: install: install -p gen_unigram /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin/gen_unigram make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/training' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/training' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' Making install in data make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/data' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/data' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64/libpinyin/data' install -p -m 644 phrase_index.bin pinyin_index.bin bigram.db gb_char.bin gbk_char.bin merged.bin art.bin culture.bin economy.bin geology.bin history.bin life.bin nature.bin scitech.bin society.bin sport.bin table.conf '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64/libpinyin/data' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/data' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/data' Making install in doc make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/doc' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/doc' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/share/man/man1' install -p -m 644 libpinyin.1 gen_binary_files.1 import_interpolation.1 gen_unigram.1 '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/share/man/man1' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/doc' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/doc' make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64/pkgconfig' install -p -m 644 libpinyin.pc '/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64/pkgconfig' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93' + find /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64 -name '*.la' -exec rm -f '{}' ';' + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/libpinyin-0.9.93 extracting debug info from /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin/gen_unigram extracting debug info from /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin/gen_binary_files extracting debug info from /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/bin/import_interpolation extracting debug info from /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/lib64/libpinyin.so.4.0.0 /usr/lib/rpm/sepdebugcrcfix: Updated 4 CRC32s, 0 CRC32s did match. symlinked /usr/lib/debug/usr/lib64/libpinyin.so.4.0.0.debug to /usr/lib/debug/usr/lib64/libpinyin.so.debug symlinked /usr/lib/debug/usr/lib64/libpinyin.so.4.0.0.debug to /usr/lib/debug/usr/lib64/libpinyin.so.4.debug 1262 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.RKnLYa + umask 022 + cd /builddir/build/BUILD + cd libpinyin-0.9.93 + make check Making check in src make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src' Making check in include make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/include' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/include' Making check in storage make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/storage' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/storage' Making check in lookup make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src/lookup' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src/lookup' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/src' make[2]: Nothing to be done for `check-am'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/src' Making check in tests make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' Making check in include make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' make check-TESTS make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' 12 4 6 12 5 12 12 5 5 12 5 5 3 10 11 12 10 12 12 PASS: test_memory_chunk ============= 1 test passed ============= make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/include' Making check in storage make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' make check-TESTS make[3]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' total freq:42152263 total freq:42152263 PASS: test_phrase_index_logger -------------------------------------------------------- item:1:1.000000 item:2:0.062500 item:3:2.000000 item:4:0.250000 item:6:0.125000 -------------------------------------------------------- item:1:1.000000 item:2:0.062500 item:3:2.000000 item:4:0.250000 item:6:0.125000 -------------------------------------------------------- item:2:0.031250 item:3:1.000000 item:4:0.125000 item:5:0.250000 item:6:0.062500 -------------------------------------------------------- total_freq:32 ----------------------system---------------------------- item:2 item:1 PASS: test_ngram -------------------------------------------------------- item:1:16 item:2:1 item:3:32 item:4:4 item:6:2 new array header:32 -------------------------------------------------------- item:1:16 item:2:1 item:3:32 item:4:4 item:6:2 -------------------------------------------------------- item:2:1 item:3:32 item:4:4 item:5:8 item:6:2 -----------------------items---------------------------- item:2 item:1 -----------------------magic header--------------------- magic header:16 -----------------------array header--------------------- single gram: 1, freq:16 single gram: 2, freq:32 -----------------------array header--------------------- single gram: 1, freq:1 single gram: 2, freq:32 -------------------------------------------------------- item:1:16 item:2:1 item:3:32 item:4:4 item:6:2 -------------------------------------------------------- item:2:1 item:3:32 item:4:4 item:5:8 item:6:2 -----------------------items---------------------------- item:2 PASS: test_flexible_ngram ================== All 3 tests passed ================== make[3]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/storage' Making check in lookup make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/lookup' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests/lookup' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' make[2]: Nothing to be done for `check-am'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/tests' Making check in utils make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' Making check in storage make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/storage' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/storage' Making check in segment make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/segment' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/segment' Making check in training make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/training' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils/training' make[2]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' make[2]: Nothing to be done for `check-am'. make[2]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/utils' Making check in data make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/data' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/data' Making check in doc make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93/doc' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93/doc' make[1]: Entering directory `/builddir/build/BUILD/libpinyin-0.9.93' make[1]: Leaving directory `/builddir/build/BUILD/libpinyin-0.9.93' + exit 0 Processing files: libpinyin-0.9.93-4.el7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.q43AtK + umask 022 + cd /builddir/build/BUILD + cd libpinyin-0.9.93 + DOCDIR=/builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/share/doc/libpinyin-0.9.93 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/share/doc/libpinyin-0.9.93 + cp -pr AUTHORS /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/share/doc/libpinyin-0.9.93 + cp -pr COPYING /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/share/doc/libpinyin-0.9.93 + cp -pr README /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64/usr/share/doc/libpinyin-0.9.93 + exit 0 Provides: libpinyin = 0.9.93-4.el7 libpinyin(x86-64) = 0.9.93-4.el7 libpinyin.so.4()(64bit) libpinyin.so.4(LIBPINYIN)(64bit) Requires(interp): /sbin/ldconfig /sbin/ldconfig Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libdb-5.3.so()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libglib-2.0.so.0()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH) Processing files: libpinyin-devel-0.9.93-4.el7.x86_64 Provides: libpinyin-devel = 0.9.93-4.el7 libpinyin-devel(x86-64) = 0.9.93-4.el7 pkgconfig(libpinyin) = 0.9.93 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/pkg-config libpinyin.so.4()(64bit) pkgconfig(glib-2.0) Processing files: libpinyin-data-0.9.93-4.el7.x86_64 Provides: libpinyin-data = 0.9.93-4.el7 libpinyin-data(x86-64) = 0.9.93-4.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: libpinyin-tools-0.9.93-4.el7.x86_64 Provides: libpinyin-tools = 0.9.93-4.el7 libpinyin-tools(x86-64) = 0.9.93-4.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libdb-5.3.so()(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libglib-2.0.so.0()(64bit) libm.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH) Processing files: libpinyin-debuginfo-0.9.93-4.el7.x86_64 Provides: libpinyin-debuginfo = 0.9.93-4.el7 libpinyin-debuginfo(x86-64) = 0.9.93-4.el7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64 Wrote: /builddir/build/RPMS/libpinyin-0.9.93-4.el7.x86_64.rpm Wrote: /builddir/build/RPMS/libpinyin-devel-0.9.93-4.el7.x86_64.rpm Wrote: /builddir/build/RPMS/libpinyin-data-0.9.93-4.el7.x86_64.rpm Wrote: /builddir/build/RPMS/libpinyin-tools-0.9.93-4.el7.x86_64.rpm Wrote: /builddir/build/RPMS/libpinyin-debuginfo-0.9.93-4.el7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Ws67Fk + umask 022 + cd /builddir/build/BUILD + cd libpinyin-0.9.93 + /usr/bin/rm -rf /builddir/build/BUILDROOT/libpinyin-0.9.93-4.el7.x86_64 + exit 0 Child return code was: 0 LEAVE do -->