GNU bug report logs - #54817
Outdated IBM XL Fortran shared library work around

Previous Next

Package: libtool;

Reported by: William T Jones <w.t.jones <at> nasa.gov>

Date: Sat, 9 Apr 2022 15:02:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: William T Jones <w.t.jones <at> nasa.gov>
To: 54817 <at> debbugs.gnu.org
Subject: bug#54817: Outdated IBM XL Fortran shared library work around
Date: Sat, 9 Apr 2022 10:56:55 -0400
Hello,

Libtool 2.4.6 has an apparently outdated work around for the IBM XL 
Fortran compiler's inability to link shared libraries (see m4/libtool.m4 
lines 5208, 5237-5248).

As comments in m4/libtool.m4 state, the problem is with IBM XL Fortran 
version 10.1 on PowerPC.  However, we are now using IBM XL Fortran 
version 16.1 on PPC (ORNL summit) and it does allow linking of shared 
objects with xlf via the same "-qmkshrobj" command line option used by 
xlc and xlC on lines 5208-5210 of m4/libtool.m4.

To make matters worse, the workaround of using $LD to link shared 
libraries with Fortran objects does not easily work when linking mixed 
language object code into such a shared library (one needs to know IBM 
XL paths to libraries like libibmc++.so and libstdc++.so, for example).  
This is easily resolved when one links with `xlf -qmkshrobj ...`.

It is suggested that this workaround check for compiler version or be 
deprecated.

Resolution is appreciated,


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    Bill Jones                                       W.T.JONES <at> NASA.GOV
    Mail Stop 128                     Computational AeroSciences Branch
    15 Langley Boulevard                           Research Directorate
    NASA Langley Research Center               Building 1268, Room 1044
    Hampton, VA  23681-2199                       Phone +1 757 864-5318
                                                    Fax +1 757 864-8816
                                             http://fun3d.larc.nasa.gov





This bug report was last modified 3 years and 71 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.