[PATCH] D138477: MC: Add .data. and .rodata. prefixes to MCContext section classification
Yonghong Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 28 21:35:18 PST 2022
yonghong-song added a comment.
@Amir
Somehow, CCACHE does not work for me, which has an error message like missing 'malloc/malloc.h'. I used the following scripts without CCACHE.
$ cat build_llvm_debug.sh
cd llvm-project/llvm/build
# -DLLVM_CCACHE_BUILD=ON \
# -C llvm-project/clang/cmake/caches/BOLT-PGO.cmake
# -DBOOTSTRAP_LLVM_CCACHE_BUILD=ON \
cmake .. \
-DLLVM_APPEND_VC_REV=OFF \
-DLLVM_ENABLE_LLD=ON \
-DBOOTSTRAP_LLVM_ENABLE_LLD=ON \
-DBOOTSTRAP_BOOTSTRAP_LLVM_ENABLE_LLD=ON \
-DPGO_INSTRUMENT_LTO=Thin \
-DLLVM_ENABLE_PROJECTS="clang;lld;bolt;llvm" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=ON \
-DLLVM_LIT_ARGS="-v -vv" \
-G Ninja \
-DCMAKE_INSTALL_PREFIX=$PWD/install
ninja && ninja install
It works fine with me,
...
[4878/4882] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/elf2yaml.cpp.o
[4879/4882] Linking CXX executable bin/obj2yaml
[4880/4882] Building CXX object tools/llvm-readobj/CMakeFiles/llvm-readobj.dir/ELFDumper.cpp.o
[4881/4882] Linking CXX executable bin/llvm-readobj
[4882/4882] Generating ../../bin/llvm-readelf
[1/4] Performing build step for 'bolt_rt'
ninja: no work to do.
[2/4] Performing install step for 'bolt_rt'
[0/1] Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/yhs/work/llvm-project/llvm/build/lib/libbolt_rt_instr.a
-- Up-to-date: /home/yhs/work/llvm-project/llvm/build/lib/libbolt_rt_hugify.a
[3/4] Completed 'bolt_rt'
[3/4] Install the project...
-- Install configuration: "Release"
-- Installing: /home/yhs/work/llvm-project/llvm/build/install/include/llvm
...
Does CCACHE impact the build? If you can help me resolve CCACHE build issue, I am happy to try the build again.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138477/new/
https://reviews.llvm.org/D138477
More information about the llvm-commits
mailing list