Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Some tests fail on big endian architectures #86

Open
lgbaldoni opened this issue Oct 6, 2021 · 3 comments
Open

Some tests fail on big endian architectures #86

lgbaldoni opened this issue Oct 6, 2021 · 3 comments

Comments

@lgbaldoni
Copy link

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

@lgbaldoni
Copy link
Author

I forgot to attach the error log.

@dhdaines
Copy link
Contributor

dhdaines commented Jun 8, 2022

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
Copy link
Contributor

dhdaines commented Jun 8, 2022

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

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

No branches or pull requests

2 participants