Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] PGI Fortran pthread support
From: Orion Poplawski (orion_at_[hidden])
Date: 2009-04-14 11:18:44


Orion Poplawski wrote:
> ./configure LIBS=-lgcc_eh ...
>
> did the trick.

Spoke too soon. This leads to:

/bin/sh ../../../libtool --mode=link pgf90 -I../../../ompi/include
-I../../../ompi/include -I. -I. -I../../../ompi/mpi/f90 -fastsse -fPIC
  -export-dynamic -Wl,-z,noexecstack -o libmpi_f90.la -rpath
/opt/openmpi/1.3.1-pgf-64/lib mpi.lo mpi_sizeof.lo
mpi_comm_spawn_multiple_f90.lo mpi_testall_f90.lo mpi_testsome_f90.lo
mpi_waitall_f90.lo mpi_waitsome_f90.lo mpi_wtick_f90.lo mpi_wtime_f90.lo
   ../../../ompi/libmpi.la -lnsl -lutil -lgcc_eh -lm
libtool: link: pgf90 -shared -fpic -Mnomain .libs/mpi.o
.libs/mpi_sizeof.o .libs/mpi_comm_spawn_multiple_f90.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
-Wl,-rpath
-Wl,/scratch/orion/redhat/openmpi-pgf-1.3.1/openmpi-1.3.1/ompi/.libs
-Wl,-rpath
-Wl,/scratch/orion/redhat/openmpi-pgf-1.3.1/openmpi-1.3.1/orte/.libs
-Wl,-rpath
-Wl,/scratch/orion/redhat/openmpi-pgf-1.3.1/openmpi-1.3.1/opal/.libs
-Wl,-rpath -Wl,/opt/openmpi/1.3.1-pgf-64/lib
-L/scratch/orion/redhat/openmpi-pgf-1.3.1/openmpi-1.3.1/orte/.libs
-L/scratch/orion/redhat/openmpi-pgf-1.3.1/openmpi-1.3.1/opal/.libs
../../../ompi/.libs/libmpi.so
/scratch/orion/redhat/openmpi-pgf-1.3.1/openmpi-1.3.1/orte/.libs/libopen-rte.so
/scratch/orion/redhat/openmpi-pgf-1.3.1/openmpi-1.3.1/opal/.libs/libopen-pal.so
-ldl -lnsl -lutil -lgcc_eh -lm -Wl,-z -Wl,noexecstack -pthread
-Wl,-soname -Wl,libmpi_f90.so.0 -o .libs/libmpi_f90.so.0.0.0
pgf90-Error-Unknown switch: -pthread

Looks like libtool is adding -pthread because it sees that you use
-pthread to link C programs and assumes that all linkers use it.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion_at_[hidden]
Boulder, CO 80301              http://www.cora.nwra.com