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

Danyang Su danyang.su at gmail.com
Wed Oct 2 13:37:41 CDT 2019


On 2019-10-02 11:00 a.m., Balay, Satish wrote:
> Can you retry with this fix:
>
> https://gitlab.com/petsc/petsc/commit/3ae65d51d08dba2e118033664acfd64a46c9bf1d
>
> [You can use maint branch for it]
>
> Satish

This works. Thanks.

Danyang

>
> On Wed, 2 Oct 2019, Danyang Su via petsc-users 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?
>>
>> Thanks,
>>
>> Danyang
>>


More information about the petsc-users mailing list