Skip to content

Build fails on Mac M4: LLDB test suite requires libc++ but it is disabled #150985

@steven-studio

Description

@steven-studio

Environment

  • Mac M4
  • macOS version: [請填]
  • LLVM commit: [請填,如有]

Build Command

cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS="clang;lld;lldb" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install ../llvm

Observed error

CMake Error at /Users/youzhewei/Desktop/llvm-project/lldb/test/CMakeLists.txt:201 (message):
  LLDB test suite requires libc++, but it is currently disabled.  Please add
  `libcxx` to `LLVM_ENABLE_RUNTIMES` or disable tests via
  `LLDB_INCLUDE_TESTS=OFF.

Expectation
CMake should configure successfully, or at least document proper flags for Mac M4 builds with lldb enabled.

Steps tried
• Re-checked cmake flags
• No explicit disabling of libcxx

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-probleminvalidResolved as invalid, i.e. not a buglibc++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