[petsc-dev] Build Fails And Warnings In KSP

Jacob Faibussowitsch jacob.fai at gmail.com
Mon Dec 21 15:28:32 CST 2020


Hello All,

Seems a recent change introduced the following errors (I have tried make clean, make allfortranstubs, and then rebuild):


     CLINKER master-arch-darwin-c-debug/lib/libpetsc.3.014.2.dylib
duplicate symbol '_kspconvergedrateview_' in:
    master-arch-darwin-c-debug/obj/ksp/ksp/interface/ftn-auto/itfuncf.o
    master-arch-darwin-c-debug/obj/ksp/ksp/interface/ftn-custom/zitfuncf.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [gmakefile:112: master-arch-darwin-c-debug/lib/libpetsc.3.014.2.dylib] Error 1
gmake[2]: *** [/Users/jacobfaibussowitsch/NoSync/petsc/lib/petsc/conf/rules:49: libs] Error 2
**************************ERROR*************************************
  Error during compile, check master-arch-darwin-c-debug/lib/petsc/conf/make.log
  Send it and master-arch-darwin-c-debug/lib/petsc/conf/configure.log to petsc-maint at mcs.anl.gov
********************************************************************
gmake[1]: *** [makefile:40: all] Error 1
gmake: *** [GNUmakefile:9: all] Error 2


And warnings (although they appear harmless):


src/ksp/ksp/interface/itfunc.c:2283:39: warning: passing 'PetscReal **' (aka 'double **') to parameter of type 'const PetscReal **' (aka 'const double **') discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
    ierr = KSPGetResidualHistory(ksp, &hist, &n);CHKERRQ(ierr);

src/ksp/ksp/interface/itfunc.c:2167:64: note: passing argument to parameter 'a' here
PetscErrorCode KSPGetResidualHistory(KSP ksp, const PetscReal *a[],PetscInt *na)
                                                                                                              ^
src/ksp/ksp/interface/itfunc.c:2306:36: warning: passing 'PetscReal **' (aka 'double **') to parameter of type 'const PetscReal **' (aka 'const double **') discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
    ierr = KSPGetErrorHistory(ksp, &hist, &n);CHKERRQ(ierr);
                                                      ^~~~~
/Users/jacobfaibussowitsch/NoSync/petsc/src/ksp/ksp/interface/itfunc.c:2243:61: note: passing argument to parameter 'a' here
PetscErrorCode KSPGetErrorHistory(KSP ksp, const PetscReal *a[], PetscInt *na)
                                                                                                        ^
2 warnings generated.

Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)
Cell: (312) 694-3391

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201221/f5393be2/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 1545210 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201221/f5393be2/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201221/f5393be2/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: application/octet-stream
Size: 125096 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201221/f5393be2/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201221/f5393be2/attachment-0005.html>


More information about the petsc-dev mailing list