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++/filesystemPerhaps 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