user/liborcus (0.17.2): FTTFS: requires explicit '-lstdc++fs' during build with GCC 8.x
While attempting to bump liborcus
to 0.17.2
(and we're still on GCC 8.5.0
):
...
PASS: json-doc-2
/usr/lib/gcc/x86_64-foxkit-linux-musl/8.5.0/../../../../x86_64-foxkit-linux-musl/bin/ld: spreadsheet_doc_2.o: in function `std::filesystem::__cxx11::path::is_absolute() const':
/usr/include/c++/8.5.0/bits/fs_path.h:381: undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
/usr/lib/gcc/x86_64-foxkit-linux-musl/8.5.0/../../../../x86_64-foxkit-linux-musl/bin/ld: spreadsheet_doc_2.o: in function `std::filesystem::__cxx11::path::operator/=(std::filesystem::__cxx11::path const&)':
/usr/include/c++/8.5.0/bits/fs_path.h:258: undefined reference to `std::filesystem::__cxx11::path::has_filename() const'
/usr/lib/gcc/x86_64-foxkit-linux-musl/8.5.0/../../../../x86_64-foxkit-linux-musl/bin/ld: /usr/include/c++/8.5.0/bits/fs_path.h:261: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/lib/gcc/x86_64-foxkit-linux-musl/8.5.0/../../../../x86_64-foxkit-linux-musl/bin/ld: spreadsheet_doc_2.o: in function `std::filesystem::__cxx11::path::path<char*, std::filesystem::__cxx11::path>(char* const&, std::filesystem::__cxx11::path::format)':
/usr/include/c++/8.5.0/bits/fs_path.h:185: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/lib/gcc/x86_64-foxkit-linux-musl/8.5.0/../../../../x86_64-foxkit-linux-musl/bin/ld: spreadsheet_doc_2.o: in function `std::filesystem::__cxx11::path::path<char [17], std::filesystem::__cxx11::path>(char const (&) [17], std::filesystem::__cxx11::path::format)':
/usr/include/c++/8.5.0/bits/fs_path.h:185: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:833: spreadsheet-doc-2] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/root/packages/user/liborcus/src/orcus-0.17.2/doc_example'
make[2]: *** [Makefile:1077: check-TESTS] Error 2
make[2]: Leaving directory '/root/packages/user/liborcus/src/orcus-0.17.2/doc_example'
make[1]: *** [Makefile:1212: check-am] Error 2
make[1]: Leaving directory '/root/packages/user/liborcus/src/orcus-0.17.2/doc_example'
make: *** [Makefile:1286: check-recursive] Error 1
>>> ERROR: liborcus: check failed
See also: https://stackoverflow.com/a/33159746