<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div><div><div>Hello all,<br><br></div>   I am trying to compile mpich-3.1.2 under Cygwin 64bit. I am using the mingw64- x86_64-gcc-g++ and mingw64-x86_64-gcc-gfortran compilers, i.e. the mingw compilers shipped in the latest Cygwin. I encountered an internal error "Failed to convert MPI_INTEGER value to hex!" when configuring.<br><br>  ========================================================<br>checking whether real*4 is supported... yes<br>checking whether real*8 is supported... yes<br>checking whether real*16 is supported... yes<br>: integer expression expected: 4<br>: integer expression expected: 4<br>: integer expression expected: 4<br>: integer expression expected: 8<br>: integer expression expected: 8<br>: integer expression expected: 8<br>checking for C type matching Fortran real... unavailable<br>checking for C type matching Fortran double... unavailable<br>expr: syntax error<br>expr: syntax error<br>expr: non-integer argument<br>./configure: line 38715: test: : integer expression expected<br>./configure: line 38720: test: -gt: unary operator expected<br>./configure: line 38734: test: -lt: unary operator expected<br>./configure: line 38715: test: : integer expression expected<br>./configure: line 38720: test: -gt: unary operator expected<br>./configure: line 38734: test: -lt: unary operator expected<br>./configure: line 38715: test: : integer expression expected<br>./configure: line 38720: test: -gt: unary operator expected<br>./configure: line 38734: test: -lt: unary operator expected<br>expr: non-integer argument<br>./configure: line 38783: test: -ge: unary operator expected<br>expr: syntax error<br>expr: syntax error<br>expr: syntax error<br>expr: syntax error<br>configure: error: Internal Error: Failed to convert MPI_INTEGER value to hex!  O<br>riginal value was 0x4c001b<br>=============================================================<br></div><br>In config.log, it shows<br>=============================================================<br>configure:38248: checking for size of Fortran type double precision<br>configure:38289: gcc -c    -O2   -I/cygdrive/c/Library/mpich2/mpich-3.1.2/src/mpl/include -I/cygdrive/c/Library/mpich2/mpich-3.1.2/src/mpl/include -I/cygdrive/c/Library/mpich2/mpich-3.1.2/src/openpa/src -I/cygdrive/c/Library/mpich2/mpich-3.1.2/src/openpa/src -D_REENTRANT -I/cygdrive/c/Library/mpich2/mpich-3.1.2/src/mpi/romio/include conftest.c >&5<br>configure:38289: $? = 0<br>configure:38293: mv conftest.o pac_conftest.o<br>configure:38296: $? = 0<br>configure:38323: gfortran -o conftest.exe   -O2   conftest.f pac_conftest.o   >&5<br>configure:38323: $? = 0<br>configure:38323: ./conftest.exe<br>configure:38323: $? = 0<br>configure:38361: result: 8<br><br>configure:38384: checking whether integer*1 is supported<br>configure:38395: gfortran -c   -O2 conftest.f >&5<br>configure:38395: $? = 0<br>configure:38402: result: yes<br>configure:38404: checking whether integer*2 is supported<br>configure:38415: gfortran -c   -O2 conftest.f >&5<br>configure:38415: $? = 0<br>configure:38422: result: yes<br>configure:38424: checking whether integer*4 is supported<br>configure:38435: gfortran -c   -O2 conftest.f >&5<br>configure:38435: $? = 0<br>configure:38442: result: yes<br>configure:38444: checking whether integer*8 is supported<br>configure:38455: gfortran -c   -O2 conftest.f >&5<br>configure:38455: $? = 0<br>configure:38462: result: yes<br>configure:38464: checking whether integer*16 is supported<br>configure:38475: gfortran -c   -O2 conftest.f >&5<br>configure:38475: $? = 0<br>configure:38482: result: yes<br>configure:38484: checking whether real*4 is supported<br>configure:38495: gfortran -c   -O2 conftest.f >&5<br>configure:38495: $? = 0<br>configure:38502: result: yes<br>configure:38504: checking whether real*8 is supported<br>configure:38515: gfortran -c   -O2 conftest.f >&5<br>configure:38515: $? = 0<br>configure:38522: result: yes<br>configure:38524: checking whether real*16 is supported<br>configure:38535: gfortran -c   -O2 conftest.f >&5<br>configure:38535: $? = 0<br>configure:38542: result: yes<br>configure:38641: checking for C type matching Fortran real<br>configure:38659: result: unavailable<br>configure:38664: checking for C type matching Fortran double<br>configure:38681: result: unavailable<br>configure:38842: error: Internal Error: Failed to convert MPI_INTEGER value to hex!  Original value was 0x4c001b<br>=============================================================<br><br></div>Can you help?<br><br>Thanks,<br>Mengda<br><div><br></div></div>