Skip to content

Commit

Permalink
Fix sizeof_f08.h build error
Browse files Browse the repository at this point in the history
  • Loading branch information
jtronge committed Dec 19, 2023
1 parent 16569c0 commit 12f8483
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
1 change: 0 additions & 1 deletion config/ompi_config_files.m4
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ AC_DEFUN([OMPI_CONFIG_FILES],[
ompi/mpi/fortran/use-mpi-ignore-tkr/mpi-ignore-tkr-removed-interfaces.h
ompi/mpi/fortran/use-mpi-f08/Makefile
ompi/mpi/fortran/use-mpi-f08/base/Makefile
ompi/mpi/fortran/use-mpi-f08/profile/Makefile
ompi/mpi/fortran/use-mpi-f08/bindings/Makefile
ompi/mpi/fortran/use-mpi-f08/mod/Makefile
ompi/mpi/fortran/use-mpi-f08/mod/mpi-f08-interfaces.h
Expand Down
38 changes: 19 additions & 19 deletions ompi/mpi/fortran/use-mpi-f08/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ MOSTLYCLEANFILES = *.mod
CLEANFILES += *.i90

lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_usempif08.la
noinst_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_usempif08_pmpi.la

module_sentinel_files = \
mod/libforce_usempif08_internal_modules_to_be_built.la \
Expand Down Expand Up @@ -94,9 +95,9 @@ sizeof_f08.f90:
--complex4=$(OMPI_HAVE_FORTRAN_COMPLEX4) \
--complex32=$(OMPI_HAVE_FORTRAN_COMPLEX32)

profile/psizeof_f08.f90: $(top_builddir)/config.status
profile/psizeof_f08.f90: $(sizeof_pl)
profile/psizeof_f08.f90:
psizeof_f08.f90: $(top_builddir)/config.status
psizeof_f08.f90: $(sizeof_pl)
psizeof_f08.f90:
$(OMPI_V_GEN) $(sizeof_pl) \
--impl=$@ --ierror=optional --pmpi \
--maxrank=$(OMPI_FORTRAN_MAX_ARRAY_RANK) \
Expand All @@ -107,7 +108,7 @@ profile/psizeof_f08.f90:
--complex4=$(OMPI_HAVE_FORTRAN_COMPLEX4) \
--complex32=$(OMPI_HAVE_FORTRAN_COMPLEX32)

CLEANFILES += sizeof_f08.h sizeof_f08.f90 profile/psizeof_f08.f90
CLEANFILES += sizeof_f08.h sizeof_f08.f90 psizeof_f08.f90

mpi_api_generated_files = \
send_f08_generated.F90
Expand Down Expand Up @@ -512,27 +513,27 @@ mpi_api_files = \
# JMS Somehow this variable substitution isn't quite working, and I
# don't have time to figure it out. So just wholesale copy the file
# list. :-(
#pmpi_api_files = $(mpi_api_files:%=profile/p%)
#pmpi_api_files = $(mpi_api_files:%=p%)

lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES = \
$(mpi_api_files) \
mpi-f08.F90

lib@OMPI_LIBMPI_NAME@_usempif08_la_FCFLAGS = \
$(AM_FCFLAGS) \
-DOMPI_BUILD_MPI_PROFILING=0

# These are generated; do not ship them
nodist_lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES =
# nodist_lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES =

if BUILD_FORTRAN_SIZEOF
SIZEOF_H = sizeof_f08.h
nodist_lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES += \
lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES += \
sizeof_f08.h \
sizeof_f08.f90 \
profile/psizeof_f08.f90
psizeof_f08.f90
endif

lib@OMPI_LIBMPI_NAME@_usempif08_la_FCFLAGS = \
$(AM_FCFLAGS) \
-DOMPI_BUILD_MPI_PROFILING=0

#
# Include the mpi_f08-based MPI extensions in libmpi_usempif08, too.
#
Expand All @@ -542,7 +543,7 @@ endif
#

lib@OMPI_LIBMPI_NAME@_usempif08_la_LIBADD = \
profile/libmpi_usempif08_pmpi.la \
lib@OMPI_LIBMPI_NAME@_usempif08_pmpi.la \
$(OMPI_MPIEXT_USEMPIF08_LIBS) \
$(top_builddir)/ompi/mpi/fortran/mpif-h/lib@OMPI_LIBMPI_NAME@_mpifh.la \
$(top_builddir)/ompi/lib@[email protected] \
Expand All @@ -561,6 +562,7 @@ mpi_api_lo_files = $(mpi_api_files:.F90=.lo)
$(mpi_api_lo_files): bindings/libforce_usempif08_internal_bindings_to_be_built.la

mpi-f08.lo: $(module_sentinel_files) $(SIZEOF_H)
mpi-f08.F90: $(SIZEOF_H)

#
# Profiling interface
Expand Down Expand Up @@ -957,26 +959,24 @@ pmpi_api_lo_files = $(pmpi_api_files:.F90=.lo)

$(pmpi_api_lo_files): bindings/libforce_usempif08_internal_bindings_to_be_built.la

noinst_LTLIBRARIES = libmpi_usempif08_pmpi.la

nodist_libmpi_usempif08_pmpi_la_SOURCES = \
lib@OMPI_LIBMPI_NAME@_usempif08_pmpi_la_SOURCES = \
$(pmpi_api_files)

nodist_libmpi_usempif08_pmpi_la_FCFLAGS = \
lib@OMPI_LIBMPI_NAME@_usempif08_pmpi_la_FCFLAGS = \
$(AM_FCFLAGS) \
-DOMPI_BUILD_MPI_PROFILING=1
#
# Sym link in the real sources
#
$(nodist_libmpi_usempif08_pmpi_la_SOURCES):
$(lib@OMPI_LIBMPI_NAME@_usempif08_pmpi_la_SOURCES):
$(OMPI_V_LN_S) if test ! -r $@ ; then \
pname=`echo $@ | cut -b '2-'` ; \
$(LN_S) $(top_srcdir)/ompi/mpi/fortran/use-mpi-f08/$$pname $@ ; \
fi

# These files were created by targets above

MAINTAINERCLEANFILES = $(nodist_libmpi_usempif08_pmpi_la_SOURCES)
MAINTAINERCLEANFILES = $(lib@OMPI_LIBMPI_NAME@_usempif08_pmpi_la_SOURCES)

#
# Automake doesn't do Fortran dependency analysis, so must list them
Expand Down

0 comments on commit 12f8483

Please sign in to comment.