Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error : E_DEBUG too many arguments provided #19

Open
GordonHuangYong opened this issue Apr 10, 2019 · 1 comment
Open

build error : E_DEBUG too many arguments provided #19

GordonHuangYong opened this issue Apr 10, 2019 · 1 comment

Comments

@GordonHuangYong
Copy link

/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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant