Build fails on Windows via Cygwin
Following the instructions at https://gitlab.onelab.info/gmsh/fem/-/wikis/Compilation on Windows 11 via Cygwin.
Installation of Petsc and Gmsh goes well.
At step: "Build and install GmshFEM:" the "make install" command fails with 2 errors:
Make Error Text
`[ 25%] Building CXX object CMakeFiles/shared.dir/src/dofs/DofsFactory.cpp.o
In file included from /usr/lib/gcc/x86_64-w64-mingw32/11/include/x86gprintrin.h:41,
from /usr/lib/gcc/x86_64-w64-mingw32/11/include/x86intrin.h:27,
from /home/stuar/fem/contrib/robin-hood-hashing/robin_hood.h:139,
from /home/stuar/fem/src/field/FieldInterface.h:26,
from /home/stuar/fem/src/dofs/DofsFactory.h:9,
from /home/stuar/fem/src/dofs/DofsFactory.cpp:6:
/usr/lib/gcc/x86_64-w64-mingw32/11/include/bmiintrin.h: In member function ‘void robin_hood::detail::Table::Iter::fastForward() [with bool IsConst = false; bool IsFlat = true; long long unsigned int MaxLoadFactor100 = 80; Key = gmshfem::dofs::Dof*; T = float; Hash = gmshfem::common::hash; KeyEqual = gmshfem::common::equal_to]’:
/usr/lib/gcc/x86_64-w64-mingw32/11/include/bmiintrin.h:172:1: error: inlining failed in call to ‘always_inline’ ‘long long unsigned int _tzcnt_u64(long long unsigned int)’: target specific option mismatch
172 | _tzcnt_u64 (unsigned long long __X)
| ^~~~~~~~~~
In file included from /home/stuar/fem/src/field/FieldInterface.h:26,
from /home/stuar/fem/src/dofs/DofsFactory.h:9,
from /home/stuar/fem/src/dofs/DofsFactory.cpp:6:
/home/stuar/fem/contrib/robin-hood-hashing/robin_hood.h:149:68: note: called from here
149 | # define ROBIN_HOOD_COUNT_TRAILING_ZEROES(x) ROBIN_HOOD(CTZ)(x)
| ^
/home/stuar/fem/contrib/robin-hood-hashing/robin_hood.h:1282:24: note: in expansion of macro ‘ROBIN_HOOD_COUNT_TRAILING_ZEROES’
1282 | auto inc = ROBIN_HOOD_COUNT_TRAILING_ZEROES(n) / 8;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib/gcc/x86_64-w64-mingw32/11/include/x86gprintrin.h:41,
from /usr/lib/gcc/x86_64-w64-mingw32/11/include/x86intrin.h:27,
from /home/stuar/fem/contrib/robin-hood-hashing/robin_hood.h:139,
from /home/stuar/fem/src/field/FieldInterface.h:26,
from /home/stuar/fem/src/dofs/DofsFactory.h:9,
from /home/stuar/fem/src/dofs/DofsFactory.cpp:6:
/usr/lib/gcc/x86_64-w64-mingw32/11/include/bmiintrin.h:172:1: error: inlining failed in call to ‘always_inline’ ‘long long unsigned int _tzcnt_u64(long long unsigned int)’: target specific option mismatch
172 | _tzcnt_u64 (unsigned long long __X)
| ^~~~~~~~~~
In file included from /home/stuar/fem/src/field/FieldInterface.h:26,
from /home/stuar/fem/src/dofs/DofsFactory.h:9,
from /home/stuar/fem/src/dofs/DofsFactory.cpp:6:
/home/stuar/fem/contrib/robin-hood-hashing/robin_hood.h:149:68: note: called from here
149 | # define ROBIN_HOOD_COUNT_TRAILING_ZEROES(x) ROBIN_HOOD(CTZ)(x)
| ^
/home/stuar/fem/contrib/robin-hood-hashing/robin_hood.h:1282:24: note: in expansion of macro ‘ROBIN_HOOD_COUNT_TRAILING_ZEROES’
1282 | auto inc = ROBIN_HOOD_COUNT_TRAILING_ZEROES(n) / 8;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/shared.dir/build.make:496: CMakeFiles/shared.dir/src/dofs/DofsFactory.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1198: CMakeFiles/shared.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
`