Ah, it's mingw. Is it the first time you try compile SPARK ? I know gcc compiles it without problems on Linux, I will test MinGW tomorrow.
For the moment, you can still compile it with Visual Studio, and either develop using it.
What is your build directory ?
Could you please post the CMake output when configuring and generating ?