Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  GCC 8 libstdc++ missing std::filesystem library libstdc++fs.a?

    Posted Thu July 09, 2020 10:36 PM
    A colleague of mine reported that he could not link a C++17 program which makes use of std::filesystem. On Linux this requires linking against libstdc++fs.a, but we don't see this in the AIX packages.

    Is it possible that libstdc++fs.a was not packaged by mistake? Or is it elsewhere? Or does GCC not yet support this functionality on AIX?

    Looking at the AIX package libstdcplusplus-devel-8.3.0-2.aix7.1.ppc.rpm, I see the filesystem header, but no corresponding library:
    $ rpm -qlp libstdcplusplus-devel-8.3.0-2.aix7.1.ppc.rpm | egrep '(filesystem|lib[^/]*fs)'
    /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8.3.0/include/c++/filesystem
    Perhaps it should be in the non-devel package alongside libstdc++.a, but it isn't there either.

    Whereas the comparable Red Hat package has both the header and library:
    $ rpm -ql devtoolset-8-libstdc++-devel-8.3.1-3.1.el7.x86_64 | egrep '(filesystem|lib[^/]*fs)'
    /opt/rh/devtoolset-8/root/usr/include/c++/8/experimental/filesystem
    /opt/rh/devtoolset-8/root/usr/include/c++/8/filesystem
    /opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++fs.a

    ------------------------------
    John Scott
    ------------------------------

    #AIXOpenSource


  • 2.  RE: GCC 8 libstdc++ missing std::filesystem library libstdc++fs.a?

    Posted Fri July 10, 2020 02:30 AM
    Hi John,

    Yes currently we are not building this library for AIX and not shipping.
    We need to do some investigation if this can be build and supported on AIX.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: GCC 8 libstdc++ missing std::filesystem library libstdc++fs.a?

    Posted Fri July 10, 2020 02:37 AM
    Ok. Thanks for your reply. I hope you can enable it in a future update.

    ------------------------------
    John Scott
    ------------------------------