[petsc-users] Install Petsc from repository "--download-fblaslapack libraries cannot be used"

Satish Balay balay at mcs.anl.gov
Thu Jan 25 18:01:24 CST 2018

> Configure Options: --configModules=PETSc.Configure --optionsModule=config.compilerOptions --download-hypre=1 --with-ssl=0 --with-debugging=no --with-pic=1 --with-shared-libraries=1 --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 --download-fblaslapack=1 --download-metis=1 --download-parmetis=1 --download-superlu_dist=1 --download-scalapack=1 --download-mumps=1 CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif77 F90=mpif90 CFLAGS="-fPIC -fopenmp" CXXFLAGS="-fPIC -fopenmp" FFLAGS="-fPIC -fopenmp" FCFLAGS="-fPIC -fopenmp" F90FLAGS="-fPIC -fopenmp" F77FLAGS="-fPIC -fopenmp" PETSC_DIR=~/project/petsc/petsc

use ${HOME} instead of ~ above.

> /usr/bin/ld: cannot find -lfblas

And delete your build dir i.e 'rm -rf ~/project/petsc/petsc/arch-linux2-c-opt/'

And see if the problem persists.


On Thu, 25 Jan 2018, John Haase wrote:

> Hello all,
> I am trying to install an bleeding edge version of Petsc (
> https://bitbucket.org/petsc/petsc/pull-requests/843/added-api-snesgetforceiteration/diff).
> However, when I try to install with the command
> ./configure --prefix=$PETSC_DIR/../installed --download-hypre=1
> --with-ssl=0 --with-debugging=no --with-pic=1 --with-shared-libraries=1
> --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 --download-fblaslapack=1
> --download-metis=1 --download-parmetis=1 --download-superlu_dist=1
> --download-scalapack=1 --download-mumps=1 CC=mpicc CXX=mpicxx FC=mpif90
> F77=mpif77 F90=mpif90 CFLAGS='-fPIC -fopenmp' CXXFLAGS='-fPIC -fopenmp'
> FFLAGS='-fPIC -fopenmp' FCFLAGS='-fPIC -fopenmp' F90FLAGS='-fPIC -fopenmp'
> F77FLAGS='-fPIC -fopenmp' PETSC_DIR=`pwd`
> I get the error "--download-fblaslapack libraries cannot be used". Any
> suggestions?
> I've attached configure.log in case I'm not reporting something important.
> Thank you for your help
> John
> Regards,
> John R. Haase
> jhaase1 at nd.edu

More information about the petsc-users mailing list