Error in make using Cygwin

GROMACS version: 2020-3
GROMACS modification: No
I get the following error while building GROMACS. Do you have any idea which is the problem?

Scanning dependencies of target libgromacs
[ 26%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/utility/alignedallocator.cpp.o
[ 26%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/utility/basenetwork.cpp.o
[ 27%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/utility/baseversion.cpp.o
[ 27%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/utility/binaryinformation.cpp.o
[ 27%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/utility/coolstuff.cpp.o
[ 27%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/utility/directoryenumerator.cpp.o
[ 27%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/utility/fatalerror.cpp.o
[ 27%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/utility/filestream.cpp.o
[ 27%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/utility/futil.cpp.o
C:/gromacs-2020.3/src/gromacs/utility/futil.cpp:172:14: error: ‘FILE* popen(const char*, const char*)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
172 | static FILE* popen(const char* nm, const char* mode)
| ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/9.3.0/include/c++/cstdio:42,
from C:/gromacs-2020.3/src/gromacs/utility/futil.h:49,
from C:/gromacs-2020.3/src/gromacs/utility/futil.cpp:39:
/usr/include/stdio.h:345:9: note: previous declaration of ‘FILE* popen(const char*, const char*)’
345 | FILE * popen (const char , const char *);
| ^~~~~
C:/gromacs-2020.3/src/gromacs/utility/futil.cpp:179:12: error: ‘int pclose(FILE
)’ was declared ‘extern’ and later ‘static’ [-fpermissive]
179 | static int pclose(FILE* fp)
| ^~~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/9.3.0/include/c++/cstdio:42,
from C:/gromacs-2020.3/src/gromacs/utility/futil.h:49,
from C:/gromacs-2020.3/src/gromacs/utility/futil.cpp:39:
/usr/include/stdio.h:344:5: note: previous declaration of ‘int pclose(FILE*)’
344 | int pclose (FILE *);
| ^~~~~~
make[2]: *** [src/gromacs/CMakeFiles/libgromacs.dir/build.make:298: src/gromacs/CMakeFiles/libgromacs.dir/utility/futil.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4396: src/gromacs/CMakeFiles/libgromacs.dir/all] Error 2
make: *** [Makefile:183: all] Error 2

Thank you in advance.

This problem has been solved by modifying the file futil, where the class static has been changed into extern to avoid any inconsistency