[petsc-dev] What happened to FC_DEPFLAGS?

Balay, Satish balay at mcs.anl.gov
Wed Sep 25 11:03:22 CDT 2019


I have a fix in balay/fix_FC_DEPFLAGS

https://gitlab.com/petsc/petsc/merge_requests/2105

Can you give it a try?

Satish

On Wed, 25 Sep 2019, Lisandro Dalcin via petsc-dev wrote:

> $ make -f gmakefile print VAR=C_DEPFLAGS
> -MMD -MP
> $ make -f gmakefile print VAR=CXX_DEPFLAGS
> -MMD -MP
> $ make -f gmakefile print VAR=FC_DEPFLAGS
> <no output>
> 
> Somehow the configure test code is not being executed:
> 
> $ grep FC_ configure.log
>           Initialized FC_LINKER_FLAGS to []
>             Defined make macro "FC_LINKER_SLFLAG" to "-Wl,-rpath,"
>               Defined make macro "FC_VERSION" to "GNU Fortran (GCC) 9.2.1
> 20190827 (Red Hat 9.2.1-1)"
>                 Defined make macro "MPIFC_SHOW" to "gfortran -m64 -O2 -fPIC
> -Wl,-z,noexecstack -I/usr/include/mpich-x86_64
> -I/usr/lib64/gfortran/modules/mpich -L/usr/lib64/mpich/lib -lmpifort
> -Wl,-rpath -Wl,/usr/lib64/mpich/lib -Wl,--enable-new-dtags -lmpi"
>             Defined make macro "FC_DEFINE_FLAG" to "-D"
>           Defined make macro "FC_FLAGS" to " -Wall -ffree-line-length-0
> -Wno-unused-dummy-argument -O0 -g3  "
>           Defined make macro "FC_SUFFIX" to "o"
>           Defined make macro "FC_LINKER" to "mpif90"
>           Defined make macro "FC_LINKER_FLAGS" to "   -Wall
> -ffree-line-length-0 -Wno-unused-dummy-argument -O0 -g3 "
>           Defined make macro "FC_MODULE_FLAG" to "-I"
>           Defined make macro "FC_MODULE_OUTPUT_FLAG" to "-J"
>           Defined make macro "PETSC_FC_INCLUDES" to
> "-I/home/devel/petsc/dev/include
> -I/home/devel/petsc/dev/arch-linux2-c-debug/include"
>           Defined make macro "PETSC_FC_INCLUDES_INSTALL" to
> "-I/home/devel/petsc/dev/include
> -I/home/devel/petsc/dev/arch-linux2-c-debug/include"
> FC_DEFINE_FLAG = -D
> FC_VERSION = GNU Fortran (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)
> MPIFC_SHOW = gfortran -m64 -O2 -fPIC -Wl,-z,noexecstack
> -I/usr/include/mpich-x86_64 -I/usr/lib64/gfortran/modules/mpich
> -L/usr/lib64/mpich/lib -lmpifort -Wl,-rpath -Wl,/usr/lib64/mpich/lib
> -Wl,--enable-new-dtags -lmpi
> FC_MODULE_OUTPUT_FLAG = -J
> FC_LINKER_FLAGS =    -Wall -ffree-line-length-0 -Wno-unused-dummy-argument
> -O0 -g3
> FC_FLAGS =  -Wall -ffree-line-length-0 -Wno-unused-dummy-argument -O0 -g3
> PETSC_FC_INCLUDES_INSTALL = -I/home/devel/petsc/dev/include
> -I/home/devel/petsc/dev/arch-linux2-c-debug/include
> PETSC_FC_INCLUDES = -I/home/devel/petsc/dev/include
> -I/home/devel/petsc/dev/arch-linux2-c-debug/include
> FC_LINKER = mpif90
> FC_MODULE_FLAG = -I
> FC_SUFFIX = o
> FC_LINKER_SLFLAG = -Wl,-rpath,
> 
> 



More information about the petsc-dev mailing list