Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Brian Barrett (brbarret_at_[hidden])
Date: 2007-10-01 17:56:27


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_at_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_at_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