Well it built on Ubuntu's riscv64 which is a very new architecture so my patches from my previous email are my suggested approach for this unless you want to try the other 2 suggestions instead (try the git snapshot or remove entirely).
https://launchpad.net/ubuntu/+source/sane-frontends/1.0.14-18ubuntu1 Thank you, Jeremy Bícha