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: Gus Correa (gus_at_[hidden])
Date: 2009-04-14 11:33:17


Hi Orion

That's exactly what happened to me.
Configured OK, failed on make because of "-pthread".
See my message from a minute ago, and this thread,
for a workaround suggested by Jeff Squyres,
of stripping off "-phtread" from the pgf90 flags:

http://www.open-mpi.org/community/lists/users/2009/04/8724.php

There is a little script in the above message to do the job.

I hope it helps.

Gus Correa
---------------------------------------------------------------------
Gustavo Correa
Lamont-Doherty Earth Observatory - Columbia University
Palisades, NY, 10964-8000 - USA
---------------------------------------------------------------------

Orion Poplawski wrote:
> 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.
>