Yes, that is a problem :-(
you might want to reconfigure with
--enable-static --disable-shared --disable-dlopen
and see if it helps
or you can simply manuall edit
/opt/openmpi-2.0.1/share/openmpi/mpifort-wrapper-data.txt,
and append -ldl to the libs_static definition
Cheers,
Gilles
On 11/4/2016 4:13 PM, Mahmood Naderan wrote:
>did you build Open MPI as a static only library ?
Yes, I used --enable-static --disable-shared
Please see the output
# mpifort -O3 -o xCbtest --showme blacstest.o btprim.o tools.o Cbt.o
../../libscalapack.a -ldl
gfortran -O3 -o xCbtest blacstest.o btprim.o tools.o Cbt.o
../../libscalapack.a -ldl -I/opt/openmpi-2.0.1/include -pthread
-I/opt/openmpi-2.0.1/lib -Wl,-rpath -Wl,/opt/openmpi-2.0.1/lib
-Wl,--enable-new-dtags -L/opt/openmpi-2.0.1/lib -lmpi_usempif08
-lmpi_usempi_ignore_tkr -lmpi_mpifh -lmpi -lopen-rte -lopen-pal -lm
-lrt -lutil
I don't see what you said after "-lopen-pal". Is that OK?
Regards,
Mahmood
On Fri, Nov 4, 2016 at 10:23 AM, Gilles Gouaillardet
<gil...@rist.or.jp <mailto:gil...@rist.or.jp>> wrote:
Mahmood,
did you build Open MPI as a static only library ?
i guess the -ldl position is wrong. your link command line should be
mpifort -O3 -o xCbtest blacstest.o btprim.o tools.o Cbt.o
../../libscalapack.a -ldl
you can manually
mpifort -O3 -o xCbtest --showme blacstest.o btprim.o tools.o Cbt.o
../../libscalapack.a -ldl
it should show -ldl is added *after* -lopen-pal
Cheers,
Gilles
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/users