NERSCPowering Scientific Discovery Since 1974

Resolved: "error while loading shared libraries:" with serial codes on login nodes

December 13, 2013 by Helen He (1 Comments)


Dynamic executables built with compiler wrappers running directly on the external login nodes are getting the following error message:

% ftn -dynamic -o testf testf.f
% ./testf
./testf: error while loading shared libraries: cannot open shared object file: No such file or directory


Please use the native compilers such as pgf90, ifort, etc instead of the Cray compiler wrappers ftn, cc, or CC to build the executable. It will then run successfully on the external login nodes.

% pgf90 -o testf testf.f
% file testf
testf: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), not stripped
% ./testf
Test ok

Dynamic executables compiled with compiler wrappers could also run successfully on the MOM nodes (via "qsub -I -V -lmppwidth=24 -q interactive").  However, only short jobs (a few minutes) are appropriate to run on MOM node since these are shared resources.

% qsub -I -V -q interactive -lmppwidth=24
... wait for a new session ...

% ftn -dynamic -o testf testf.f
% ./testf
Test ok


 This problem has been resolved since the CLE4.2UP02 upgrade on 2/11/2014.

Post your comment

You cannot post comments until you have logged in. Login Here.


  • It is stated there this problem has been resolved. But I just tried to run a serial code using the compiler wrapper ftn, and this error message came out again.

    Posted by MInghuai Wang, 19/08/2014 3:41pm (5 months ago)

RSS feed for comments on this page | RSS feed for all comments