Closed
Description
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.
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