Skip to content

libc++.modules.json references non-existent path within build tree #143848

Closed as not planned
@kamrann

Description

@kamrann

The std module json manifest, in my LLVM build tree at lib/x86_64-unknown-linux-gnu/libc++.modules.json, contains the following entry:

"source-path": "../../share/libc++/v1/std.cppm"

However, while the build tree has a /share folder, there is no libc++ folder within it.

If I run CMake install on my LLVM build then the resulting installation contains the std library module sources at the appropriate path, but if I attempt to use clang direct from the build tree, my build tool will fail. Presumably it should be possible to use in this form, not only installed?

Fedora 41 via WSL
clang version 21.0.0git (https://github.com/llvm/llvm-project.git 9312d5b)
Target: x86_64-unknown-linux-gnu

Configured with -DLLVM_ENABLE_PROJECTS=clang -DLLVM_ENABLE_RUNTIMES=libcxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions