Skip to content

Problems using std::filesystem in standalone cling #16269

Open
@hahnjo

Description

@hahnjo

Description

libstdc++ provides std::filesystem symbols in a static archive libstdc++fs.a. This causes problems on some platforms because the linker might strip the symbols. See #11601 and the note on devtoolsets in https://root.cern/install/build_from_source/#caveats for instances of similar problems.

If a proper solution is found, the Cling test test/Prompt/ValuePrinter/FileSystemPath.C should be re-enabled (it was disabled in #16258).

Reproducer

Try to run in standalone cling:

#include <filesystem>
auto p = std::filesystem::path("/some/path/foo.cpp");

ROOT version

master

Installation method

from source

Operating system

Linux, with libstdc++

Additional context

It seems to work in ROOT itself.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions