Description
I think this was caused #7169, unintentionally and indirectly.
The issue here is that configure assumes that the preprocessor used for C and Fortran are the same. This is not true when GCC C and NV/PGI Fortran are combined.
Background information
What version of Open MPI are you using? (e.g., v3.0.5, v4.0.2, git branch name and hash, etc.)
Every git update I've tried this year is affected.
Describe how Open MPI was installed (e.g., from a source/distribution tarball, from a git clone, from an operating system distribution package, etc.)
git clone, e.g. 1da3f93 and bc7bb12
If you are building/installing from a git clone, please copy-n-paste the output from git submodule status
.
the ones that come with the recursive clones of the git hashes above.
Please describe the system on which you are running
- Operating system/version: Linux
- Computer hardware: x86_64 or AArch64
- Network type: does not matter
Details of the problem
Use the NVIDIA/PGI Fortran compiler with GCC C and C++.
../configure FC=nvfortran CC=gcc CXX=g++ --enable-fortran=all --disable-io-romio && make -j8
Making all in profile
make[3]: Entering directory '/tmp/ompi/build/ompi/mpi/fortran/use-mpi-f08/profile'
/bin/sh ../../../../../libtool --tag=FC --mode=compile nvfortran -DHAVE_CONFIG_H -I. -I../../../../../../ompi/mpi/fortran/use-mpi-f08/profile -I../../../../../opal/include -I../../../../../ompi/include -I../../../../../oshmem/include -I../../../../../ompi/mpiext/cuda/c -iquote../../../../../.. -iquote../../../../.. -iquote../../../../../../opal/include -iquote../../../../../../ompi/include -iquote../../../../../../oshmem/include -I/tmp/ompi/build/3rd-party/libevent-2.1.12-stable -I/tmp/ompi/build/3rd-party/libevent-2.1.12-stable/include -I/tmp/ompi/build/3rd-party/hwloc-2.4.0/include -I/tmp/ompi/3rd-party/hwloc-2.4.0/include -I/tmp/ompi/build/3rd-party/openpmix/include -I/tmp/ompi/3rd-party/openpmix/include -I/usr/local/include -I/usr/local/include -I../../../../../../ompi/mpi/fortran/use-mpi-f08/mod -I../../../../../ompi/include -I../../../../../../ompi/include -I../../../../../ompi/mpi/fortran/use-mpi -I../../../../../ompi/mpi/fortran/use-mpi-ignore-tkr -I../mod -I../bindings -I../../../../../.. -I../../../../.. -DOMPI_BUILD_MPI_PROFILING=1 -c -o pabort_f08.lo pabort_f08.F90
libtool: compile: nvfortran -DHAVE_CONFIG_H -I. -I../../../../../../ompi/mpi/fortran/use-mpi-f08/profile -I../../../../../opal/include -I../../../../../ompi/include -I../../../../../oshmem/include -I../../../../../ompi/mpiext/cuda/c -iquote../../../../../.. -iquote../../../../.. -iquote../../../../../../opal/include -iquote../../../../../../ompi/include -iquote../../../../../../oshmem/include -I/tmp/ompi/build/3rd-party/libevent-2.1.12-stable -I/tmp/ompi/build/3rd-party/libevent-2.1.12-stable/include -I/tmp/ompi/build/3rd-party/hwloc-2.4.0/include -I/tmp/ompi/3rd-party/hwloc-2.4.0/include -I/tmp/ompi/build/3rd-party/openpmix/include -I/tmp/ompi/3rd-party/openpmix/include -I/usr/local/include -I/usr/local/include -I../../../../../../ompi/mpi/fortran/use-mpi-f08/mod -I../../../../../ompi/include -I../../../../../../ompi/include -I../../../../../ompi/mpi/fortran/use-mpi -I../../../../../ompi/mpi/fortran/use-mpi-ignore-tkr -I../mod -I../bindings -I../../../../../.. -I../../../../.. -DOMPI_BUILD_MPI_PROFILING=1 -c pabort_f08.F90 -o .libs/pabort_f08.o
nvfortran-Error-Unknown switch: -iquote../../../../../..
nvfortran-Error-Unknown switch: -iquote../../../../..
nvfortran-Error-Unknown switch: -iquote../../../../../../opal/include
nvfortran-Error-Unknown switch: -iquote../../../../../../ompi/include
nvfortran-Error-Unknown switch: -iquote../../../../../../oshmem/include
make[3]: *** [Makefile:2086: pabort_f08.lo] Error 1
make[3]: Leaving directory '/tmp/ompi/build/ompi/mpi/fortran/use-mpi-f08/profile'
make[2]: *** [Makefile:2450: all-recursive] Error 1
make[2]: Leaving directory '/tmp/ompi/build/ompi/mpi/fortran/use-mpi-f08'
make[1]: *** [Makefile:2674: all-recursive] Error 1
make[1]: Leaving directory '/tmp/ompi/build/ompi'
make: *** [Makefile:1434: all-recursive] Error 1
Metadata
Metadata
Assignees
Labels
No labels