Skip to content

Unable to compile 21.1.0 on macOS Sequoia from source #155532

@JWTheDBA

Description

@JWTheDBA

Congrats to all the contributors and the release team getting 21.1.0 out the door!

To celebrate I decided to rebuild my clang/lld/lldb/extras environment on the new release. I downloaded llvm-project-llvmorg-21.1.0.tar.gz and ran the following commands to extract, configure and build.

tar -xzf llvm-project-llvmorg-21.1.0.tar.gz -C ~/

cd ~/llvm-project-llvmorg-21.1.0

mkdir build

cmake -S llvm -B build -G "Unix Makefiles" \
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb;" \
-DCMAKE_INSTALL_PREFIX=/Users/xxx/os_tools/llvm21.1.0 \
-DCMAKE_BUILD_TYPE=Release \
-DCLANG_DEFAULT_LINKER=lld \
-DLLDB_USE_SYSTEM_DEBUGSERVER=ON \
-DLLDB_INCLUDE_TESTS=OFF

cmake --build build -j10

The cmake configure step seems to run fine, but the build step almost immediately gives errors about missing lldb header files. Lots of lines such as this in the output, all about lldb headers:

/bin/sh: /Users/xxx/llvm-project-llvmorg-21.1.0/build/include/lldb/LLDB.h: No such file or directory

The build does continue without any additional errors until the very end where it fails.

I've uploaded the output from both cmake commands.

cmake_configure.txt

cmake_build.txt

Computer: macOS Sequoia 15.6 on M3 processor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Triage

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions