Skip to content

Conversation

@DavidSpickett
Copy link
Collaborator

Fixes #172024

This is something a lot of people can probably figure out themselves but having this obvious wrong turn in the getting started document isn't a good first impression.

So I've added a note to highlight how to deal with it.

I don't want to go into detail there about the layout itself, but it should be enough that people know to check by listing the contents of the lib/ folder.

…imes layout

Fixes llvm#172024

This is something a lot of people can probably figure out themselves
but having this obvious wrong turn in the getting started document
isn't a good first impression.

So I've adding a note to highlight how to deal with it.

I don't want to go into detail there about the layout itself, it
should be enough that people know to check by listing the contents
of the lib/ folder.
@DavidSpickett DavidSpickett requested a review from a team as a code owner December 15, 2025 15:28
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Dec 15, 2025
@llvmbot
Copy link
Member

llvmbot commented Dec 15, 2025

@llvm/pr-subscribers-libcxx

Author: David Spickett (DavidSpickett)

Changes

Fixes #172024

This is something a lot of people can probably figure out themselves but having this obvious wrong turn in the getting started document isn't a good first impression.

So I've added a note to highlight how to deal with it.

I don't want to go into detail there about the layout itself, but it should be enough that people know to check by listing the contents of the lib/ folder.


Full diff: https://github.com/llvm/llvm-project/pull/172316.diff

1 Files Affected:

  • (modified) libcxx/docs/VendorDocumentation.rst (+5)
diff --git a/libcxx/docs/VendorDocumentation.rst b/libcxx/docs/VendorDocumentation.rst
index 3e4b305707258..fc788178c96e4 100644
--- a/libcxx/docs/VendorDocumentation.rst
+++ b/libcxx/docs/VendorDocumentation.rst
@@ -68,6 +68,11 @@ to override it with custom paths. With Clang, this can be done with:
 The option ``-Wl,-rpath,<install>/lib`` adds a runtime library search path, which causes the system's
 dynamic linker to look for libc++ in ``<install>/lib`` whenever the program is loaded.
 
+.. note::
+  If the runtimes were built using the "per-target runtime directory" layout,
+  they will be in ``<install>/lib/<target-triple>`` instead of ``<install>/lib``.
+  In this case, use the former path for all library paths in the command above
+  (the path to include files does not change).
 
 The Bootstrapping build
 =======================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"cannot find -lc++" error after following libc++ bootstrapping build install and compile command instructions

2 participants