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

Danyang Su danyang.su at gmail.com
Wed Oct 2 12:53:33 CDT 2019


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?

Thanks,

Danyang



More information about the petsc-users mailing list