Decentralized-Pictures / T4L3NT

Other
9 stars 1 forks source link

Illegal instruction errors when generating keys using tlnt-client #7

Closed danielelisi closed 2 years ago

danielelisi commented 2 years ago

Users have been reporting Illegal instruction errors when trying to import or generate keys using the tlnt-client binary in the Docker image we publish on Docker hub.

Screenshot_2022-01-20_at_19 54 47

One of the user is using an Intel NUC type mini PC https://awowtech.com/products/awow-mini-pc-ak41 which seems to be equipped with an Intel Celeron J4115 processor.

This issue is likely linked to a situation like https://github.com/xapi-project/xs-opam/pull/163 where some opam libraries are detecting CPU features at build time instead of at runtime. This causes the Docker image to be built with modern CPU flags which older CPU don't recognize.

danielelisi commented 2 years ago

I've added additional steps to the documentation on building the Docker image locally https://decentralized-pictures-foundatio.gitbook.io/dcp-docs-v0.0.1/t4l3nt-net/blockchain/setting-up-a-t4l3nt-node/build-the-docker-image-locally