Kalapaja / kampela-firmware

Firmware sources and associated software projects for the Kampela hardware signer
https://kampe.la
GNU General Public License v3.0
4 stars 9 forks source link

Not able to build on M1 chip #23

Closed filippoweb3 closed 5 months ago

filippoweb3 commented 5 months ago

I am trying to follow the guidelines to build the rust code in release mode, but I am getting the error below

Screenshot 2024-01-22 at 15 48 31

Slesarew commented 5 months ago

Looks like upstream issue with secp256k1. We don't have an M1 here to reproduce and figure this out yet. This will probably have to wait quite a bit, until we or upstream Substrate changes to more native crate instead of this wrapper, or someone with M1 figures out how to cross-compile this. The focus now is on making this buildable on more popular embedded dev architectures.

Vovke commented 5 months ago

Hey @filippoweb3 it might be an issue with the arm-none-eabi-gcc provided by brew, if you got the compiler by running brew install arm-none-eabi-gcc uninstall it. you can get compiler from here https://developer.arm.com/downloads/-/gnu-rm (that worked for me) alternatively it should also work with brew if you install whole toolchain, try brew install --cask gcc-arm-embedded

filippoweb3 commented 5 months ago

@Vovke thanks! I was able to build the code and the install it on the Kampela signer. However the rust code compiled with many warnings. Let me know if you want me to share the info here.

Vovke commented 5 months ago

@Vovke thanks! I was able to build the code and the install it on the Kampela signer. However the rust code compiled with many warnings. Let me know if you want me to share the info here.

no need, those are low prio and not macos related. we will get them resolved after more urgent ones! Thanks for pointing out blocking issue!