Compilation terminated due to -Wfatal-errors

hi trying to compile the px4 code using WSL ubuntu 20.04. it give a error stated below,

FAILED: src/drivers/uavcan/libuavcan/libuavcan/CMakeFiles/uavcan.dir/src/driver/uc_can.cpp.obj

error: conflicting declaration of C function ‘bool std::isfinite(double)’
inline bool isfinite(double value) { return __builtin_isfinite(value); }

request to suggest the solution
thanks