Skip to content

[BOLT] Error BOLT-PGO-ing clang on MacOS 15.4 #146473

Closed
@badumbatish

Description

@badumbatish

Hi there, I failed to create the BOLT-PGO clang with the command in https://llvm.org/docs/AdvancedBuilds.html.

I also attached a build log in case somebody's interested or would want to guide me to figure this out. Any guidance would be appreciated.

bolt_pgo_report.txt

The template command:

cmake -G Ninja <path to source>/llvm \
    -C <path to source>/clang/cmake/caches/BOLT-PGO.cmake \
    -DBOOTSTRAP_LLVM_ENABLE_LLD=ON \
    -DBOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD=ON \
    -DPGO_INSTRUMENT_LTO=Thin

My actual command:

cmake -G Ninja -S llvm -B build.fullopt \
    -C clang/cmake/caches/BOLT-PGO.cmake \
    -DBOOTSTRAP_LLVM_ENABLE_LLD=ON \
    -DBOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD=ON \
    -DPGO_INSTRUMENT_LTO=Thin | tee -a bolt_pgo_report.txt

I then run the build command

ninja -C build.fullopt stage2-clang-bolt | tee -a bolt_pgo_report.txt

The MacOS sdk path

llvm-project git:(main): xcrun --sdk macosx --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk

Metadata

Metadata

Assignees

No one assigned

    Labels

    BOLTclangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions