FYI:
The new MinGW installer MinGW-5.1.0.exe they are working on to download updates has a problem.
I would suggest waiting on it.
What ever you do, DO NOT install in into the default folder of c:\minGW is can break all minGW installs on your machines.
The error I got mentioned "__cpu_features_init" in it.
Tim S