[petsc-dev] PETSc 3.8.2 and Sundials 3.0.0

Smith, Barry F. bsmith at mcs.anl.gov
Wed Nov 15 14:06:55 CST 2017


  In general PETSc will not work out of the box against newer versions of external packages. If you do not need the new features of Sundials then just use the default download of Sundials that PETSc uses automatically. If you need the latest Sundials then someone needs to go through the process of updating the PETSc interface (from the PETSc master branch at bitbucket) to work with the latest Sundials.

   Barry


> On Nov 15, 2017, at 1:53 PM, Antonio Trande <anto.trande at gmail.com> wrote:
> 
> Hi all.
> 
> I can't build 'PETSc 3.8.*' with MPI against new 'Sundials-3.0.0':
> 
> *******************************************************************************
>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
> for details):
> -------------------------------------------------------------------------------
> --with-sundials-lib=['-L/usr/lib64/openmpi/lib',
> '-lsundials_nvecparallel'] and
> --with-sundials-include=['/usr/include/openmpi-x86_64'] did not work
> *******************************************************************************
> 
> configure.log reports something like that:
> 
> Executing: /usr/lib64/openmpi/bin/mpicc  -o
> /tmp/petsc-080_o1/config.libraries/conftest -Wl,-z,relro  -Wl,-z,now
> -fPIC  -O2 -g -pipe -Wall -Werror=format-security
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
> --param=ssp-buffer-size=4 -grecord-gcc-switches  -m64 -mtune=generic -O3
> -Wl,-z,now -fPIC   /tmp/petsc-080_o1/config.libraries/conftest.o
> -L/usr/lib64/openmpi/lib -lsundials_nvecparallel -lopenblas -lm -ldl
> Possible ERROR while running linker: exit code 256
> stderr:
> /tmp/petsc-080_o1/config.libraries/conftest.o: In function `_check_CVSpgmr':
> /tmp/petsc-080_o1/config.libraries/conftest.c:5: undefined reference to
> `CVSpgmr'
> collect2: error: ld returned 1 exit status
> 
> 'configure.log' is attached.
> 
> -- 
> --
> Antonio Trande
> sagitter AT fedoraproject dot org
> See my vCard.
> <configure.log.zip><sagitter.vcf>



More information about the petsc-dev mailing list