STMicroelectronics / STM32CubeH7

STM32Cube MCU Full Package for the STM32H7 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
https://www.st.com/en/embedded-software/stm32cubeh7.html
Other
490 stars 302 forks source link

Fix 'errno' redefinition issue for GCC >= 10 #204

Closed leszekgrzegorek closed 5 months ago

leszekgrzegorek commented 2 years ago

Since GCC version 10 the global uninitialized variables go into .bss instead of .common, i.e. the -fno-common has became the default. This way linking stage ends up with 'errno' redefinition error because both nano-libc and libc already provide it. The Middlewares/Third_Party/LwIP/src/include/lwip/errno.h already provide the mechanism to either use the library based symbol or custom one by 'errno' macro definition.

ASELSTM commented 2 years ago

ST Internal Reference: 125015

TOUNSTM commented 5 months ago

Fixed in abbf9ca1b36c9abdb9339e86f0b7b2f4e79edc35