IBM Support

Executable fails to load due to dependency on libxlomp_ser.A.dylib

Troubleshooting


Problem

When I run an XL Fortran-compiled executable on a system which has only the XL Fortran Run-Time Environment installed, the executable fails to load due to an unresolved dependency on libxlomp_ser.A.dylib.

Cause

By default, XL Fortran Advanced Edition V8.1 for Mac OS X causes the link editor to link all binaries with the library libxlomp_ser.A.dylib. The libxlomp_ser.A.dylib library is not a part of the XL Fortran Run-Time Environment.

Resolving The Problem

This is a known issue which has been corrected in the September 2004 XL Fortran Advanced Edition V8.1 for Mac OS X Update. If you are unable to upgrade to the latest update at this time, you can use the following work-around:

In the XL Fortran compiler configuration file /etc/opt/ibmcmp/xlf/8.1/xlf.cfg, remove the -lxlomp_ser option from the affected xlf* stanzas.

For example, if you are using the xlf90 command to compile your Fortran programs, you must remove '-lxlomp_ser' from the xlf90 stanza. Doing so will change the stanza from something like this:

xlf90:    use        = DEFLT
          libraries  = -lxlf90,-lxlopt,-lxlomp_ser,-lxl,-lxlfmath
          gcc_libs     = -lm,-lc,-lgcc,-lSystem

to something like this:

xlf90:    use        = DEFLT
          libraries  = -lxlf90,-lxlopt,-lxl,-lxlfmath
          gcc_libs     = -lm,-lc,-lgcc,-lSystem


After removing the -lxlomp_ser option from the configuration file stanza, you must relink your program for the change to take effect. Once relinked, the program will no longer have a dependency on libxlomp_ser.A.dylib unless you specifically specify option -lxlomp_ser on the command line for a program compilation.

[{"Product":{"code":"SSB259","label":"XL Fortran Advanced Edition for Linux"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"RTE","Platform":[{"code":"PF022","label":"OS X"}],"Version":"8.1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
24 February 2022

UID

swg21177186