<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Jeff,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Try supply CROSS_F77_SIZEOF_REAL and CROSS_F77_SIZEOF_DOUBLE_PRECISION.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">-- <br>
Hui Zhou<o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
<b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">Jeff Hammond via discuss <discuss@mpich.org><br>
<b>Date: </b>Tuesday, September 7, 2021 at 6:36 AM<br>
<b>To: </b>MPICH <discuss@mpich.org><br>
<b>Cc: </b>Jeff Hammond <jeff.science@gmail.com><br>
<b>Subject: </b>[mpich-discuss] configure: error: '' is empty<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">I'm trying to cross-compile MPICH for RISC-V with<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><br>
CROSS_F77_TRUE_VALUE=1 CROSS_F77_FALSE_VALUE=0 CROSS_F77_SIZEOF_INTEGER=4 ../configure --host=riscv64-linux-gnu --prefix=/tmp/riscv/mpich CC=riscv64-linux-gnu-gcc-9 CXX=riscv64-linux-gnu-g++-9 FC=riscv64-linux-gnu-gfortran-9 --with-device=ch4:ofi<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">This results in the following error, which I cannot interpret.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><br>
checking for size of Fortran type integer... 4<br>
checking for size of Fortran type real... 0<br>
checking for size of Fortran type double precision... 0<br>
checking whether integer*1 is supported... yes<br>
checking whether integer*2 is supported... yes<br>
checking whether integer*4 is supported... yes<br>
checking whether integer*8 is supported... yes<br>
checking whether integer*16 is supported... yes<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>
configure: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8<br>
checking for C type matching Fortran real... unavailable<br>
checking for C type matching Fortran double... unavailable<br>
configure: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8<br>
checking for C type matching Fortran integer... int<br>
checking for values of Fortran logicals... True is 1 and False is 0<br>
<b><span style="color:red">configure: error: '' is empty</span></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in">Jeff<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in">-- <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:.5in">Jeff Hammond<br>
<a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br>
<a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>