Fails to build because of some swig error:
deps/sphinxbase/src/libsphinxbase/util/slamch.c:413:12: warning: type of ‘pow_ri’ does not match original declaration [-Wlto-type-mismatch]
413 | double pow_ri(real *, integer *);
| ^
deps/sphinxbase/src/libsphinxbase/util/f2c_lite.c:172:1: note: return value type mismatch
172 | pow_ri(real * ap, integer * bp)
| ^
deps/sphinxbase/src/libsphinxbase/util/f2c_lite.c:172:1: note: type ‘float’ should match type ‘double’
deps/sphinxbase/src/libsphinxbase/util/f2c_lite.c:172:1: note: ‘pow_ri’ was previously declared here
deps/sphinxbase/src/libsphinxbase/util/f2c_lite.c:172:1: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used
deps/sphinxbase/src/libsphinxbase/util/slamch.c:47:20: warning: type of ‘lsame_’ does not match original declaration [-Wlto-type-mismatch]
47 | extern logical lsame_(char *, char *, ftnlen, ftnlen);
| ^
deps/sphinxbase/src/libsphinxbase/util/blas_lite.c:26:9: note: type mismatch in parameter 3
26 | logical lsame_(char *ca, char *cb)
| ^
deps/sphinxbase/src/libsphinxbase/util/blas_lite.c:26:9: note: type ‘void’ should match type ‘ftnlen’
deps/sphinxbase/src/libsphinxbase/util/blas_lite.c:26:9: note: ‘lsame_’ was previously declared here
building 'pocketsphinx._pocketsphinx' extension
swigging deps/pocketsphinx/swig/pocketsphinx.i to deps/pocketsphinx/swig/pocketsphinx_wrap.c
swig -python -modern -threads -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/android -Ideps/pocketsphinx/include -Ideps/sphinxbase/swig -outdir pocketsphinx -o deps/pocketsphinx/swig/pocketsphinx_wrap.c deps/pocketsphinx/swig/pocketsphinx.i
Deprecated command line option: -modern. Ignored, this option is now always on.
Unable to find file 'deps/pocketsphinx/swig/pocketsphinx.i'.
error: command '/usr/bin/swig' failed with exit code 1
==> ERROR: A failure occurred in build().
Aborting...
Pinned Comments
EndlessEden commented on 2022-07-08 17:18 (UTC)
Update: Unfortunately, upstream has removed python2 compatibility. So i have removed it as well. Id recommend some one make a python2 version, but backporting may be impossible.
I have tested this build in a clean chroot, it built for me on x86_64.