[petsc-users] Makefile change for PETSc3.12.0???

Matthew Knepley knepley at gmail.com
Wed Oct 2 12:58:28 CDT 2019


On Wed, Oct 2, 2019 at 1:54 PM Danyang Su via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Dear All,
>
> I installed PETSc3.12.0 version and got problem in compiling my code
> (Fortran and C++). The code and makefile are the same as I used for
> previous PETSc version.
>
> The error information seems the make command does not know the compiler
> information. I tested this on two linux workstations and both return the
> same error.
>
> make: *** No rule to make target '../../usg/math_common.o', needed by
> 'exe'.  Stop.
>
> The makefile I use is shown below:
>
> #PETSc variables for development version, version V3.6.0 and later
> include ${PETSC_DIR}/lib/petsc/conf/variables
> include ${PETSC_DIR}/lib/petsc/conf/rules
>
> CFLAGS =
> CXXFLAGS = -std=c++11 -O3
> CPPFLAGS = -DUSECGAL_NO
> FFLAGS = -frounding-math -O3
> FPPFLAGS = -DLINUX -DRELEASE -DRELEASE_X64 -DPETSC -DPETSC_HAVE_MUMPS
> -DPETSC_HAVE_SUPERLU
> CLEANFILES = executable-linux
>
> SRC =./../../
>
> OBJS = $(SRC)usg/math_common.o\
>      $(SRC)usg/geometry_definition.o\
>      ...
>      $(SRC)updtrootdensity.o
>
> exe: $(OBJS) chkopts
>      -${FLINKER} $(FFLAGS) $(FPPFLAGS) $(CPPFLAGS) -o executable-linux
> $(OBJS) ${PETSC_LIB}
>
> Any idea on this?
>

Satish fixed this:
https://gitlab.com/petsc/petsc/commit/2f9dabc9ab2f7bb653429b8d7acc8cc6e2538062

It will be in the next patch release, but you can also just use the current
master branch.

  Thanks,

     Matt


> Thanks,
>
> Danyang
>
>

-- 
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-users/attachments/20191002/e9b27846/attachment.html>


More information about the petsc-users mailing list