[petsc-dev] Build Fails And Warnings In KSP

Matthew Knepley knepley at gmail.com
Mon Dec 21 17:35:36 CST 2020


On Mon, Dec 21, 2020 at 4:44 PM Barry Smith <bsmith at petsc.dev> wrote:

>
>   There is a custom fortran stub but the C version does not have a /*@C
>

Dang it was the Jed changes.

  Matt


>   I have also reported directly in the MR other broken things about the
> merge (MergeTrain is the way to go).
>
>   Barry
>
>
> > On Dec 21, 2020, at 3:40 PM, Satish Balay via petsc-dev <
> petsc-dev at mcs.anl.gov> wrote:
> >
> > Hm - this is from https://gitlab.com/petsc/petsc/-/merge_requests/3489
> >
> > Maybe I made a mistake in verifying the pipeline tests passing [before
> merging]
> >
> > Matt, Can you check on this? [or I can revert this merge]
> >
> > Satish
> >
> > On Mon, 21 Dec 2020, Jacob Faibussowitsch wrote:
> >
> >> 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<mailto: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
> >>
> >>
> >
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201221/10ca1dbd/attachment-0001.html>


More information about the petsc-dev mailing list