QUERY · ISSUE
libhydrogen error when trying to build mboot with packing enabled
bugport-stm32
Port, board and/or hardware
stm32
MicroPython version
MicroPython v1.22-release
Reproduction
make BOARD=PYBV11
Expected behaviour
building mboot with packing enabled i.e. MBOOT_ENABLE_PACKING = 1
Observed behaviour
I get a couple of these lines:
../../../lib/libhydrogen/impl/random/Particle.h:8:1: note: previous definition of 'hydro_random_init' with type 'int(void)'
8 | hydro_random_init(void)
| ^~~~~~~~~~~~~~~~~
and I get a couple of these lines:
../../../lib/libhydrogen/impl/random/Particle.h:8:1: error: 'hydro_random_init' defined but not used [-Werror=unused-function]
8 | hydro_random_init(void)
| ^~~~~~~~~~~~~~~~~
Build outcome:
cc1: all warnings being treated as errors
make: *** [build-PYBV11/lib/libhydrogen/hydrogen.o] Error 1
The pyhy version that is installed is 0.0.9
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
CANDIDATE · PULL REQUEST
Fix compile error in mbedtls_port.c
Building with BOARD=NUCLEO_H743ZI DEBUG=1 died with a compile error:
mbedtls/mbedtls_port.c: In function 'mbedtls_hardware_poll':
mbedtls/mbedtls_port.c:92:13: error: 'val' may be used uninitialized in this function [-Werror=maybe-uninitialized]
92 | val >>= 8;
| ~~~~^~~~~
cc1: all warnings being treated as errors
This PR fixes this error.