Hello,
Trying to link OpenMPI-1.3.3 with PGI 9.0-1 and got the following error :
# ./configure --prefix=/opt/ofed/mpi/pgi/openmpi-1.3.3 --with-openib=/opt/ofed
FC=pgf95 CC=gcc CXX=g++
# make
[...]
libtool: link: pgf95 -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,/usr/local/src/openmpi-1.3.3/ompi/.libs -Wl,-rpath -Wl,/usr/local/src/openmpi-1.3.3/orte/.libs -Wl,-rpath -Wl,/usr/local/src/openmpi-1.3.3/opal/.libs -Wl,-rpath -Wl,/opt/ofed/mpi/pgi/openmpi-1.3.3/lib -L/usr/local/src/openmpi-1.3.3/orte/.libs -L/usr/local/src/openmpi-1.3.3/opal/.libs ../../../ompi/.libs/libmpi.so /usr/local/src/openmpi-1.3.3/orte/.libs/libopen-rte.so /usr/local/src/openmpi-1.3.3/opal/.libs/libopen-pal.so -ldl -lnsl -lutil -lm -pthread -Wl,-soname -Wl,libmpi_f90.so.0 -o .libs/libmpi_f90.so.0.0.0
pgf95-Error-Unknown switch: -pthread
make[4]: *** [libmpi_f90.la] Error 1
make[4]: Leaving directory `/usr/local/src/openmpi-1.3.3/ompi/mpi/f90'
[...]
# uname -a
Linux turing.limsi.fr 2.6.9-42.0.2.ELsmp #1 SMP Wed Aug 23 13:38:27 BST 2006
x86_64 x86_64 x86_64 GNU/Linux
It seems configure missed -l switch before pthread string. Is there any workarround for
that. Thanks a lot for your help.
Jalel
--
*------------------------------------------------------------------------*
Jalel CHERGUI, LIMSI-CNRS, Bât. 508 - BP 133, 91403 Orsay cedex, FRANCE
Tél : (33 1) 69 85 81 27 ; Télécopie : (33 1) 69 85 80 88
Mél : Jalel.Chergui_at_[hidden] ; Référence : http://perso.limsi.fr/chergui
*------------------------------------------------------------------------*
|