[petsc-users] Error installing PETSc with --download-f2cblaslapack

Satish Balay balay.anl at fastmail.org
Sun Jun 8 10:49:08 CDT 2025


>>>>
cgeesx.c: In function 'cgeesx_':
cgeesx.c:509:27: error: too many arguments to function 'select'; expected 0, have 1
  509 |             bwork[i__] = (*select)(&w[i__]);
      |                          ~^~~~~~~~ ~~~~~~~
<<<<<

>>>
Executing: mpicc --version
stdout:
x86_64-conda-linux-gnu-cc (conda-forge gcc 15.1.0-2) 15.1.0
<<<<

Ah - ok - this is a gcc-15 compatibility issue. (I'm not sure what the appropriate code fix here is). The workaround is to use: -std=gnu17

petsc-3.23 should automatically set/use this flag. With older versions - perhaps you can try:

COPTFLAGS="-O3 -std=gnu17"

Satish

On Fri, 6 Jun 2025, Blondel, Sophie via petsc-users wrote:

> Sorry about that, I clearly didn't read the email well...
> 
> Best,
> 
> Sophie
> ________________________________
> From: Barry Smith <bsmith at petsc.dev>
> Sent: Friday, June 6, 2025 19:27
> To: Blondel, Sophie <sblondel at utk.edu>
> Cc: petsc-users at mcs.anl.gov <petsc-users at mcs.anl.gov>
> Subject: Re: [petsc-users] Error installing PETSc with --download-f2cblaslapack
> 
> you forgot configure.log
> 
> 
> 
> On Jun 6, 2025, at 7:19 PM, Blondel, Sophie <sblondel at utk.edu> wrote:
> 
> Correct, I tried a few different python versions and mpi versions, conda is providing the external dependencies. Maybe it wrongly points to some base builds instead of the specific environment I set up.
> 
> Best,
> 
> Sophie
> 
> On Jun 6, 2025 7:12 PM, Barry Smith <bsmith at petsc.dev> wrote:
> 
>   Send configure.log
> 
>   I assume you tried rerunning a few times? It seems like possibly a flaky filesystem problem.
> 
>   Barry
> 
> 
> On Jun 6, 2025, at 6:56 PM, Blondel, Sophie via petsc-users <petsc-users at mcs.anl.gov> wrote:
> 
> Hi,
> 
> I am getting an error when trying to install PETSc with --download-f2cblaslapack on Linux:
> =============================================================================================
>                    Installing F2CBLASLAPACK; this may take several minutes
> =============================================================================================
> 
> *********************************************************************************************
>            UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
> ---------------------------------------------------------------------------------------------
>   Error moving
>   /home/sophie/Workspace/xolotl-stable-source/external/petsc/arch-linux-c-opt/externalpackages/f2cblaslapack-3.8.0.q2
>   libraries
> 
> With the error in configure.log (which is accurate, the file is not present in the folder):
> =============================================================================================
>                    Installing F2CBLASLAPACK; this may take several minutes
> =============================================================================================
> Executing: ['mkdir', '-p', '/home/sophie/Workspace/xolotl-stable-build/external/petsc_install/lib']
> Executing: ['cp', '-f', 'libf2clapack.a', 'libf2cblas.a', '/home/sophie/Workspace/xolotl-stable-build/external/petsc_install/lib']
> stdout: cp: cannot stat 'libf2clapack.a': No such file or directory
>                     Error moving /home/sophie/Workspace/xolotl-stable-source/external/petsc/arch-linux-c-opt/externalpackages/f2cblaslapack-3.8.0.q2 libraries: Could not execute "[['mkdir', '-p', '/home/sophie/Workspace/xolotl-stable-build/external/petsc_install/lib'], ['cp', '-f', 'libf2clapack.a', 'libf2cblas.a', '/home/sophie/Workspace/xolotl-stable-build/external/petsc_install/lib']]":
> cp: cannot stat 'libf2clapack.a': No such file or directory
> 
> The configure command is:
> ./configure --prefix=/home/sophie/Workspace/xolotl-stable-build/external/petsc_install --with-fc=0 --with-cuda=0 --with-mpi --with-openmp=0 --with-debugging=0 --with-shared-libraries --with-64-bit-indices --download-kokkos --download-kokkos-kernels --download-hdf5 --download-hdf5-configure-arguments=--enable-parallel --download-boost --download-f2cblaslapack --COPTFLAGS=-O3 --CXXOPTFLAGS=-O3
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> The version of PETSc you are using is out-of-date, we recommend updating to the new release
>  Available Version: 3.23.3   Installed Version: 3.22.2
> 
> Let me know what additional information I can provide to help identify the issue.
> 
> Best,
> 
> Sophie
> 
> 
> 


More information about the petsc-users mailing list