error in ApiState.cpp while compiling xmrig-nvidia in Ubuntu 17.10
Hello,

I'm attempting to compile current xmrig-nvidia master in Ubuntu 17.10 using gcc5. I'm getting the following error while compiling api/ApiState.cpp:

[ 11%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/api/ApiState.cpp.o
/home/user/work/xmrig-nvidia/src/api/ApiState.cpp: In function ‘double normalize(double)’:
/home/user/work/xmrig-nvidia/src/api/ApiState.cpp:55:10: error: ‘__builtin_isnormal’ is not a member of ‘std’
     if (!std::isnormal(d)) {
          ^
/home/user/work/xmrig-nvidia/src/api/ApiState.cpp:55:10: note: suggested alternative:
<built-in>: note:   ‘__builtin_isnormal’

What am I doing wrong?

Cmake, make output is here->

https://gist.github.com/felis/220720cb0442a70d92a3d058d36d623d