GROMACS version:2021.7 , 2021.6 , 2022.5 , 2023
GROMACS modification: No
Hey all,
I am trying to build gromacs 2021.7 using Mingw64 on Windows 10 (pro , x64) (without gpu support). & cpu: core-i7.
Used Cmake-GUI (3.25.2) for configuration. (FFTW , BUILD_SHARED_LIBS=On , GMX_PREFERE_STATIC_LIBS=Off , GMX_BUILD_SHARED_EXE=On).
The build process runs fine up until Make stage during which I get following error in the output:
[ 56%] Building CXX object src/gromacs/CMakeFiles/libgromacs.dir/timing/cyclecounter.cpp.obj
cd /d C:\Users\Sony\Downloads\gromacs-2021.7\build\src\gromacs && C:\mingw64\bin\c++.exe -DGMX_DOUBLE=0 -DHAVE_CONFIG_H -DNOMINMAX -DUSE_STD_INTTYPES_H -Dlibgromacs_EXPORTS @CMakeFiles/libgromacs.dir/includes_CXX.rsp -O3 -DNDEBUG -std=c++17 -msse2 -Wno-missing-field-initializers -fexcess-precision=fast -funroll-all-loops -fopenmp -MD -MT src/gromacs/CMakeFiles/libgromacs.dir/timing/cyclecounter.cpp.obj -MF CMakeFiles\libgromacs.dir\timing\cyclecounter.cpp.obj.d -o CMakeFiles\libgromacs.dir\timing\cyclecounter.cpp.obj -c C:\Users\Sony\Downloads\gromacs-2021.7\src\gromacs\timing\cyclecounter.cpp
C:\Users\Sony\AppData\Local\Temp\ccHkgd3l.s: Assembler messages:
C:\Users\Sony\AppData\Local\Temp\ccHkgd3l.s:27: Error: register type mismatch for xchg' C:\Users\Sony\AppData\Local\Temp\ccHkgd3l.s:29: Error: register type mismatch for
xchg’
C:\Users\Sony\AppData\Local\Temp\ccHkgd3l.s:38: Error: register type mismatch for xchg' C:\Users\Sony\AppData\Local\Temp\ccHkgd3l.s:40: Error: register type mismatch for
xchg’
mingw32-make.exe[2]: *** [src\gromacs\CMakeFiles\libgromacs.dir\build.make:5021: src/gromacs/CMakeFiles/libgromacs.dir/timing/cyclecounter.cpp.obj] Error 1
mingw32-make.exe[2]: Leaving directory ‘C:/Users/Sony/Downloads/gromacs-2021.7/build’
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:4104: src/gromacs/CMakeFiles/libgromacs.dir/all] Error 2
mingw32-make.exe[1]: Leaving directory ‘C:/Users/Sony/Downloads/gromacs-2021.7/build’
mingw32-make.exe: *** [Makefile:168: all] Error 2
To resolve the issue, I tried different releases of GROMACS source codes, namely, 2021.6 , 2021.7 , 2022.5 & 2023 which all resulted in the same error. Also tried different versions of Mingw64 (entailing GNU 12.2 OR GNU11.2) with no improvements. Will appreciate any advices/Insights , Thanks!