Menu

error when making sphinx3

Help
zhangyang
2012-05-03
2012-09-22
  • zhangyang

    zhangyang - 2012-05-03

    Hello!

    I'm tring to install sphinx3 but i've met some problems when making.
    i build it on ubuntu 12.04.

    this is the result of configure:
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    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... gcc3
    checking for library containing strerror... none required
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /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 whether byte ordering is bigendian... no
    checking for ANSI C header files... (cached) yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking for memmove... yes
    checking for bcopy... yes
    checking return type of signal handlers... void
    checking sphinxbase/sphinx_config.h usability... yes
    checking sphinxbase/sphinx_config.h presence... yes
    checking for sphinxbase/sphinx_config.h... yes
    checking for perl... /usr/bin/perl
    checking for csh... no
    checking for a sed that does not truncate output... /bin/sed
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... no
    checking for c++... no
    checking for gpp... no
    checking for aCC... no
    checking for CC... no
    checking for cxx... no
    checking for cc++... no
    checking for cl.exe... no
    checking for FCC... no
    checking for KCC... no
    checking for RCC... no
    checking for xlC_r... no
    checking for xlC... no
    checking whether we are using the GNU C++ compiler... no
    checking whether g++ accepts -g... no
    checking dependency style of g++... none
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... no
    checking for g95... no
    checking for xlf95... no
    checking for f95... no
    checking for fort... no
    checking for ifort... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for ftn... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether accepts -g... no
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) 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... yes
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    appending configuration tag "F77" to libtool
    configure: creating ./config.status
    config.status: creating sphinx3.pc
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating src/libs3decoder/Makefile
    config.status: creating src/libs3decoder/libAPI/Makefile
    config.status: creating src/libs3decoder/libam/Makefile
    config.status: creating src/libs3decoder/libconfidence/Makefile
    config.status: creating src/libs3decoder/libcommon/Makefile
    config.status: creating src/libs3decoder/libdict/Makefile
    config.status: creating src/libs3decoder/libep/Makefile
    config.status: creating src/libs3decoder/liblm/Makefile
    config.status: creating src/libs3decoder/libsearch/Makefile
    config.status: creating src/libs3decoder/libcfg/Makefile
    config.status: creating src/programs/Makefile
    config.status: creating src/tests/Makefile
    config.status: creating src/tests/performance/Makefile
    config.status: creating src/tests/performance/an4/Makefile
    config.status: creating src/tests/performance/hub4/Makefile
    config.status: creating src/tests/performance/rm1/Makefile
    config.status: creating src/tests/performance/wsj20k/Makefile
    config.status: creating src/tests/performance/wsj5k/Makefile
    config.status: creating src/tests/performance/tidigits/Makefile
    config.status: creating src/tests/performance/ti46/Makefile
    config.status: creating src/tests/performance/Communicator/Makefile
    config.status: creating src/tests/performance/ICSI/Makefile
    config.status: creating src/tests/performance/spoke3/Makefile
    config.status: creating src/tests/regression/Makefile
    config.status: creating src/tests/regression/checkStyle.sh
    config.status: creating src/tests/regression/testfuncs.sh
    config.status: creating src/tests/unit_tests/Makefile
    config.status: creating src/tests/unit_tests/test_logs3/Makefile
    config.status: creating src/tests/unit_tests/test_hmm/Makefile
    config.status: creating scripts/Makefile
    config.status: creating scripts/sphinx3-simple
    config.status: creating model/Makefile
    config.status: creating model/ep/Makefile
    config.status: creating model/hmm/Makefile
    config.status: creating model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/Makefile
    config.status: creating model/hmm/tidigits/Makefile
    config.status: creating model/hmm/RM1_cd_semi/Makefile
    config.status: creating model/lm/Makefile
    config.status: creating model/lm/an4/Makefile
    config.status: creating model/lm/an4/args.an4
    config.status: creating model/lm/an4/args.an4.test
    config.status: creating model/lm/an4/args.an4.test.cls
    config.status: creating model/lm/an4/args.an4.test.mllr
    config.status: creating model/lm/an4/args.an4.test.fsg
    config.status: creating model/lm/an4/an4.ug.cls.lmctl
    config.status: creating include/Makefile
    config.status: creating doc/Makefile
    config.status: executing depfiles commands

    and this is the result of make
    Making all in src
    make: 正在进入目录 /home/chiha/sphinx3/src' Making all in libs3decoder make: 正在进入目录/home/chiha/sphinx3/src/libs3decoder'
    Making all in libam
    make: 正在进入目录 /home/chiha/sphinx3/src/libs3decoder/libam' if /bin/bash ../../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"sphinx3\" -DVERSION=\"0.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_MEMMOVE=1 -DHAVE_BCOPY=1 -DRETSIGTYPE=void -DHAVE_DLFCN_H=1 -I. -I. -I../../.. -I../../../include -I../../../include -I/usr/include/sphinxbase -I/usr/local/include/sphinxbase -g -O2 -Wall -ansi -MT approx_cont_mgau.lo -MD -MP -MF ".deps/approx_cont_mgau.Tpo" -c -o approx_cont_mgau.lo approx_cont_mgau.c; \ then mv -f ".deps/approx_cont_mgau.Tpo" ".deps/approx_cont_mgau.Plo"; else rm -f ".deps/approx_cont_mgau.Tpo"; exit 1; fi gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"sphinx3\" -DVERSION=\"0.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_MEMMOVE=1 -DHAVE_BCOPY=1 -DRETSIGTYPE=void -DHAVE_DLFCN_H=1 -I. -I. -I../../.. -I../../../include -I../../../include -I/usr/include/sphinxbase -I/usr/local/include/sphinxbase -g -O2 -Wall -ansi -MT approx_cont_mgau.lo -MD -MP -MF .deps/approx_cont_mgau.Tpo -c approx_cont_mgau.c -fPIC -DPIC -o .libs/approx_cont_mgau.o In file included from ../../../include/kbcore.h:107:0, from ../../../include/approx_cont_mgau.h:82, from approx_cont_mgau.c:77: /usr/local/include/sphinxbase/feat.h:241:1: error: expected identifier or '(' before '/' token /usr/local/include/sphinxbase/feat.h:241:1: error: stray '#' in program approx_cont_mgau.c: In function 'approx_cont_mgau_ci_eval': approx_cont_mgau.c:383:16: warning: variable 'cd2cisen' set but not used approx_cont_mgau.c: In function 'approx_cont_mgau_frame_eval': approx_cont_mgau.c:466:11: warning: variable 'total' set but not used approx_cont_mgau.c:452:32: warning: variable 'n_cig' set but not used approx_cont_mgau.c:452:25: warning: variable 'n_cis' set but not used make: *** error 1 make:正在离开目录/home/chiha/sphinx3/src/libs3decoder/libam'
    make: *** error 1
    make:正在离开目录 /home/chiha/sphinx3/src/libs3decoder' make: *** error 1 make:正在离开目录/home/chiha/sphinx3/src'
    make: *** error 1

    what should i do now?

    thanks.

     
  • zhangyang

    zhangyang - 2012-05-04

    sorry...

    Pocketsphinx works well!

    The version of the package i reported is sphinx3-0.7
    I tried sphinx3-0.8 and met similar problems.

    The other packages are the latest version downloaded from http://cmusphinx.so
    urceforge.net/wiki/download.

    The result of make with sphinx3-0.8 is

    Making all in src
    make: Entering directory /home/chiha/sphinx3/src' Making all in libs3decoder make: Entering directory/home/chiha/sphinx3/src/libs3decoder'
    Making all in libam
    make: Entering directory /home/chiha/sphinx3/src/libs3decoder/libam' make: Nothing to be done forall'.
    make: Leaving directory /home/chiha/sphinx3/src/libs3decoder/libam' Making all in libconfidence make: Entering directory/home/chiha/sphinx3/src/libs3decoder/libconfidence'
    make: Nothing to be done for all'. make: Leaving directory/home/chiha/sphinx3/src/libs3decoder/libconfidence'
    Making all in libcommon
    make: Entering directory /home/chiha/sphinx3/src/libs3decoder/libcommon' make: Nothing to be done forall'.
    make: Leaving directory /home/chiha/sphinx3/src/libs3decoder/libcommon' Making all in libdict make: Entering directory/home/chiha/sphinx3/src/libs3decoder/libdict'
    make: Nothing to be done for all'. make: Leaving directory/home/chiha/sphinx3/src/libs3decoder/libdict'
    Making all in libep
    make: Entering directory /home/chiha/sphinx3/src/libs3decoder/libep' make: Nothing to be done forall'.
    make: Leaving directory /home/chiha/sphinx3/src/libs3decoder/libep' Making all in liblm make: Entering directory/home/chiha/sphinx3/src/libs3decoder/liblm'
    make: Nothing to be done for all'. make: Leaving directory/home/chiha/sphinx3/src/libs3decoder/liblm'
    Making all in libsearch
    make: Entering directory /home/chiha/sphinx3/src/libs3decoder/libsearch' if /bin/bash ../../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"sphinx3\" -DVERSION=\"0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_MEMMOVE=1 -DHAVE_BCOPY=1 -DRETSIGTYPE=void -DHAVE_ATTRIBUTE_VISIBILITY=1 -DHAVE_DLFCN_H=1 -I. -I. -I../../../include -I../../../include -I/usr/include/sphinxbase -I/usr/local/include/sphinxbase -g -O2 -Wall -fvisibility=hidden -MT vithist.lo -MD -MP -MF ".deps/vithist.Tpo" -c -o vithist.lo vithist.c; \ then mv -f ".deps/vithist.Tpo" ".deps/vithist.Plo"; else rm -f ".deps/vithist.Tpo"; exit 1; fi gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"sphinx3\" -DVERSION=\"0.8\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_MEMMOVE=1 -DHAVE_BCOPY=1 -DRETSIGTYPE=void -DHAVE_ATTRIBUTE_VISIBILITY=1 -DHAVE_DLFCN_H=1 -I. -I. -I../../../include -I../../../include -I/usr/include/sphinxbase -I/usr/local/include/sphinxbase -g -O2 -Wall -fvisibility=hidden -MT vithist.lo -MD -MP -MF .deps/vithist.Tpo -c vithist.c -fPIC -DPIC -o .libs/vithist.o vithist.c: In function ‘vithist_init’: vithist.c:162:13: warning: variable ‘dict’ set but not used vithist.c: In function ‘vithist_enter’: vithist.c:406:11: warning: variable ‘old_n_rc_info’ set but not used vithist.c:404:13: warning: variable ‘d’ set but not used vithist.c:403:11: warning: variable ‘n_ci’ set but not used vithist.c: In function ‘vithist_frame_gc’: vithist.c:584:11: warning: variable ‘n_rc_info’ set but not used vithist.c: In function ‘vithist_prune’: vithist.c:650:12: error: storage size of ‘h’ isn’t known vithist.c:650:12: warning: unused variable ‘h’ vithist.c: In function ‘vithist_partialutt_end’: vithist.c:857:27: warning: variable ‘bestve’ set but not used vithist.c: In function ‘vithist_utt_reset’: vithist.c:911:11: warning: variable ‘ent’ set but not used vithist.c: In function ‘vithist_backtrace’: vithist.c:1063:15: warning: variable ‘ci’ set but not used make: *** Error 1 make: Leaving directory/home/chiha/sphinx3/src/libs3decoder/libsearch'
    make: *** Error 1
    make: Leaving directory /home/chiha/sphinx3/src/libs3decoder' make: *** Error 1 make: Leaving directory/home/chiha/sphinx3/src'
    make: *** Error 1

    Thanks~

     

Log in to post a comment.