sphinxbase icon indicating copy to clipboard operation
sphinxbase copied to clipboard

Some tests fail on big endian architectures

Open lgbaldoni opened this issue 4 years ago • 3 comments

Building current sphinxbase5 from master, I'm seeing these test failures on openSUSE rolling release for ppc64be and zSeries (ppc64le is fine).

lgbaldoni avatar Oct 06 '21 14:10 lgbaldoni

I forgot to attach the error log.

lgbaldoni avatar Oct 06 '21 15:10 lgbaldoni

Hello, indeed there seem to be many issues on big-endian architectures, I believe Ubuntu just doesn't build pocketsphinx for them. It looks ike some recent changes discarded byte-swapping in a number of places.

dhdaines avatar Jun 08 '22 13:06 dhdaines

The problem is that the trie binary language model format was implemented without any thought to byteorder. My fork fixes this by making it canonically little-endian (which seems reasonable as it is mostly strings and bit vectors so there isn't that much swapping to do): https://github.com/dhdaines/pocketsphinx

dhdaines avatar Jun 08 '22 17:06 dhdaines