Can't compile new 2.5 version
> cmake ..
> -- The C compiler identification is GNU 6.3.0
> -- The CXX compiler identification is GNU 6.3.0
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Found UV: /usr/lib/x86_64-linux-gnu/libuv.a
> -- Found CUDA: /usr/local/cuda-9.0 (found suitable version "9.0", minimum required is "7.5")
> -- Found NVML: /usr/local/cuda-9.0/include
> -- Looking for syslog.h
> -- Looking for syslog.h - found
> -- Found MHD: /usr/lib/x86_64-linux-gnu/libmicrohttpd.so
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/user/src-xmrig-nvidia/build


> make
> [  2%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_extra.cu.o
> [  4%] Building NVCC (Device) object CMakeFiles/xmrig-cuda.dir/src/nvidia/xmrig-cuda_generated_cuda_core.cu.o
> Scanning dependencies of target xmrig-cuda
> Linking CXX static library libxmrig-cuda.a
> [  4%] Built target xmrig-cuda
> Scanning dependencies of target xmrig-nvidia
> [  7%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/api/Api.cpp.o
> [  9%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/api/ApiState.cpp.o
> [ 12%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/api/NetworkState.cpp.o
> [ 14%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/App.cpp.o
> [ 17%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/Console.cpp.o
> [ 19%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/Cpu_stub.cpp.o
> [ 21%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/log/ConsoleLog.cpp.o
> [ 24%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/log/FileLog.cpp.o
> [ 26%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/log/Log.cpp.o
> [ 29%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/net/Client.cpp.o
> [ 31%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/net/Job.cpp.o
> [ 34%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/net/Network.cpp.o
> [ 36%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/net/strategies/DonateStrategy.cpp.o
> [ 39%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/net/strategies/FailoverStrategy.cpp.o
> [ 41%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/net/strategies/SinglePoolStrategy.cpp.o
> [ 43%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/net/SubmitResult.cpp.o
> [ 46%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/net/Url.cpp.o
> [ 48%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/nvidia/CudaCLI.cpp.o
> [ 51%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/Options.cpp.o
> [ 53%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/Platform.cpp.o
> [ 56%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/Summary.cpp.o
> [ 58%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/workers/CudaWorker.cpp.o
> [ 60%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/workers/GpuThread.cpp.o
> [ 63%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/workers/Handle.cpp.o
> [ 65%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/workers/Hashrate.cpp.o
> [ 68%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/workers/Workers.cpp.o
> [ 70%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/xmrig.cpp.o
> [ 73%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/App_unix.cpp.o
> [ 75%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/Cpu_unix.cpp.o
> [ 78%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/Platform_unix.cpp.o
> [ 80%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/nvidia/NvmlApi.cpp.o
> [ 82%] Building C object CMakeFiles/xmrig-nvidia.dir/src/crypto/c_keccak.c.o
> [ 85%] Building C object CMakeFiles/xmrig-nvidia.dir/src/crypto/c_groestl.c.o
> [ 87%] Building C object CMakeFiles/xmrig-nvidia.dir/src/crypto/c_blake256.c.o
> [ 90%] Building C object CMakeFiles/xmrig-nvidia.dir/src/crypto/c_jh.c.o
> [ 92%] Building C object CMakeFiles/xmrig-nvidia.dir/src/crypto/c_skein.c.o
> [ 95%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/crypto/CryptoNight.cpp.o
> [ 97%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/log/SysLog.cpp.o
> [100%] Building CXX object CMakeFiles/xmrig-nvidia.dir/src/api/Httpd.cpp.o
> Linking CXX executable xmrig-nvidia
> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libuv.a(libuv_la-dl.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
> //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> make[2]: *** [xmrig-nvidia] Error 1
> make[1]: *** [CMakeFiles/xmrig-nvidia.dir/all] Error 2
> make: *** [all] Error 2

I was compiling previous versions up to 2.4.5 on the same machine without issues. Tried compiling with gcc 5 and 7. They fail. So this is with gcc 6 on ubuntu 14.04 LTS
Any suggestions?