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))
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.
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.