I think this is the same issue encountered in wreport c++17, fixed in meson.build with
# std::filesystem library needs to be explicitly linked with g++ < 9.0
if cpp.find_library('stdc++fs').found()
# without this, std::filesystem is not present for some compilers
add_project_link_arguments(['-lstdc++fs'], language : 'cpp')
endif
See https://simc.arpae.it/moncic-ci/meteosatlib/202410181430/master/rocky8/build.log
I think this is the same issue encountered in wreport c++17, fixed in meson.build with
But I don't know a quick fix in autotools.