Package: libopenmpi-dev Version: 1.4.1-2 Severity: normal Hi,
Today I found that I cannot build static application with openmpi. The simple example to reproduce is as follows: $ cat test.c #include <mpi.h> int main(int argc, char** argv) { MPI_Init(&argc, &argv); MPI_Finalize(); } $ mpicc -static test.c /usr/lib/openmpi/lib/libopen-pal.a(dlopen.o): In function `vm_open': (.text+0x144): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/openmpi/lib/libopen-rte.a(plm_rsh_module.o): In function `setup_launch': (.text+0x801): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/openmpi/lib/libmpi.a(btl_tcp_component.o): In function `mca_btl_tcp_component_create_listen': (.text+0x126): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/lib/openmpi/lib/libmpi.a(btl_openib_component.o): In function `openib_dereg_mr': (.text+0x29e): undefined reference to `ibv_dereg_mr' /usr/lib/openmpi/lib/libmpi.a(btl_openib_component.o): In function `openib_reg_mr': (.text+0x341): undefined reference to `ibv_reg_mr' /usr/lib/openmpi/lib/libmpi.a(btl_openib_component.o): In function `device_destruct': (.text+0xd1f): undefined reference to `ibv_destroy_cq' /usr/lib/openmpi/lib/libmpi.a(btl_openib_component.o): In function `device_destruct': (.text+0xd34): undefined reference to `ibv_destroy_cq' ... more error follows ... /usr/lib/openmpi/lib/libopen-pal.a(maffinity_libnuma_module.o): In function `libnuma_module_init': (.text+0x157): undefined reference to `numa_set_strict' /usr/lib/openmpi/lib/libopen-pal.a(maffinity_libnuma_module.o): In function `libnuma_module_init': (.text+0x15c): undefined reference to `numa_set_localalloc' collect2: ld returned 1 exit status -- System Information: Debian Release: squeeze/sid APT prefers proposed-updates APT policy: (500, 'proposed-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-3-amd64 (SMP w/8 CPU cores) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libopenmpi-dev depends on: ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib ii libibverbs-dev 1.1.3-2 Development files for the libibver ii libopenmpi1.3 1.4.1-2 high performance message passing l ii openmpi-common 1.4.1-2 high performance message passing l libopenmpi-dev recommends no packages. libopenmpi-dev suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org