Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: [OMPI users] Problem in static linking and usage of openmpi with icc (and gcc)
From: rohan nigam (locaterohan_at_[hidden])
Date: 2011-06-29 11:31:48


Hello Everyone,
I am trying to statically build open mpi libraries from a server which has intel and pgi compilers installed and copy the resulting binaries to be used on another test server since I do not have intel and pgi compilers on these test servers (only gcc). First of all, please tell me if this is possible.
So far these are the three different options I have tried and ended up getting the respective errors while running the mpicc or mpirun on the test server:
Option 1:  Using LDFLAGS=-Bstatic
./configure CC=icc CXX=icpc F77=ifort FC=ifort LDFLAGS=-Bstatic --without-memory-manager --without-libnuma --enable-static --disable-shared  --prefix=/opt/openmpi/openmpi-intel --enable-mpi-f77 --enable-mpi-f90 2>&1 | tee configure-intel.log
Error on the test server:         ld: attempted static link of dynamic object `/cm/shared/apps/torque/2.4.11/lib/libtorque.so' make[2]: *** [orte-clean] Error 1 make[2]: Leaving directory `/opt/openmpi/openmpi-1.4.3-intel/openmpi-1.4.3/orte/tools/orte-clean' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/openmpi/openmpi-1.4.3-intel/openmpi-1.4.3/orte' make: *** [all-recursive] Error 1
Option 2: Using LDFLAGS= -staticError on the test server:                                                  root_at_ubuntu-server2:/opt/openmpi-intel/bin# ./mpicc Cannot open configuration file /opt/openmpi/openmpi-intel/share/openmpi/mpicc-wrapper-data.txt Error parsing data file mpicc: Not found root_at_ubuntu-server2:/opt/openmpi-intel/bin# mpirun                                     mpirun: error while loading shared libraries: libtorque.so.2: cannot open shared object file: No such file or directory
Option 3: LDFLAGS=-static-intel (same as deprecated i-static option)Error on the test server                             mpirun: error while loading shared libraries: libtorque.so.2:   cannot open shared object file: No such file or directory                                                  root_at_ubuntu-server2:/opt/openmpi-intel/bin# ./mpicc Cannot open configuration file /opt/openmpi/openmpi-intel/share/openmpi/mpicc-wrapper-data.txt Error parsing data file mpicc: Not found
How do I exclude torque shared libraries. Will that solve the problem?
FYI, both servers (test and the original server) are 64-bit AMD opterons and the openmpi works perfectly fine on the original server on which they were built on.
Any comments or suggestions will help.
Thanks,Rohan