This is a known issue; no one had expressed any desire to have it fixed:
http://www.open-mpi.org/faq/?category=mpi-apps#static-mpi-apps http://www.open-mpi.org/faq/?category=mpi-apps#static-ofa-mpi-apps Feel free to file a ticket and fix if you'd like... On Oct 1, 2007, at 11:56 PM, Brian Barrett wrote:
Hi all - There's a problem with the OpenIB components when statically linking. For whatever reason, the configure logic is not adding the right -L and -l flags to the mpicc wrapper flags. [17:26] brbarret@odin:pts/8 examples> mpicc -showme gcc -I/u/brbarret/Software/x86_64-unknown-linux-gnu/ompi/devel/ include -pthread -L/u/brbarret/Software/x86_64-unknown-linux-gnu/ompi/ devel/lib -lmpi -lopen-rte -lopen-pal -lnuma -ldl -Wl,--export- dynamic -lnsl -lutil -lm -ldl [17:42] brbarret@odin:pts/8 examples> make hello_c mpicc -g hello_c.c -o hello_c /u/brbarret/Software/x86_64-unknown-linux-gnu/ompi/devel/lib/libmpi.a (btl_openib_component.o)(.text+0x895): In function `openib_reg_mr': /u/brbarret/odin/ompi/trunk/ompi/mca/btl/openib/ btl_openib_component.c:304: undefined reference to `ibv_reg_mr' and many more, obviously. Good luck, Brian _______________________________________________ devel mailing list de...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/devel
-- Jeff Squyres Cisco Systems