[petsc-dev] Compiling PETsc against openblas on Linux

Antonio anto.trande at gmail.com
Fri Aug 31 13:06:41 CDT 2018


It's failing for missing (not required) links:

Executing: mpicc  -o /tmp/petsc-FYncGY/config.libraries/conftest
-Wl,-z,relro   -fPIC  -Wall -Wwrite-strings -Wno-strict-aliasing
-Wno-unknown-pragmas -fstack-protector -fvisibility=hidden -g3
/tmp/petsc-FYncGY/config.libraries/conftest.o  -lsunperf -lfui -lfsu
-lsunmath -lm -lstdc++ -ldl -L/usr/lib64/openmpi/lib -lmpi_usempif08
-lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lgfortran -lm
-L/usr/lib/gcc/x86_64-redhat-linux/8 -L/usr/lib64/openmpi/lib -lgfortran
-lm -lgcc_s -lquadmath -lpthread -lstdc++ -ldl
Possible ERROR while running linker: exit code 256
stderr:
/usr/bin/ld: cannot find -lsunperf
/usr/bin/ld: cannot find -lfui
/usr/bin/ld: cannot find -lfsu
/usr/bin/ld: cannot find -lsunmath
collect2: error: ld returned 1 exit status
                      Popping language C
                Unknown name mangling in BLAS/LAPACK
              MKL Path not found.. skipping: /cygdrive/c/Program
Files/Intel/MKL/9.0
              MKL Path not found.. skipping: /cygdrive/c/Program
Files/Intel/MKL/8.1.1
              MKL Path not found.. skipping: /cygdrive/c/Program
Files/Intel/MKL/8.1
              MKL Path not found.. skipping: /cygdrive/c/Program
Files/Intel/MKL/8.0.1
              MKL Path not found.. skipping: /cygdrive/c/Program
Files/Intel/MKL/8.0
              MKL Path not found.. skipping: /cygdrive/c/Program
Files/Intel/MKL72
              MKL Path not found.. skipping: /cygdrive/c/Program
Files/Intel/MKL70
              MKL Path not found.. skipping: /cygdrive/c/Program
Files/Intel/MKL61
              MKL Path not found.. skipping: /cygdrive/c/Program
Files/Intel/MKL
**** Configure header /tmp/petsc-FYncGY/confdefs.h ****

On 31/08/2018 19:41, Smith, Barry F. wrote:
> 
>    Ah, sorry for the confusion. We do support --download-openblas where PETSc will download and install and OpenBlas for you but if you have it already installed then you need to treat it just as a BLASLAPACK library so use
> 
> 
>> --with-blaslapack-include=%{_includedir} \
>> --with-blaslapack-lib=%{_libdir}/libopenblas.so \
>> --known-64-bit-blas-indices=0 \
> 
>    If this fails then mail configure.log to petsc-maint at mcs.anl.gov
> 
>     Barry
> 

-- 
---
Antonio Trande
Fedora Project
mailto 'sagitter at fedoraproject dot org'
GPG key: 0x5E212EE1D35568BE
GPG key server: https://keys.fedoraproject.org/


More information about the petsc-dev mailing list