PX4 V1.13.0 conflicting declaration of c function

Hello
I’m trying to build the latest version of PX4 (1.13) for my cube orange. I’m using PX4 toolchain on windows 10. I used this command to make it:
"make cubpilot_cubeorange "

Older versions build fine but I need the latest version, it seems that the error is in the cmath function which has been recently added to the source files. Here is the bottom part of the message report…can someon suggest a reason for it?

.
[31/1092] Building CXX object src/drivers/uavcan/libuavcan/libuavcan/CMakeFiles/uavcan.dir/src/node/uc_scheduler.cpp.ob
FAILED: src/drivers/uavcan/libuavcan/libuavcan/CMakeFiles/uavcan.dir/src/node/uc_scheduler.cpp.obj
/cygdrive/c/PX4/toolchain/gcc-arm/bin/arm-none-eabi-g++.exe -DCONFIG_ARCH_BOARD_CUBEPILOT_CUBEORANGE -DUAVCAN_CPP_VERSION=UAVCAN_CPP03 -DUAVCAN_DRIVER=uavcan_stm32h7 -DUAVCAN_IMPLEMENT_PLACEMENT_NEW=1 -DUAVCAN_MEM_POOL_BLOCK_SIZE=48 -DUAVCAN_NO_ASSERTIONS -DUAVCAN_PLATFORM=generic -DUAVCAN_STM32H7_NUM_IFACES=2 -DUAVCAN_STM32H7_NUTTX=1 -DUAVCAN_STM32H7_TIMER_NUMBER=5 -D_SYS_CDEFS_H_ -D_SYS_REENT_H_ -D__CUSTOM_FILE_IO__ -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I…/…/boards/cubepilot/cubeorange/src -I…/…/platforms/nuttx/src/px4/common/include -I. -Isrc/lib -I…/…/platforms/nuttx/src/px4/stm/stm32h7/include -I…/…/platforms/common -I…/…/platforms/common/include -I…/…/src -I…/…/src/include -I…/…/src/lib -I…/…/src/lib/matrix -I…/…/src/modules -I…/…/platforms/nuttx/NuttX/nuttx/arch/arm/src/armv7-m -I…/…/platforms/nuttx/NuttX/nuttx/arch/arm/src/chip -I…/…/platforms/nuttx/NuttX/nuttx/arch/arm/src/common -I…/…/platforms/nuttx/NuttX/apps/include -Iexternal/Install/include -I…/…/src/drivers/uavcan/libuavcan/./libuavcan/include -I…/…/src/drivers/uavcan/libuavcan/./libuavcan/include/dsdlc_generated -I…/…/src/drivers/uavcan/libuavcan/libuavcan/include/dsdlc_generated -I…/…/src/drivers/uavcan/libuavcan/libuavcan/include -isystem …/…/platforms/nuttx/NuttX/include/cxx -isystem …/…/platforms/nuttx/NuttX/nuttx/include/cxx -isystem …/…/platforms/nuttx/NuttX/nuttx/include -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -Wall -Wextra -Wundef -std=c++11 -Os -DNDEBUG -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -fno-exceptions -fno-threadsafe-statics -Wreorder -Wno-overloaded-virtual -fno-rtti -nostdinc++ -fno-sized-deallocation -Wno-cast-align -Wno-deprecated-copy -Wno-address-of-packed-member -std=gnu++14 -MD -MT src/drivers/uavcan/libuavcan/libuavcan/CMakeFiles/uavcan.dir/src/node/uc_scheduler.cpp.obj -MF src/drivers/uavcan/libuavcan/libuavcan/CMakeFiles/uavcan.dir/src/node/uc_scheduler.cpp.obj.d -o src/drivers/uavcan/libuavcan/libuavcan/CMakeFiles/uavcan.dir/src/node/uc_scheduler.cpp.obj -c …/…/src/drivers/uavcan/libuavcan/libuavcan/src/node/uc_scheduler.cpp
In file included from …/…/src/drivers/uavcan/libuavcan/./libuavcan/include/uavcan/util/templates.hpp:10:0,
from …/…/src/drivers/uavcan/libuavcan/./libuavcan/include/uavcan/util/linked_list.hpp:12,
from …/…/src/drivers/uavcan/libuavcan/./libuavcan/include/uavcan/node/scheduler.hpp:9,
from …/…/src/drivers/uavcan/libuavcan/libuavcan/src/node/uc_scheduler.cpp:5:
…/…/platforms/nuttx/NuttX/include/cxx/cmath: In function ‘bool std::isfinite(double)’:
…/…/platforms/nuttx/NuttX/include/cxx/cmath:60:13: error: conflicting declaration of C function ‘bool std::isfinite(double)’
inline bool isfinite(double value) { return builtin_isfinite(value); }
^~~~~~~~
compilation terminated due to -Wfatal-errors.
[32/1092] Building CXX object src/drivers/uavcan/libuavcan…MakeFiles/uavcan.dir/src/node/uc_generic_publisher.cpp.obj
FAILED: src/drivers/uavcan/libuavcan/libuavcan/CMakeFiles/uavcan.dir/src/node/uc_generic_publisher.cpp.obj