bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54817: Outdated IBM XL Fortran shared library work around


From: William T Jones
Subject: bug#54817: Outdated IBM XL Fortran shared library work around
Date: Mon, 11 Apr 2022 14:17:58 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

Alex,

It appears to be in the git repo, so if that is 2.4.7, then yes.  Attached is a patch that works for me, checking to see if the XL Fortran compiler is at least Version 16 or better (maybe a better way of checking).

Thanks for responding so quickly,

Bill


I have more general workaround where I check the IBM XL Fortran version.  See example below:

On 4/9/22 12:24 PM, Alex Ameen wrote:
This sounds reasonable to me. Just to clarify, is this workaround still in 2.4.7?

On Sat, Apr 9, 2022, 10:02 AM William T Jones via Bug-libtool via Bug reports for the GNU libtool shared library maintenance tool <bug-libtool@gnu.org> wrote:
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@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




_______________________________________________
Bug-libtool mailing list
Bug-libtool@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-libtool
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

    Bill Jones                                       W.T.JONES@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

Attachment: libtool-xlf.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]