Trying to build a hybrid OpenMPI with PGI fortran and gcc to support
The problem appears to be due to a -pthread switch passed to pgfortran.
libtool: link: pgfortran -shared -fpic -Mnomain .libs/mpi.o
.libs/mpi_testall_f90.o .libs/mpi_testsome_f90.o .libs/mpi_waitall_f90.o
.libs/mpi_waitsome_f90.o .libs/mpi_wtick_f90.o .libs/mpi_wtime_f90.o
-lnsl -lutil -lm -pthread -Wl,-soname -Wl,libmpi_f90.so.0 -o
pgfortran-Error-Unknown switch: -pthread
make: *** [libmpi_f90.la] Error 1
There has been discussion on this issue and the below solution
suggested. This doesn't appear to work for the 10.8
There was a previous thread:
suggesting other solutions.
Wondering if there is a better solution right now? Building 1.4.2