[petsc-dev] Issue compiling newest version

Matthew Knepley knepley at gmail.com
Wed Oct 3 20:43:51 CDT 2012


On Wed, Oct 3, 2012 at 5:24 PM, Satish Balay <balay at mcs.anl.gov> wrote:

> I think the attached patch should fix this issue. But I'll let Matt
> confirm - before comitting to repo


Yes, this is right.

  Thanks,

     Matt


>
> Satish
>
> On Wed, 3 Oct 2012, Chris Eldred wrote:
>
> > I am having issues compiling petsc-dev (the most recent version according
> > to hg pull -u). Here are the last few lines of output:
> >
> > [ 65%] Building CXX object
> > CMakeFiles/petsc.dir/src/dm/impls/complex/complexcreate.c.o
> >
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:
> > In function ‘PetscErrorCode DMComplexCreateSquareBoundary(DM, const
> > PetscReal*, const PetscReal*, const PetscInt*)’:
> >
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:40:18:
> > warning: unused variable ‘mesh’ [-Wunused-variable]
> >
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:
> > In function ‘PetscErrorCode DMComplexCreateCubeBoundary(DM, const
> > PetscReal*, const PetscReal*, const PetscInt*)’:
> >
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:158:18:
> > warning: unused variable ‘mesh’ [-Wunused-variable]
> >
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:
> > In function ‘PetscErrorCode DMComplexCreateSquareMesh(DM, const
> PetscReal*,
> > const PetscReal*, const PetscInt*)’:
> >
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complexcreate.c:255:18:
> > warning: unused variable ‘mesh’ [-Wunused-variable]
> > [ 65%] Building CXX object
> > CMakeFiles/petsc.dir/src/dm/impls/complex/complex.c.o
> > [ 65%] Building CXX object
> > CMakeFiles/petsc.dir/src/dm/impls/complex/complexexodusii.c.o
> > /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c: In
> > function ‘PetscErrorCode DMComplexGenerate_CTetgen(DM, PetscBool,
> _p_DM**)’:
> >
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c:4610:50:
> > error: cannot convert ‘DM_Complex*’ to ‘DM {aka _p_DM*}’ for argument ‘1’
> > to ‘PetscErrorCode DMGetCoordinatesLocal(DM, _p_Vec**)’
> >
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c:4611:59:
> > error: cannot convert ‘DM_Complex*’ to ‘DM {aka _p_DM*}’ for argument ‘1’
> > to ‘PetscErrorCode DMComplexGetCoordinateSection(DM, _n_PetscSection**)’
> > /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c: In
> > function ‘PetscErrorCode DMComplexRefine_CTetgen(DM, PetscReal*,
> _p_DM**)’:
> >
> /home/user/Desktop/LIBRARIES/petsc-dev/src/dm/impls/complex/complex.c:4729:18:
> > warning: unused variable ‘mesh’ [-Wunused-variable]
> > [ 65%] Building CXX object
> > CMakeFiles/petsc.dir/src/dm/impls/complex/complexvtk.c.o
> > make[4]: *** [CMakeFiles/petsc.dir/src/dm/impls/complex/complex.c.o]
> Error 1
> > make[4]: *** Waiting for unfinished jobs....
> > make[3]: *** [CMakeFiles/petsc.dir/all] Error 2
> > make[2]: *** [all] Error 2
> > make[1]: *** [cmake] Error 2
> > ********************************************************************
> >   Error during compile, check arch-linux2-cxx-debug/conf/make.log
> >   Send it and arch-linux2-cxx-debug/conf/configure.log to
> > petsc-maint at mcs.anl.gov
> > ********************************************************************
> > make: *** [all] Error 1
> >
> > I've sent my make.log and configure.log files to petsc-maint at mcs.anl.govas
> > requested.
> >
> >
>



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20121003/8d8fe93b/attachment.html>


More information about the petsc-dev mailing list