I tried Peter Budai's patches from mingw-w64-openjdk branch, but it failed due to using dlfcn.h instead of windows.h in jdk9-jdk-9+181/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp.
After guarding dlfcn.h with #ifdef linux #endif and adding the windows.h include, it compiled fine until a symlink error, "File name too long", failing the ZipSource.gmk and the entire build. Andrew Sun -- Sent from: http://openjdk.5641.n7.nabble.com/OpenJDK-Build-Infrastructure-f75522.html