Try using the same LDFLAGS for PGI. I think you got exactly what you asked for from PGI when you used -Bstatic_pgi.
I'm not sure what value there is to having mpirun be a static binary, other than enabling users to be ignorant of how LD_LIBRARY_PATH works and wasting space in your filesystem. You should instead consider rpath. Jeff On Thursday, December 31, 2015, Ilias Miroslav <miroslav.il...@umb.sk> wrote: > Dear experts, > > > while I have succeeded to build fully statically linked OpenMPI with Intel > compilers: > > > ./configure --prefix=/home/ilias/bin/openmpi-1.10.1_intel_static > --without-memory-manager CXX=icpc CC=icc F77=ifort FC=ifort > LDFLAGS=--static --disable-shared --enable-static > > > il...@grid.ui.savba.sk:~/bin/openmpi-1.10.1_intel_static/bin/.ldd mpif90; > ldd mpicc; ldd mpirun > not a dynamic executable > not a dynamic executable > not a dynamic executable > > > I have not succeeded with PGI compilers: > > $ ./configure --prefix=/home/ilias/bin/openmpi-1.10.1_pgi_static > CXX=pgCC CC=pgcc F77=pgf77 FC=pgf90 CPP=cpp LDFLAGS=-Bstatic_pgi > --disable-shared --enable-static --without-memory-manager > > il...@grid.ui.savba.sk:~/bin/openmpi-1.10.1_pgi_static/bin/.ldd mpif90 > linux-vdso.so.1 => (0x00007fffc75da000) > libdl.so.2 => /lib64/libdl.so.2 (0x00007f2f0820e000) > libm.so.6 => /lib64/libm.so.6 (0x00007f2f07f89000) > libnuma.so => /opt/pgi/linux86-64/13.10/lib/libnuma.so > (0x00007f2f07e88000) > librt.so.1 => /lib64/librt.so.1 (0x00007f2f07c80000) > libutil.so.1 => /lib64/libutil.so.1 (0x00007f2f07a7c000) > libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2f0785f000) > libc.so.6 => /lib64/libc.so.6 (0x00007f2f074cb000) > /lib64/ld-linux-x86-64.so.2 (0x00007f2f0842a000) > il...@grid.ui.savba.sk:~/bin/openmpi-1.10.1_pgi_static/bin/.ldd mpirun > linux-vdso.so.1 => (0x00007fffe75ed000) > libdl.so.2 => /lib64/libdl.so.2 (0x00007f4f264b3000) > libm.so.6 => /lib64/libm.so.6 (0x00007f4f2622e000) > libnuma.so => /opt/pgi/linux86-64/13.10/lib/libnuma.so > (0x00007f4f2612d000) > librt.so.1 => /lib64/librt.so.1 (0x00007f4f25f25000) > libutil.so.1 => /lib64/libutil.so.1 (0x00007f4f25d21000) > libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4f25b04000) > libc.so.6 => /lib64/libc.so.6 (0x00007f4f25770000) > /lib64/ld-linux-x86-64.so.2 (0x00007f4f266cf000) > il...@grid.ui.savba.sk:~/bin/openmpi-1.10.1_pgi_static/bin/. > > > Any help, please ? > > Miro > > > -- Jeff Hammond jeff.scie...@gmail.com http://jeffhammond.github.io/