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

Reply via email to