fibercrypto / skywallet-mcu

Skywallet bootloader and firmware
2 stars 5 forks source link

Firmware build process does not work #350

Closed isaacvr closed 4 years ago

isaacvr commented 4 years ago

Describe the bug After installing the tools as described in the Readme on master, we tried to run make sign, make firmware and make full-firmware. The following error popped up:

make CC=arm-none-eabi-gcc AR=arm-none-eabi-ar -C tiny-firmware/vendor/skycoin-crypto/ libskycoin-crypto.a
make[1]: Entering directory '/home/mint/Desktop/hardware-wallet/skycoin-api'
arm-none-eabi-gcc -O3 -g -fPIC -std=gnu99 -W -Wall -Wextra -Wimplicit-function-declaration -Wredundant-decls -Wstrict-prototypes -Wundef -Wshadow -Wpointer-arith -Wformat -Wreturn-type -Wsign-compare -Wmultichar -Wformat-nonliteral -Winit-self -Wuninitialized -Wformat-security -Werror -I/home/mint/Desktop/hardware-wallet/skycoin-api/  -o skycoin_crypto.o -c skycoin_crypto.c
In file included from tools/sha2.h:35:0,
                 from skycoin_crypto.h:15,
                 from skycoin_crypto.c:12:
/usr/lib/gcc/arm-none-eabi/6.3.1/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
 # include_next <stdint.h>   ^
compilation terminated.
Makefile:54: recipe for target 'skycoin_crypto.o' failed
make[1]: *** [skycoin_crypto.o] Error 1
make[1]: Leaving directory '/home/mint/Desktop/hardware-wallet/skycoin-api'
Makefile:119: recipe for target 'arm-skycoin-crypto-lib' failed
make: *** [arm-skycoin-crypto-lib] Error 2

@RomanMilishchuk suggested running apt install build-essential, which I did, but the error still appeared. I did not experience those issues on Ubuntu. Since Synth is on Mint, we need to get it running there for the signature.

Environment information: