<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello ZQ,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am not able to reproduce this on cardinal.  I was able to install mvapich through spack just fine with the spack installed versions of the oneapi compilers.  The compiler versions I tested are 2024.0.2 and 2024.0.1 It looks like you were trying to use 2024.1
 but I do not see that in spack.  It may help to look at the compilers.yaml file to see if any flags are different or missing in it for this 2024.1.  </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-Matt</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Mvapich-discuss <mvapich-discuss-bounces+lieber.31=osu.edu@lists.osu.edu> on behalf of You, Zhi-Qiang via Mvapich-discuss <mvapich-discuss@lists.osu.edu><br>
<b>Sent:</b> Wednesday, April 24, 2024 9:38 PM<br>
<b>To:</b> mvapich-discuss@lists.osu.edu <mvapich-discuss@lists.osu.edu><br>
<b>Subject:</b> [Mvapich-discuss] Error Encountered in MVAPICH 3.0 Configuration with oneAPI 2024 in Spack 0.21</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:PMingLiU}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Aptos}
@font-face
        {}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Aptos",sans-serif}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black">Hello,</span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"> </span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black">I encountered the following error during the configuration step while building MVAPICH 3.0 with oneAPI 2024 in Spack 0.21:</span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"> </span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black">configure: error: Unable to configure with Fortran support because configure could not determine the size of a Fortran INTEGER.  Consider setting CROSS_F77_SIZEOF_INTEGER to the length in bytes
 of a Fortran INTEGER</span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"> </span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black">It appears that the error occurred because the compiler was identified as a cross-compiler:<br>
<br>
checking whether the Fortran 90 compiler (/users/PZS0710/zyou/spack/cardinal/lib/spack/env/oneapi/ifx   -Wl,-rpath,/apps/spack/0.21/cardinal/linux-rhel9-sapphirerapids/intel-oneapi-compilers/gcc/11.3.1/2024.1.0-utk57mo/compiler/2024.1/lib ) is a cross-compiler...
 yes</span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"> </span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black">When I used the oneAPI 2023 compiler from Spack or the oneAPI 2024 compiler directly from the module, the compiler was not identified as a cross-compiler, and I had no issues building MVAPICH
 3.0.</span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"><br>
Has anyone else encountered the same issue? Any comments or suggestions are welcome.</span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"><br>
Thank you,<br>
ZQ</span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"> </span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"> </span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; color:black"> </span><span style="color:black"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
</div>
</body>
</html>