You need --download-sowing-cc=gcc-11 --download-sowing-cxx=g++-11
> On Nov 8, 2023, at 7:28 PM, 张胜 <zs1...@sjtu.edu.cn> wrote: > > Thank you for your suggestion. However, similar error still occurs. The > configure.log has been attached. > > ----- 原始邮件 ----- > 发件人: "Satish Balay" <ba...@mcs.anl.gov> > 收件人: "zs1996" <zs1...@sjtu.edu.cn> > 抄送: "petsc-users" <petsc-users@mcs.anl.gov> > 发送时间: 星期四, 2023年 11 月 09日 上午 12:52:54 > 主题: Re: [petsc-users] error in configuring PETSc > > Suggest attaching text logs (copy/paste) - instead of screenshots. > > Try: > > ./configure --with-cc=gcc-11 --with-cxx=g++-11 --with-fc=gfortran-11 > --download-fftw --download-openmpi --download-fblaslapack --with-zlibs=yes > --with-szlib=no --with-c2html=0 --with-x=0 --download-hdf5-fortran-bindings=1 > --download-hdf5 --download-sowing-cxx=g++-11 > > If you still have issues - send configure.log for this failure > > Satish > > On Thu, 9 Nov 2023, 张胜 wrote: > >> Dear PETSc developer, >> >> I use the following commands to configure petsc, but errors occur: >> ./configure --with-cc=gcc-11 --with-cxx=g++-11 --with-fc=gfortran-11 >> --download-fftw --download-openmpi --download-fblaslapack >> --free-line-length-0 -g -fallow-argument-mismatch --enable-shared >> --enable-parallel --enable-fortran --with-zlibs=yes --with-szlib=no >> --with-cxx-dialect=C++11 --with-c2html=0 --with-x=0 >> --download-hdf5-fortran-bindings=1 --download-hdf5 >> >> >> I tried many times but cannot fix it. So I ask help for you. Thanks in >> advance. >> Best regards, >> Sheng Zhang >> >> Ph.D >> School of Materials Science and Engineering >> Shanghai Jiao Tong University >> 800 Dongchuan Road >> Shanghai, 200240 China > <configure.log>