cmusphinx / pocketsphinx-ios-demo

Simple demo for iOS
76 stars 39 forks source link

build error : E_DEBUG too many arguments provided #19

Open GordonHuangYong opened 5 years ago

GordonHuangYong commented 5 years ago

/Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/acmod.c:1037:34: error: too many arguments provided to function-like macro invocation acmod->senscr_frame, acmod->n_senone_active); ^ /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/../sphinxbase/bin/arm64/include/sphinxbase/err.h:144:9: note: macro 'E_DEBUG' defined here

define E_DEBUG(level,x)

    ^

/Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/acmod.c:1036:5: error: use of undeclared identifier 'E_DEBUG'; did you mean 'ERR_DEBUG'? E_DEBUG("Frame %d has %d active states\n", ^~~ ERR_DEBUG /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/../sphinxbase/bin/arm64/include/sphinxbase/err.h:149:5: note: 'ERR_DEBUG' declared here ERR_DEBUG, ^ /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/acmod.c:1036:5: warning: expression result unused [-Wunused-value] E_DEBUG("Frame %d has %d active states\n", ^~~ /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/acmod.c:1161:17: error: too many arguments provided to function-like macro invocation acmod->n_senone_active); ^ /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/../sphinxbase/bin/arm64/include/sphinxbase/err.h:144:9: note: macro 'E_DEBUG' defined here

define E_DEBUG(level,x)

    ^

/Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/acmod.c:1160:9: error: use of undeclared identifier 'E_DEBUG'; did you mean 'ERR_DEBUG'? E_DEBUG("Frame %d has %d active states\n", frame_idx, ^~~ ERR_DEBUG /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/../sphinxbase/bin/arm64/include/sphinxbase/err.h:149:5: note: 'ERR_DEBUG' declared here ERR_DEBUG, ^ /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/acmod.c:1160:9: warning: expression result unused [-Wunused-value] E_DEBUG("Frame %d has %d active states\n", frame_idx, ^~~ /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/acmod.c:1303:37: error: too many arguments provided to function-like macro invocation acmod->n_senone_active, acmod->output_frame); ^ /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/../sphinxbase/bin/arm64/include/sphinxbase/err.h:144:9: note: macro 'E_DEBUG' defined here

define E_DEBUG(level,x)

    ^

/Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/acmod.c:1302:5: error: use of undeclared identifier 'E_DEBUG'; did you mean 'ERR_DEBUG'? E_DEBUG("acmod_flags2list: %d active in frame %d\n", ^~~ ERR_DEBUG /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/../sphinxbase/bin/arm64/include/sphinxbase/err.h:149:5: note: 'ERR_DEBUG' declared here ERR_DEBUG, ^ /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/acmod.c:1302:5: warning: expression result unused [-Wunused-value] E_DEBUG("acmod_flags2list: %d active in frame %d\n", ^~~ 3 warnings and 6 errors generated. make[2]: [acmod.lo] Error 1 make[2]: Waiting for unfinished jobs.... mv -f .deps/blkarray_list.Tpo .deps/blkarray_list.Plo libtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -DHAVE_CONFIG_H -I. -I/Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx -I../../include -O3 -arch arm64 -mios-version-min=7.0 -fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -I/Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/../sphinxbase/bin/arm64/include -I/Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/../sphinxbase/bin/arm64/include/sphinxbase -I/Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/include -I../../include -DMODELDIR=\"/Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/bin/arm64/share/pocketsphinx/model\" -O3 -arch arm64 -mios-version-min=7.0 -fembed-bitcode -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -MT bin_mdef.lo -MD -MP -MF .deps/bin_mdef.Tpo -c /Volumes/kidyn03/Users/hexiangling/Documents/kidyndata/huangyong/studySource/cmusphinx/pocketsphinx/src/libpocketsphinx/bin_mdef.c -o bin_mdef.o >/dev/null 2>&1 mv -f .deps/bin_mdef.Tpo .deps/bin_mdef.Plo make[1]: [install-recursive] Error 1 make: [install-recursive] Error 1

GordonHuangYong commented 5 years ago

in file sphinxbase/err.h

ifdef SPHINX_DEBUG

define E_DEBUG(level, ...) \

if (err_get_debug_level() >= level) \
    err_msg(ERR_DEBUG, FILELINE, __VA_ARGS__)

define E_DEBUGCONT(level, ...) \

if (err_get_debug_level() >= level) \
    err_msg(ERR_DEBUG, NULL, 0, __VA_ARGS__)

else

define E_DEBUG(level,x)

define E_DEBUGCONT(level,x)

endif