Thread View: slac.comp.computefarm
2 messages
2 total messages
Started by Glenn A. Horton-Smith
Thu, 21 Mar 1996 00:54
To run on pinto's, code must link statically to libxlf.a
Author: Glenn A. Horton-Smith
Date: Thu, 21 Mar 1996 00:54
Date: Thu, 21 Mar 1996 00:54
26 lines
1739 bytes
1739 bytes
Here is a strange gotcha that will probably only affect people who link Fortran packages (like HBOOK) into non-Fortran (C, C++) code, and possibly some others. It caused me some temporary confusion, so I thought I would share the solution. The Fortran run-time library file "libxlf.a" is not present in the /usr/lib directories of any of the pinto machines that I have checked. Therefore, although AIX allows for you to link to this library as a "sharable" (thereby reducing the size of your executable), you must not do this, or else your code will not run when submitted via bsub. You will get error messages like the following: Could not load program /u/ei/gas/my_analysis/pedestals Could not load library libxlf.a[shr.o] Error was: No such file or directory The xlf command itself links in libxlf.a statically be default, so pure Fortran code should work fine, unless you've made a special effort to have the library linked in the sharable manner. On the other hand, it seems that "g++" links in libraries as sharables whenever it can, unless you specify the "-static" option. Therefore, my C++ code which calls HBOOK failed as above when bsub'ed (but ran fine on morgan05) until I re-created the executable with the -static option. Hope that's helpful to someone. -Glenn
Re: To run on pinto's, code must link statically to libxlf.a
Author: Charles W. Martin
Date: Fri, 22 Mar 1996 18:22
Date: Fri, 22 Mar 1996 18:22
2 lines
579 bytes
579 bytes
This problem (missing /usr/lib/libxlf.a) only occurred on machines runing AIX 4.1.4 and has been fixed now.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads