<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr"><span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">Hi,</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">As far as I understand, the Big Sur arm64 port of gcc/gfortran 10.2 doesn’t know about float128 hence real128 and complex128 yet.</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">This leads to the following failure when trying to build mpich-3.4.1 compiled with</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">./configure --prefix=$MPICH_HOME \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> --enable-fast=all,O3 \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> --enable-g=dbg \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> --enable-romio \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> --enable-shared \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> --enable-sharedlibs=gcc-osx \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> --with-pm=hydra \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> CC=gcc-10 CXX=g++-10 FC=gfortran-10 F77=gfortran-10 \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> CFLAGS="-fgnu89-inline -Wno-deprecated" \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> CXXFLAGS="-Wno-deprecated" \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> FFLAGS=-fallow-argument-mismatch</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">SiMini:mpich-3.4.1 $ make</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">if test ! -h ./src/include/mpio.h ; then \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> rm -f ./src/include/mpio.h ; \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> ( cd ./src/include && \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> ln -s ../mpi/romio/include/mpio.h ) ; \</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> fi</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> MOD src/binding/fortran/use_mpi_f08/mpi_c_interface_types.stamp</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> MOD src/binding/fortran/use_mpi_f08/mpi_f08_types.stamp</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">src/binding/fortran/use_mpi_f08/mpi_f08_types.f90:355:17:</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> 355 | real(real128),dimension(..) :: x</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> | 1</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">Error: Kind -1 not supported for type REAL at (1)</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">src/binding/fortran/use_mpi_f08/mpi_f08_types.f90:385:20:</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> 385 | complex(real128),dimension(..) :: x</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> | 1</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">Error: Kind -1 not supported for type COMPLEX at (1)</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">src/binding/fortran/use_mpi_f08/mpi_f08_types.f90:383:36:</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> 383 | subroutine MPI_Sizeof_xcomplex128 (x, size, ierror)</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> | 1</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">Error: Symbol 'x' at (1) has no IMPLICIT type</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">src/binding/fortran/use_mpi_f08/mpi_f08_types.f90:353:33:</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> 353 | subroutine MPI_Sizeof_xreal128 (x, size, ierror)</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> | 1</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">Error: Symbol 'x' at (1) has no IMPLICIT type</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">src/binding/fortran/use_mpi_f08/mpi_f08_types.f90:353:30:</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> 353 | subroutine MPI_Sizeof_xreal128 (x, size, ierror)</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> | 1</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">......</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> 383 | subroutine MPI_Sizeof_xcomplex128 (x, size, ierror)</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);"> | 2</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">Error: Ambiguous interfaces in generic interface 'mpi_sizeof' for 'mpi_sizeof_xreal128' at (1) and 'mpi_sizeof_xcomplex128' at (2)</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<span style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px; background-color: rgb(255, 255, 255);">make: *** [src/binding/fortran/use_mpi_f08/mpi_f08_types.stamp] Error 1</span><br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
<br style="-webkit-text-size-adjust: auto; font-size: 14.666666984558105px;">
After communicating with him, I got the following reply rom FX Coudert who was involved in the port of gcc-10 to arm64:
<div><span style="-webkit-text-size-adjust: auto;"><br>
</span></div>
<div>
<blockquote type="cite"><span style="-webkit-text-size-adjust: auto;">1. The Fortran 2008 standard states:</span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;"></span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;">----</span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;">13.8.2.21 REAL32, REAL64, and REAL128</span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;"></span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;">The values of these default integer scalar named constants shall be those of the kind type parameters that specify a REAL type whose storage size expressed in bits is 32, 64, and 128 respectively. If, for any of
these constants, the processor supports more than one kind of that size, it is processor dependent which kind value is provided. If the processor supports no kind of a particular size, that constant shall be equal to -2 if the processor supports kinds of a
larger size and -1 otherwise.</span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;">----</span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;"></span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;">From your error message it is clear that REAL128 is correctly defined as -1.</span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;"></span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;"></span><br style="-webkit-text-size-adjust: auto;">
<span style="-webkit-text-size-adjust: auto;">2. Your configure output shows "checking size of __float128: 0” and "checking whether real*16 is supported: no”, so it seems the build has all the information it needs to avoid using REAL128 unconditionally.</span><br style="-webkit-text-size-adjust: auto;">
</blockquote>
</div>
<div><br>
</div>
<div><br>
</div>
<div>So it looks like in this case, the f08 bindings for real128 and complex128 are created even though they shouldn’t. I was not able to figure out how to disable their creation during the configure stage. Can somebody help? My config.log is attached.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Blaise</div>
<div><br>
</div>
<div>
<div class="BodyFragment" style="-webkit-text-size-adjust: auto;"><font size="2"><span style="font-size: 11pt;">
<div class="PlainText">-- <br>
A.K. & Shirley Barton Professor of Mathematics<br>
Adjunct Professor of Mechanical Engineering<br>
Adjunct of the Center for Computation & Technology<br>
Louisiana State University, Lockett Hall <a href="x-apple-data-detectors://0/1" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="0/1" style="color: currentcolor; text-decoration-color: rgba(128, 128, 128, 0.38);">Room
344, Baton Rouge, LA 70803, USA</a><br>
Tel. <a href="tel:+1%20(225)%20578%201612" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="0/2" style="color: currentcolor; text-decoration-color: rgba(128, 128, 128, 0.38);">+1 (225) 578 1612</a>,
Fax <a href="tel:+1%20(225)%20578%204276" dir="ltr" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="0/3" style="color: currentcolor; text-decoration-color: rgba(128, 128, 128, 0.38);">+1 (225) 578 4276</a> Web <a href="http://www.math.lsu.edu/~bourdin">http://www.math.lsu.edu/~bourdin</a><br>
<br>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div></div>
<div>
<blockquote type="cite"><br>
</blockquote>
<br>
</div>
</div>
</div>
</div>
</body>
</html>