<html xmlns:v="urn:schemas-microsoft-com:vml" 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=utf-8"><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:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.s1
{mso-style-name:s1;}
span.EmailStyle20
{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:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-CA link="#0563C1" vlink="#954F72" style='word-wrap:break-word;overflow-wrap: break-word;-webkit-nbsp-mode: space;line-break:after-white-space'><div class=WordSection1><p class=MsoNormal>Hi Pierre,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have tried to exclude Conda related environment variables but it does not work. Instead, if I include ‘--download-hdf5=yes’ but exclude ‘--with-hdf5-fortran-bindings’ in the configuration, PETSc can be configured and installed without problem, even with Conda related environment activated. However, since my code requires fortran interface to HDF5, I do need ‘--with-hdf5-fortran-bindings’, otherwise, my code cannot be compiled.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any other suggestions?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Danyang<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 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:12.0pt;color:black'>From: </span></b><span style='font-size:12.0pt;color:black'>Pierre Jolivet <pierre@joliv.et><br><b>Date: </b>Friday, January 6, 2023 at 7:59 AM<br><b>To: </b>Danyang Su <danyang.su@gmail.com><br><b>Cc: </b><petsc-users@mcs.anl.gov><br><b>Subject: </b>Re: [petsc-users] Error running configure on HDF5 in PETSc-3.18.3<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>On 6 Jan 2023, at 4:49 PM, Danyang Su <danyang.su@gmail.com> wrote:<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal><span lang=EN-US>Hi All,</span><span style='font-size:12.0pt'><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> </span><span style='font-size:12.0pt'><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>I get ‘Error running configure on HDF5’ in PETSc-3.18.3 on MacOS, but no problem on Ubuntu. Attached is the configuration log file.<span class=apple-converted-space> </span></span><span style='font-size:12.0pt'><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> </span><span style='font-size:12.0pt'><o:p></o:p></span></p></div><div><p class=MsoNormal><span class=s1><span style='font-size:8.5pt;font-family:Menlo'>./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mumps --download-scalapack --download-parmetis --download-metis --download-ptscotch --download-fblaslapack --download-mpich --download-hypre --download-superlu_dist --download-hdf5=yes --with-debugging=0 --download-cmake --with-hdf5-fortran-bindings</span></span><span style='font-size:8.5pt;font-family:Menlo'><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> </span><span style='font-size:12.0pt'><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Any idea on this?</span><span style='font-size:12.0pt'><o:p></o:p></span></p></div></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Could you try to reconfigure in a shell without conda being activated?<o:p></o:p></p></div><div><p class=MsoNormal>You have PATH=/Users/danyangsu/Soft/Anaconda3/bin:/Users/danyangsu/Soft/Anaconda3/condabin:[…] which typically results in a broken configuration.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal>Pierre<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal><span lang=EN-US>Thanks,</span><span style='font-size:12.0pt'><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US> </span><span style='font-size:12.0pt'><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Danyang</span><span style='font-size:12.0pt'><o:p></o:p></span></p></div></blockquote></div><p class=MsoNormal><br><br><o:p></o:p></p></div></body></html>