[petsc-users] Fwd: PETSC installation issues

Balay, Satish balay at mcs.anl.gov
Wed Feb 27 16:32:17 CST 2019


On Wed, 27 Feb 2019, Alexander Lindsay wrote:

> Is this part of the log relevant?

Here is the relevant part.

>>>>>>>>
Do not need to rebuild FBLASLAPACK
<<<<<<<

Here configure thinks FBLASLAPACK is already built.

>>>>>>>>>
TEST checkLib from config.packages.BlasLapack(/home/ryan/projects/moose/petsc/config/BuildSystem/config/packages/BlasLapack.py:114)
TESTING: checkLib from config.packages.BlasLapack(config/BuildSystem/config/packages/BlasLapack.py:114)
  Checking for BLAS and LAPACK symbols
                    Checking for functions [ddot_] in library ['/home/ryan/projects/moose/petsc/linux-c-opt/lib/libfblas.a'] ['libm.a', '-lstdc++', '-ldl', '-Wl,-rpa\
th,/usr/lib/openmpi', '-L/usr/lib/openmpi', '-lmpi_usempif08', '-lmpi_usempi_ignore_tkr', '-lmpi_mpifh', '-lmpi', '-lgfortran', '-lm', '-Wl,-rpath,/usr/lib/gcc/x86_6\
4-pc-linux-gnu/8.2.1', '-L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1', '-Wl,-rpath,/usr/lib/openmpi', '-lgfortran', '-lm', '-lgomp', '-lgcc_s', '-lquadmath', '-lpthread'\
]
                      Pushing language C
Executing: mpicc -c -o /tmp/petsc-VuReVk/config.libraries/conftest.o -I/tmp/petsc-VuReVk/config.setCompilers -I/tmp/petsc-VuReVk/config.compilers -I/tmp/petsc-VuReVk\
/config.utilities.closure -I/tmp/petsc-VuReVk/config.headers -I/tmp/petsc-VuReVk/config.utilities.cacheDetails -I/tmp/petsc-VuReVk/config.atomics -I/tmp/petsc-VuReVk\
/config.functions -I/tmp/petsc-VuReVk/config.utilities.featureTestMacros -I/tmp/petsc-VuReVk/config.utilities.missing -I/tmp/petsc-VuReVk/PETSc.options.scalarTypes -\
I/tmp/petsc-VuReVk/config.packages.MPI -I/tmp/petsc-VuReVk/config.types -I/tmp/petsc-VuReVk/config.packages.valgrind -I/tmp/petsc-VuReVk/config.packages.pthread -I/t\
mp/petsc-VuReVk/config.packages.metis -I/tmp/petsc-VuReVk/config.libraries -fPIC -fopenmp   -g -O  /tmp/petsc-VuReVk/config.libraries/conftest.c
Successful compile:
Source:
#include "confdefs.h"
#include "conffix.h"
/* Override any gcc2 internal prototype to avoid an error. */
char ddot_();
static void _check_ddot_() { ddot_(); }

int main() {
_check_ddot_();;
  return 0;
}
                              Pushing language C
                              Popping language C
Executing: mpicc  -o /tmp/petsc-VuReVk/config.libraries/conftest   -fPIC -fopenmp   -g -O /tmp/petsc-VuReVk/config.libraries/conftest.o  -Wl,-rpath,/home/ryan/projects/moose/petsc/linux-c-opt/lib -L/home/ryan/projects/moose/petsc/linux-c-opt/lib -lfblas -lm -lstdc++ -ldl -Wl,-rpath,/usr/lib/openmpi -L/usr/lib/openmpi -lmpi_usempif08 -lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm -Wl,-rpath,/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1 -Wl,-rpath,/usr/lib/openmpi -lgfortran -lm -lgomp -lgcc_s -lquadmath -lpthread -lstdc++ -ldl
Possible ERROR while running linker: exit code 256
stderr:
/usr/bin/ld: cannot find -lfblas
collect2: error: ld returned 1 exit status
<<<<<<<<<<

But here - the compiler is not finding the library.

So the library is not likely built.

You can either do:

rm -rf /home/ryan/projects/moose/petsc/linux-c-opt/

i.e delete all build files - and start a fresh build.

Or delete the file configure looks for and assumes this package is built - i.e

rm -f /home/ryan/projects/moose/petsc/linux-c-opt/lib/petsc/conf/pkg.conf.fblaslapack

and rerun configure.


Satish



More information about the petsc-users mailing list