← index #15182PR #7625
Off-topic · high · value 2.307
QUERY · ISSUE

libhydrogen error when trying to build mboot with packing enabled

openby saraverbeeckeopened 2024-06-01updated 2024-09-02
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

closedby ned-pcsopened 2021-08-06updated 2021-08-06

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.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied